Search in sources :

Example 11 with StatisticsConfig

use of com.yahoo.container.StatisticsConfig in project vespa by vespa-engine.

the class SimpleDocumentProcessorTestCase method setupDocprocService.

private static DocprocService setupDocprocService(SimpleDocumentProcessor processor) {
    CallStack stack = new CallStack("default", new StatisticsImpl(new StatisticsConfig(new StatisticsConfig.Builder())), new NullMetric());
    stack.addLast(processor);
    DocprocService service = new DocprocService("default");
    service.setCallStack(stack);
    service.setInService(true);
    return service;
}
Also used : StatisticsImpl(com.yahoo.statistics.StatisticsImpl) StatisticsConfig(com.yahoo.container.StatisticsConfig) NullMetric(com.yahoo.docproc.jdisc.metric.NullMetric)

Aggregations

StatisticsConfig (com.yahoo.container.StatisticsConfig)11 Logger (java.util.logging.Logger)6 Test (org.junit.Test)4 Operations (com.yahoo.container.StatisticsConfig.Values.Operations)3 StatisticsComponent (com.yahoo.vespa.model.container.component.StatisticsComponent)2 HealthMonitorConfig (com.yahoo.container.jdisc.config.HealthMonitorConfig)1 NullMetric (com.yahoo.docproc.jdisc.metric.NullMetric)1 StatisticsImpl (com.yahoo.statistics.StatisticsImpl)1 VespaModel (com.yahoo.vespa.model.VespaModel)1 ContainerCluster (com.yahoo.vespa.model.container.ContainerCluster)1 Component (com.yahoo.vespa.model.container.component.Component)1