Package org.apache.hadoop.ipc.metrics

Examples of org.apache.hadoop.ipc.metrics.RetryCacheMetrics


  @Test
  public void testNames() {
    RetryCache cache = mock(RetryCache.class);
    when(cache.getCacheName()).thenReturn(cacheName);

    RetryCacheMetrics metrics = RetryCacheMetrics.create(cache);

    metrics.incrCacheHit();

    metrics.incrCacheCleared();
    metrics.incrCacheCleared();

    metrics.incrCacheUpdated();
    metrics.incrCacheUpdated();
    metrics.incrCacheUpdated();

    checkMetrics(1, 2, 3);
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.ipc.metrics.RetryCacheMetrics

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.