Search in sources :

Example 11 with DataNodeService

use of org.apache.druid.discovery.DataNodeService in project druid by druid-io.

the class StorageNodeModuleTest method getDataNodeServiceWithSegmentCacheNotConfiguredIsInjectedAndDiscoverable.

@Test
public void getDataNodeServiceWithSegmentCacheNotConfiguredIsInjectedAndDiscoverable() {
    mockSegmentCacheNotConfigured();
    DataNodeService dataNodeService = injector.getInstance(DataNodeService.class);
    Assert.assertNotNull(dataNodeService);
    Assert.assertFalse(dataNodeService.isDiscoverable());
}
Also used : DataNodeService(org.apache.druid.discovery.DataNodeService) Test(org.junit.Test)

Aggregations

DataNodeService (org.apache.druid.discovery.DataNodeService)11 Test (org.junit.Test)7 DruidNode (org.apache.druid.server.DruidNode)6 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)5 Executor (java.util.concurrent.Executor)5 CachePopulatorStats (org.apache.druid.client.cache.CachePopulatorStats)5 NoopIndexingServiceClient (org.apache.druid.client.indexing.NoopIndexingServiceClient)5 DruidNodeAnnouncer (org.apache.druid.discovery.DruidNodeAnnouncer)5 LookupNodeService (org.apache.druid.discovery.LookupNodeService)5 SegmentCacheManagerFactory (org.apache.druid.indexing.common.SegmentCacheManagerFactory)5 TaskToolboxFactory (org.apache.druid.indexing.common.TaskToolboxFactory)5 LocalTaskActionClientFactory (org.apache.druid.indexing.common.actions.LocalTaskActionClientFactory)5 TaskActionToolbox (org.apache.druid.indexing.common.actions.TaskActionToolbox)5 TaskAuditLogConfig (org.apache.druid.indexing.common.actions.TaskAuditLogConfig)5 TaskConfig (org.apache.druid.indexing.common.config.TaskConfig)5 SupervisorManager (org.apache.druid.indexing.overlord.supervisor.SupervisorManager)5 NoopChatHandlerProvider (org.apache.druid.segment.realtime.firehose.NoopChatHandlerProvider)5 DataSegmentServerAnnouncer (org.apache.druid.server.coordination.DataSegmentServerAnnouncer)5 ListenableFuture (com.google.common.util.concurrent.ListenableFuture)4 CacheConfig (org.apache.druid.client.cache.CacheConfig)4