Search in sources :

Example 6 with TaskStorageConfig

use of io.druid.indexing.common.config.TaskStorageConfig in project druid by druid-io.

the class TaskActionTestKit method before.

@Override
public void before() {
    taskStorage = new HeapMemoryTaskStorage(new TaskStorageConfig(new Period("PT24H")));
    taskLockbox = new TaskLockbox(taskStorage);
    testDerbyConnector = new TestDerbyConnector(Suppliers.ofInstance(new MetadataStorageConnectorConfig()), Suppliers.ofInstance(metadataStorageTablesConfig));
    metadataStorageCoordinator = new IndexerSQLMetadataStorageCoordinator(new TestUtils().getTestObjectMapper(), metadataStorageTablesConfig, testDerbyConnector);
    taskActionToolbox = new TaskActionToolbox(taskLockbox, metadataStorageCoordinator, new NoopServiceEmitter(), EasyMock.createMock(SupervisorManager.class));
    testDerbyConnector.createDataSourceTable();
    testDerbyConnector.createPendingSegmentsTable();
    testDerbyConnector.createSegmentTable();
    testDerbyConnector.createRulesTable();
    testDerbyConnector.createConfigTable();
    testDerbyConnector.createTaskTables();
    testDerbyConnector.createAuditTable();
}
Also used : IndexerSQLMetadataStorageCoordinator(io.druid.metadata.IndexerSQLMetadataStorageCoordinator) TestUtils(io.druid.indexing.common.TestUtils) MetadataStorageConnectorConfig(io.druid.metadata.MetadataStorageConnectorConfig) TaskStorageConfig(io.druid.indexing.common.config.TaskStorageConfig) HeapMemoryTaskStorage(io.druid.indexing.overlord.HeapMemoryTaskStorage) Period(org.joda.time.Period) TaskLockbox(io.druid.indexing.overlord.TaskLockbox) NoopServiceEmitter(io.druid.server.metrics.NoopServiceEmitter) TestDerbyConnector(io.druid.metadata.TestDerbyConnector)

Aggregations

TaskStorageConfig (io.druid.indexing.common.config.TaskStorageConfig)6 HeapMemoryTaskStorage (io.druid.indexing.overlord.HeapMemoryTaskStorage)4 TaskLockbox (io.druid.indexing.overlord.TaskLockbox)4 IndexerSQLMetadataStorageCoordinator (io.druid.metadata.IndexerSQLMetadataStorageCoordinator)3 TestDerbyConnector (io.druid.metadata.TestDerbyConnector)3 SegmentLoaderFactory (io.druid.indexing.common.SegmentLoaderFactory)2 TaskToolboxFactory (io.druid.indexing.common.TaskToolboxFactory)2 TestUtils (io.druid.indexing.common.TestUtils)2 LocalTaskActionClientFactory (io.druid.indexing.common.actions.LocalTaskActionClientFactory)2 TaskActionClientFactory (io.druid.indexing.common.actions.TaskActionClientFactory)2 TaskActionToolbox (io.druid.indexing.common.actions.TaskActionToolbox)2 TaskConfig (io.druid.indexing.common.config.TaskConfig)2 SupervisorManager (io.druid.indexing.overlord.supervisor.SupervisorManager)2 SQLMetadataStorageActionHandlerFactory (io.druid.metadata.SQLMetadataStorageActionHandlerFactory)2 SegmentDescriptor (io.druid.query.SegmentDescriptor)2 DataSegment (io.druid.timeline.DataSegment)2 File (java.io.File)2 Module (com.fasterxml.jackson.databind.Module)1 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 NamedType (com.fasterxml.jackson.databind.jsontype.NamedType)1