public class TaskStorageQueryAdapter extends Object
TaskStorage
, providing a useful collection of read-only methods.Constructor and Description |
---|
TaskStorageQueryAdapter(TaskStorage storage) |
Modifier and Type | Method and Description |
---|---|
List<Task> |
getActiveTasks() |
Set<io.druid.timeline.DataSegment> |
getInsertedSegments(String taskid)
Returns all segments created by this task.
|
List<TaskStatus> |
getRecentlyFinishedTaskStatuses() |
com.google.common.base.Optional<TaskStatus> |
getStatus(String taskid) |
com.google.common.base.Optional<Task> |
getTask(String taskid) |
@Inject public TaskStorageQueryAdapter(TaskStorage storage)
public List<TaskStatus> getRecentlyFinishedTaskStatuses()
public com.google.common.base.Optional<TaskStatus> getStatus(String taskid)
public Set<io.druid.timeline.DataSegment> getInsertedSegments(String taskid)
taskid
- task IDCopyright © 2011–2015. All rights reserved.