public class TaskActionToolbox extends Object
Constructor and Description |
---|
TaskActionToolbox(TaskLockbox taskLockbox,
IndexerMetadataStorageCoordinator indexerMetadataStorageCoordinator,
com.metamx.emitter.service.ServiceEmitter emitter) |
Modifier and Type | Method and Description |
---|---|
com.metamx.emitter.service.ServiceEmitter |
getEmitter() |
IndexerMetadataStorageCoordinator |
getIndexerMetadataStorageCoordinator() |
TaskLockbox |
getTaskLockbox() |
boolean |
segmentsAreFromSamePartitionSet(Set<io.druid.timeline.DataSegment> segments) |
boolean |
taskLockCoversSegments(Task task,
Set<io.druid.timeline.DataSegment> segments,
boolean allowOlderVersions) |
void |
verifyTaskLocksAndSinglePartitionSettitude(Task task,
Set<io.druid.timeline.DataSegment> segments,
boolean allowOlderVersions) |
@Inject public TaskActionToolbox(TaskLockbox taskLockbox, IndexerMetadataStorageCoordinator indexerMetadataStorageCoordinator, com.metamx.emitter.service.ServiceEmitter emitter)
public TaskLockbox getTaskLockbox()
public IndexerMetadataStorageCoordinator getIndexerMetadataStorageCoordinator()
public com.metamx.emitter.service.ServiceEmitter getEmitter()
public boolean segmentsAreFromSamePartitionSet(Set<io.druid.timeline.DataSegment> segments)
public void verifyTaskLocksAndSinglePartitionSettitude(Task task, Set<io.druid.timeline.DataSegment> segments, boolean allowOlderVersions)
Copyright © 2011–2015. All rights reserved.