Search in sources :

Example 1 with NoopDataSegmentArchiver

use of org.apache.druid.segment.loading.NoopDataSegmentArchiver in project druid by druid-io.

the class SingleTaskBackgroundRunnerTest method setup.

@Before
public void setup() throws IOException {
    final TestUtils utils = new TestUtils();
    final DruidNode node = new DruidNode("testServer", "testHost", false, 1000, null, true, false);
    final TaskConfig taskConfig = new TaskConfig(temporaryFolder.newFile().toString(), null, null, 50000, null, true, null, null, null, false, false, TaskConfig.BATCH_PROCESSING_MODE_DEFAULT.name());
    final ServiceEmitter emitter = new NoopServiceEmitter();
    EmittingLogger.registerEmitter(emitter);
    final TaskToolboxFactory toolboxFactory = new TaskToolboxFactory(taskConfig, null, EasyMock.createMock(TaskActionClientFactory.class), emitter, new NoopDataSegmentPusher(), new NoopDataSegmentKiller(), new NoopDataSegmentMover(), new NoopDataSegmentArchiver(), new NoopDataSegmentAnnouncer(), null, null, null, null, NoopJoinableFactory.INSTANCE, null, new SegmentCacheManagerFactory(utils.getTestObjectMapper()), utils.getTestObjectMapper(), utils.getTestIndexIO(), null, null, null, utils.getTestIndexMergerV9(), null, node, null, null, new SingleFileTaskReportFileWriter(new File("fake")), null, AuthTestUtils.TEST_AUTHORIZER_MAPPER, new NoopChatHandlerProvider(), utils.getRowIngestionMetersFactory(), new TestAppenderatorsManager(), new NoopIndexingServiceClient(), null, null, null);
    runner = new SingleTaskBackgroundRunner(toolboxFactory, taskConfig, emitter, node, new ServerConfig());
}
Also used : ServiceEmitter(org.apache.druid.java.util.emitter.service.ServiceEmitter) NoopServiceEmitter(org.apache.druid.server.metrics.NoopServiceEmitter) NoopDataSegmentArchiver(org.apache.druid.segment.loading.NoopDataSegmentArchiver) SingleFileTaskReportFileWriter(org.apache.druid.indexing.common.SingleFileTaskReportFileWriter) NoopDataSegmentPusher(org.apache.druid.segment.loading.NoopDataSegmentPusher) NoopDataSegmentKiller(org.apache.druid.segment.loading.NoopDataSegmentKiller) NoopDataSegmentAnnouncer(org.apache.druid.server.coordination.NoopDataSegmentAnnouncer) NoopChatHandlerProvider(org.apache.druid.segment.realtime.firehose.NoopChatHandlerProvider) SegmentCacheManagerFactory(org.apache.druid.indexing.common.SegmentCacheManagerFactory) TaskActionClientFactory(org.apache.druid.indexing.common.actions.TaskActionClientFactory) NoopDataSegmentMover(org.apache.druid.segment.loading.NoopDataSegmentMover) TaskConfig(org.apache.druid.indexing.common.config.TaskConfig) NoopServiceEmitter(org.apache.druid.server.metrics.NoopServiceEmitter) TestUtils(org.apache.druid.indexing.common.TestUtils) AuthTestUtils(org.apache.druid.server.security.AuthTestUtils) ServerConfig(org.apache.druid.server.initialization.ServerConfig) NoopIndexingServiceClient(org.apache.druid.client.indexing.NoopIndexingServiceClient) TaskToolboxFactory(org.apache.druid.indexing.common.TaskToolboxFactory) DruidNode(org.apache.druid.server.DruidNode) File(java.io.File) TestAppenderatorsManager(org.apache.druid.indexing.common.task.TestAppenderatorsManager) Before(org.junit.Before)

Aggregations

File (java.io.File)1 NoopIndexingServiceClient (org.apache.druid.client.indexing.NoopIndexingServiceClient)1 SegmentCacheManagerFactory (org.apache.druid.indexing.common.SegmentCacheManagerFactory)1 SingleFileTaskReportFileWriter (org.apache.druid.indexing.common.SingleFileTaskReportFileWriter)1 TaskToolboxFactory (org.apache.druid.indexing.common.TaskToolboxFactory)1 TestUtils (org.apache.druid.indexing.common.TestUtils)1 TaskActionClientFactory (org.apache.druid.indexing.common.actions.TaskActionClientFactory)1 TaskConfig (org.apache.druid.indexing.common.config.TaskConfig)1 TestAppenderatorsManager (org.apache.druid.indexing.common.task.TestAppenderatorsManager)1 ServiceEmitter (org.apache.druid.java.util.emitter.service.ServiceEmitter)1 NoopDataSegmentArchiver (org.apache.druid.segment.loading.NoopDataSegmentArchiver)1 NoopDataSegmentKiller (org.apache.druid.segment.loading.NoopDataSegmentKiller)1 NoopDataSegmentMover (org.apache.druid.segment.loading.NoopDataSegmentMover)1 NoopDataSegmentPusher (org.apache.druid.segment.loading.NoopDataSegmentPusher)1 NoopChatHandlerProvider (org.apache.druid.segment.realtime.firehose.NoopChatHandlerProvider)1 DruidNode (org.apache.druid.server.DruidNode)1 NoopDataSegmentAnnouncer (org.apache.druid.server.coordination.NoopDataSegmentAnnouncer)1 ServerConfig (org.apache.druid.server.initialization.ServerConfig)1 NoopServiceEmitter (org.apache.druid.server.metrics.NoopServiceEmitter)1 AuthTestUtils (org.apache.druid.server.security.AuthTestUtils)1