StateStoreMBeanNullStateStoreMetrics@Metrics(name="StateStoreActivity",
about="Router metrics",
context="dfs")
public class StateStoreMetrics
extends java.lang.Object
implements StateStoreMBean
| Modifier | Constructor | Description |
|---|---|---|
protected |
StateStoreMetrics() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addFailure(long latency) |
|
void |
addRead(long latency) |
|
void |
addRemove(long latency) |
|
void |
addWrite(long latency) |
|
static StateStoreMetrics |
create(org.apache.hadoop.conf.Configuration conf) |
|
java.util.Map<java.lang.String,org.apache.hadoop.metrics2.lib.MutableRate> |
getCacheLoadMetrics() |
Retrieve unmodifiable map of cache loading metrics.
|
double |
getFailureAvg() |
|
long |
getFailureOps() |
|
double |
getReadAvg() |
|
long |
getReadOps() |
|
double |
getRemoveAvg() |
|
long |
getRemoveOps() |
|
double |
getWriteAvg() |
|
long |
getWriteOps() |
|
void |
reset() |
|
void |
setCacheLoading(java.lang.String name,
long value) |
Set the cache loading metrics for the state store interface.
|
void |
setCacheSize(java.lang.String name,
int size) |
Set the size of the cache for a State Store interface.
|
void |
setLocationCache(java.lang.String name,
long count) |
set the count of the location cache access information.
|
void |
shutdown() |
public static StateStoreMetrics create(org.apache.hadoop.conf.Configuration conf)
public void shutdown()
public void addRead(long latency)
public long getReadOps()
getReadOps in interface StateStoreMBeanpublic double getReadAvg()
getReadAvg in interface StateStoreMBeanpublic void addWrite(long latency)
public long getWriteOps()
getWriteOps in interface StateStoreMBeanpublic double getWriteAvg()
getWriteAvg in interface StateStoreMBeanpublic void addFailure(long latency)
public long getFailureOps()
getFailureOps in interface StateStoreMBeanpublic double getFailureAvg()
getFailureAvg in interface StateStoreMBeanpublic void addRemove(long latency)
public long getRemoveOps()
getRemoveOps in interface StateStoreMBeanpublic double getRemoveAvg()
getRemoveAvg in interface StateStoreMBeanpublic void setCacheSize(java.lang.String name,
int size)
name - Name of the record to cache.size - Number of records.public void setLocationCache(java.lang.String name,
long count)
name - Name of the record.count - count of the record.public void setCacheLoading(java.lang.String name,
long value)
name - Name of the record of the cache.value - The time duration interval as the cache value.@VisibleForTesting public java.util.Map<java.lang.String,org.apache.hadoop.metrics2.lib.MutableRate> getCacheLoadMetrics()
@VisibleForTesting public void reset()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.