Search in sources :

Example 11 with Metric

use of com.yahoo.jdisc.Metric in project vespa by vespa-engine.

the class MetricImplTestCase method requireThatClassIsInjectedByDefault.

@Test
public void requireThatClassIsInjectedByDefault() {
    Metric metric = Guice.createInjector().getInstance(Metric.class);
    assertTrue(metric instanceof MetricImpl);
}
Also used : Metric(com.yahoo.jdisc.Metric) Test(org.junit.Test)

Aggregations

Metric (com.yahoo.jdisc.Metric)11 Test (org.junit.Test)10 AbstractModule (com.google.inject.AbstractModule)3 Injector (com.google.inject.Injector)3 Timer (com.yahoo.jdisc.Timer)2 MetricConsumer (com.yahoo.jdisc.application.MetricConsumer)2 Map (java.util.Map)2 JsonNode (com.fasterxml.jackson.databind.JsonNode)1 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 SlobroksConfig (com.yahoo.cloud.config.SlobroksConfig)1 ZookeepersConfig (com.yahoo.cloud.config.ZookeepersConfig)1 Vtag (com.yahoo.component.Vtag)1 ApplicationMetadataConfig (com.yahoo.container.core.ApplicationMetadataConfig)1 HealthMonitorConfig (com.yahoo.container.jdisc.config.HealthMonitorConfig)1 Response (com.yahoo.jdisc.Response)1 ContainerBuilder (com.yahoo.jdisc.application.ContainerBuilder)1 BufferedContentChannel (com.yahoo.jdisc.handler.BufferedContentChannel)1 ContentChannel (com.yahoo.jdisc.handler.ContentChannel)1 ResponseHandler (com.yahoo.jdisc.handler.ResponseHandler)1 ActiveContainerMetrics (com.yahoo.jdisc.statistics.ActiveContainerMetrics)1