Search in sources :

Example 6 with MonitorScheduler

use of org.apache.druid.java.util.metrics.MonitorScheduler in project druid by druid-io.

the class MetricsModuleTest method testGetBasicMonitorSchedulerByDefault.

@Test
public void testGetBasicMonitorSchedulerByDefault() {
    final MonitorScheduler monitorScheduler = createInjector(new Properties()).getInstance(MonitorScheduler.class);
    Assert.assertSame(BasicMonitorScheduler.class, monitorScheduler.getClass());
}
Also used : BasicMonitorScheduler(org.apache.druid.java.util.metrics.BasicMonitorScheduler) ClockDriftSafeMonitorScheduler(org.apache.druid.java.util.metrics.ClockDriftSafeMonitorScheduler) MonitorScheduler(org.apache.druid.java.util.metrics.MonitorScheduler) Properties(java.util.Properties) Test(org.junit.Test)

Aggregations

MonitorScheduler (org.apache.druid.java.util.metrics.MonitorScheduler)6 Test (org.junit.Test)5 Properties (java.util.Properties)3 BasicMonitorScheduler (org.apache.druid.java.util.metrics.BasicMonitorScheduler)3 ClockDriftSafeMonitorScheduler (org.apache.druid.java.util.metrics.ClockDriftSafeMonitorScheduler)3 Injector (com.google.inject.Injector)2 TypeLiteral (com.google.inject.TypeLiteral)2 QueryRunnerFactoryConglomerate (org.apache.druid.query.QueryRunnerFactoryConglomerate)1 IndexSpec (org.apache.druid.segment.IndexSpec)1 Before (org.junit.Before)1