Search in sources :

Example 1 with NullMetric

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));
}
Also used : NullMetric(com.yahoo.docproc.jdisc.metric.NullMetric) HealthMonitorConfig(com.yahoo.container.jdisc.config.HealthMonitorConfig) Statistics(com.yahoo.statistics.Statistics)

Example 2 with NullMetric

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;
}
Also used : StatisticsImpl(com.yahoo.statistics.StatisticsImpl) StatisticsConfig(com.yahoo.container.StatisticsConfig) NullMetric(com.yahoo.docproc.jdisc.metric.NullMetric)

Aggregations

NullMetric (com.yahoo.docproc.jdisc.metric.NullMetric)2 StatisticsConfig (com.yahoo.container.StatisticsConfig)1 HealthMonitorConfig (com.yahoo.container.jdisc.config.HealthMonitorConfig)1 Statistics (com.yahoo.statistics.Statistics)1 StatisticsImpl (com.yahoo.statistics.StatisticsImpl)1