Class OperationMetrics
java.lang.Object
com.clickhouse.client.api.metrics.OperationMetrics
OperationStatistics objects hold various stats for complete operations.
It can be used for logging or monitoring purposes.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMetric(ClientMetrics metric) getMetric(ServerMetrics metric) voidComplete counting metrics on operation and stop all stopwatches.voidsetQueryId(String queryId) toString()voidupdateMetric(ServerMetrics metric, long value)
-
Field Details
-
metrics
-
-
Constructor Details
-
OperationMetrics
-
-
Method Details
-
getMetric
-
getMetric
-
getQueryId
-
operationComplete
public void operationComplete()Complete counting metrics on operation and stop all stopwatches. Multiple calls may have side effects. Note: should not be called by user code, except when created by user code. -
updateMetric
-
setQueryId
-
toString
-