Search in sources :

Example 1 with StatisticsImpl

use of com.yahoo.statistics.StatisticsImpl 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)1 NullMetric (com.yahoo.docproc.jdisc.metric.NullMetric)1 StatisticsImpl (com.yahoo.statistics.StatisticsImpl)1