Package org.apache.hadoop.ipc.metrics
Class RetryCacheMetrics
java.lang.Object
org.apache.hadoop.ipc.metrics.RetryCacheMetrics
@Private
@Metrics(about="Aggregate RetryCache metrics",
context="rpc")
public class RetryCacheMetrics
extends Object
This class is for maintaining the various RetryCache-related statistics
and publishing them through the metrics interfaces.
-
Method Summary
Modifier and TypeMethodDescriptionstatic RetryCacheMetricscreate(RetryCache cache) longlonglonggetName()voidOne cache clearedvoidOne cache hit eventvoidOne cache updated
-
Method Details
-
getName
-
create
-
incrCacheHit
public void incrCacheHit()One cache hit event -
incrCacheCleared
public void incrCacheCleared()One cache cleared -
incrCacheUpdated
public void incrCacheUpdated()One cache updated -
getCacheHit
public long getCacheHit() -
getCacheCleared
public long getCacheCleared() -
getCacheUpdated
public long getCacheUpdated()
-