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 Details

    • getName

      public String getName()
    • create

      public static RetryCacheMetrics create(RetryCache cache)
    • 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()