StateStoreMBeanpublic class NullStateStoreMetrics extends StateStoreMetrics
| Constructor | Description |
|---|---|
NullStateStoreMetrics() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addFailure(long latency) |
|
void |
addRead(long latency) |
|
void |
addRemove(long latency) |
|
void |
addWrite(long latency) |
|
double |
getFailureAvg() |
|
long |
getFailureOps() |
|
double |
getReadAvg() |
|
long |
getReadOps() |
|
double |
getRemoveAvg() |
|
long |
getRemoveOps() |
|
double |
getWriteAvg() |
|
long |
getWriteOps() |
|
void |
reset() |
|
void |
setCacheSize(java.lang.String name,
int size) |
Set the size of the cache for a State Store interface.
|
void |
shutdown() |
create, getCacheLoadMetrics, setCacheLoading, setLocationCachepublic void addRead(long latency)
addRead in class StateStoreMetricspublic long getReadOps()
getReadOps in interface StateStoreMBeangetReadOps in class StateStoreMetricspublic double getReadAvg()
getReadAvg in interface StateStoreMBeangetReadAvg in class StateStoreMetricspublic void addWrite(long latency)
addWrite in class StateStoreMetricspublic long getWriteOps()
getWriteOps in interface StateStoreMBeangetWriteOps in class StateStoreMetricspublic double getWriteAvg()
getWriteAvg in interface StateStoreMBeangetWriteAvg in class StateStoreMetricspublic void addFailure(long latency)
addFailure in class StateStoreMetricspublic long getFailureOps()
getFailureOps in interface StateStoreMBeangetFailureOps in class StateStoreMetricspublic double getFailureAvg()
getFailureAvg in interface StateStoreMBeangetFailureAvg in class StateStoreMetricspublic void addRemove(long latency)
addRemove in class StateStoreMetricspublic long getRemoveOps()
getRemoveOps in interface StateStoreMBeangetRemoveOps in class StateStoreMetricspublic double getRemoveAvg()
getRemoveAvg in interface StateStoreMBeangetRemoveAvg in class StateStoreMetricspublic void setCacheSize(java.lang.String name,
int size)
StateStoreMetricssetCacheSize in class StateStoreMetricsname - Name of the record to cache.size - Number of records.public void reset()
reset in class StateStoreMetricspublic void shutdown()
shutdown in class StateStoreMetricsCopyright © 2008–2025 Apache Software Foundation. All rights reserved.