use of com.codahale.metrics.jcache.JCacheGaugeSet in project metrics by dropwizard.
the class JCacheGaugeSetTest method setUp.
@Before
public void setUp() throws Exception {
CachingProvider provider = Caching.getCachingProvider();
cacheManager = provider.getCacheManager(getClass().getResource("ehcache.xml").toURI(), getClass().getClassLoader());
myCache = cacheManager.getCache("myCache");
myOtherCache = cacheManager.getCache("myOtherCache");
registry = new MetricRegistry();
registry.register("jcache.statistics", new JCacheGaugeSet());
}
Aggregations