public class QueryExecutionMeasurements extends Object
Constructor and Description |
---|
QueryExecutionMeasurements() |
Modifier and Type | Method and Description |
---|---|
void |
addBuildRequestDuration(Duration duration)
Increase a build request duration by a given value.
|
void |
addExecuteRequestDuration(Duration duration)
Increase a query execution duration by a given value.
|
void |
addParseResponseDuration(Duration duration)
Increase a parse response duration by a given value.
|
static String |
formatDuration(Duration duration)
For internal use only.
|
Long |
getBeginTotal() |
Duration |
getBuildRequestDuration() |
Long |
getEndTotal() |
Duration |
getExecuteRequestDuration() |
String |
getMeasurementsString()
Get all query measurements serialized as a
String . |
Duration |
getParseResponseDuration() |
void |
resetMeasurements()
Remove all current measurements for a query.
|
void |
setBeginTotal(Long beginTotal) |
void |
setEndTotal(Long endTotal) |
public static String formatDuration(@Nullable Duration duration)
public void addBuildRequestDuration(Duration duration)
public void addExecuteRequestDuration(Duration duration)
public void addParseResponseDuration(Duration duration)
public void resetMeasurements()
public String getMeasurementsString()
String
.Copyright © 2018 SAP SE. All rights reserved.