public class TaskToolbox extends Object
Constructor and Description |
---|
TaskToolbox(TaskConfig config,
Task task,
TaskActionClientFactory taskActionClientFactory,
com.metamx.emitter.service.ServiceEmitter emitter,
io.druid.segment.loading.DataSegmentPusher segmentPusher,
io.druid.segment.loading.DataSegmentKiller dataSegmentKiller,
io.druid.segment.loading.DataSegmentMover dataSegmentMover,
io.druid.segment.loading.DataSegmentArchiver dataSegmentArchiver,
DataSegmentAnnouncer segmentAnnouncer,
FilteredServerView newSegmentServerView,
QueryRunnerFactoryConglomerate queryRunnerFactoryConglomerate,
ExecutorService queryExecutorService,
com.metamx.metrics.MonitorScheduler monitorScheduler,
SegmentLoader segmentLoader,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
File taskWorkDir) |
Modifier and Type | Method and Description |
---|---|
Map<io.druid.timeline.DataSegment,File> |
fetchSegments(List<io.druid.timeline.DataSegment> segments) |
TaskConfig |
getConfig() |
io.druid.segment.loading.DataSegmentArchiver |
getDataSegmentArchiver() |
io.druid.segment.loading.DataSegmentKiller |
getDataSegmentKiller() |
io.druid.segment.loading.DataSegmentMover |
getDataSegmentMover() |
com.metamx.emitter.service.ServiceEmitter |
getEmitter() |
com.metamx.metrics.MonitorScheduler |
getMonitorScheduler() |
FilteredServerView |
getNewSegmentServerView() |
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
ExecutorService |
getQueryExecutorService() |
QueryRunnerFactoryConglomerate |
getQueryRunnerFactoryConglomerate() |
DataSegmentAnnouncer |
getSegmentAnnouncer() |
io.druid.segment.loading.DataSegmentPusher |
getSegmentPusher() |
TaskActionClient |
getTaskActionClient() |
File |
getTaskWorkDir() |
void |
pushSegments(Iterable<io.druid.timeline.DataSegment> segments) |
public TaskToolbox(TaskConfig config, Task task, TaskActionClientFactory taskActionClientFactory, com.metamx.emitter.service.ServiceEmitter emitter, io.druid.segment.loading.DataSegmentPusher segmentPusher, io.druid.segment.loading.DataSegmentKiller dataSegmentKiller, io.druid.segment.loading.DataSegmentMover dataSegmentMover, io.druid.segment.loading.DataSegmentArchiver dataSegmentArchiver, DataSegmentAnnouncer segmentAnnouncer, FilteredServerView newSegmentServerView, QueryRunnerFactoryConglomerate queryRunnerFactoryConglomerate, ExecutorService queryExecutorService, com.metamx.metrics.MonitorScheduler monitorScheduler, SegmentLoader segmentLoader, com.fasterxml.jackson.databind.ObjectMapper objectMapper, File taskWorkDir)
public TaskConfig getConfig()
public TaskActionClient getTaskActionClient()
public com.metamx.emitter.service.ServiceEmitter getEmitter()
public io.druid.segment.loading.DataSegmentPusher getSegmentPusher()
public io.druid.segment.loading.DataSegmentKiller getDataSegmentKiller()
public io.druid.segment.loading.DataSegmentMover getDataSegmentMover()
public io.druid.segment.loading.DataSegmentArchiver getDataSegmentArchiver()
public DataSegmentAnnouncer getSegmentAnnouncer()
public FilteredServerView getNewSegmentServerView()
public QueryRunnerFactoryConglomerate getQueryRunnerFactoryConglomerate()
public ExecutorService getQueryExecutorService()
public com.metamx.metrics.MonitorScheduler getMonitorScheduler()
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
public Map<io.druid.timeline.DataSegment,File> fetchSegments(List<io.druid.timeline.DataSegment> segments) throws io.druid.segment.loading.SegmentLoadingException
io.druid.segment.loading.SegmentLoadingException
public void pushSegments(Iterable<io.druid.timeline.DataSegment> segments) throws IOException
IOException
public File getTaskWorkDir()
Copyright © 2011–2015. All rights reserved.