public interface IndexingServiceClient
| Modifier and Type | Method and Description |
|---|---|
String |
cancelTask(String taskId) |
String |
compactSegments(String idPrefix,
List<DataSegment> segments,
int compactionTaskPriority,
ClientCompactionTaskQueryTuningConfig tuningConfig,
ClientCompactionTaskGranularitySpec granularitySpec,
Boolean dropExisting,
Map<String,Object> context) |
List<TaskStatusPlus> |
getActiveTasks()
Gets all tasks that are waiting, pending, or running.
|
TaskStatusPlus |
getLastCompleteTask() |
Map<String,List<org.joda.time.Interval>> |
getLockedIntervals(Map<String,Integer> minTaskPriority)
Gets a List of Intervals locked by higher priority tasks for each datasource.
|
TaskPayloadResponse |
getTaskPayload(String taskId) |
TaskStatusResponse |
getTaskStatus(String taskId) |
Map<String,TaskStatus> |
getTaskStatuses(Set<String> taskIds) |
int |
getTotalWorkerCapacity() |
int |
killPendingSegments(String dataSource,
org.joda.time.DateTime end) |
void |
killUnusedSegments(String idPrefix,
String dataSource,
org.joda.time.Interval interval) |
String |
runTask(String taskId,
Object taskObject) |
SamplerResponse |
sample(SamplerSpec samplerSpec) |
void killUnusedSegments(String idPrefix, String dataSource, org.joda.time.Interval interval)
int killPendingSegments(String dataSource, org.joda.time.DateTime end)
String compactSegments(String idPrefix, List<DataSegment> segments, int compactionTaskPriority, @Nullable ClientCompactionTaskQueryTuningConfig tuningConfig, @Nullable ClientCompactionTaskGranularitySpec granularitySpec, @Nullable Boolean dropExisting, @Nullable Map<String,Object> context)
int getTotalWorkerCapacity()
List<TaskStatusPlus> getActiveTasks()
TaskStatusResponse getTaskStatus(String taskId)
Map<String,TaskStatus> getTaskStatuses(Set<String> taskIds) throws InterruptedException
InterruptedException@Nullable TaskStatusPlus getLastCompleteTask()
@Nullable TaskPayloadResponse getTaskPayload(String taskId)
Map<String,List<org.joda.time.Interval>> getLockedIntervals(Map<String,Integer> minTaskPriority)
minTaskPriority - Minimum task priority for each datasource. Only the
Intervals that are locked by Tasks higher than this
priority are returned. Tasks for datasources that
are not present in this Map are not returned.minTaskPriority for that datasource.SamplerResponse sample(SamplerSpec samplerSpec)
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.