Package com.cockroachlabs.data.metrics
Class CockroachDBMetrics.InMemory
java.lang.Object
com.cockroachlabs.data.metrics.CockroachDBMetrics.InMemory
- All Implemented Interfaces:
CockroachDBMetrics
- Enclosing interface:
CockroachDBMetrics
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.cockroachlabs.data.metrics.CockroachDBMetrics
CockroachDBMetrics.InMemory, CockroachDBMetrics.Noop -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublelonglonglonglongvoidrecordFollowerRead(long startNanos, boolean success) voidrecordTransaction(long startNanos, int retries, boolean success)
-
Constructor Details
-
InMemory
public InMemory()
-
-
Method Details
-
recordTransaction
public void recordTransaction(long startNanos, int retries, boolean success) - Specified by:
recordTransactionin interfaceCockroachDBMetrics
-
getTransactionCount
public long getTransactionCount()- Specified by:
getTransactionCountin interfaceCockroachDBMetrics
-
getRetryCount
public long getRetryCount()- Specified by:
getRetryCountin interfaceCockroachDBMetrics
-
getFailureCount
public long getFailureCount()- Specified by:
getFailureCountin interfaceCockroachDBMetrics
-
getAverageDurationMs
public double getAverageDurationMs()- Specified by:
getAverageDurationMsin interfaceCockroachDBMetrics
-
recordFollowerRead
public void recordFollowerRead(long startNanos, boolean success) - Specified by:
recordFollowerReadin interfaceCockroachDBMetrics
-
getFollowerReadCount
public long getFollowerReadCount()- Specified by:
getFollowerReadCountin interfaceCockroachDBMetrics
-