use of com.yahoo.docproc.jdisc.metric.NullMetric in project vespa by vespa-engine.
the class Metrics method createTestMetrics.
public static Metrics createTestMetrics() {
NullMetric metric = new NullMetric();
Statistics.NullImplementation statistics = new Statistics.NullImplementation();
HealthMonitorConfig.Builder builder = new HealthMonitorConfig.Builder();
builder.snapshot_interval(60.0);
return new Metrics(metric, statistics, new HealthMonitorConfig(builder));
}
use of com.yahoo.docproc.jdisc.metric.NullMetric 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;
}
Aggregations