public class HttpIndexingServiceClient extends Object implements IndexingServiceClient
| Constructor and Description |
|---|
HttpIndexingServiceClient(com.fasterxml.jackson.databind.ObjectMapper jsonMapper,
DruidLeaderClient druidLeaderClient) |
| Modifier and Type | Method and Description |
|---|---|
String |
compactSegments(List<org.apache.druid.timeline.DataSegment> segments,
boolean keepSegmentGranularity,
long targetCompactionSizeBytes,
int compactionTaskPriority,
ClientCompactQueryTuningConfig tuningConfig,
Map<String,Object> context) |
org.apache.druid.indexer.TaskStatusPlus |
getLastCompleteTask() |
List<org.apache.druid.indexer.TaskStatusPlus> |
getPendingTasks() |
List<org.apache.druid.indexer.TaskStatusPlus> |
getRunningTasks() |
TaskStatusResponse |
getTaskStatus(String taskId) |
int |
getTotalWorkerCapacity() |
List<org.apache.druid.indexer.TaskStatusPlus> |
getWaitingTasks() |
int |
killPendingSegments(String dataSource,
org.joda.time.DateTime end) |
void |
killSegments(String dataSource,
org.joda.time.Interval interval) |
String |
killTask(String taskId) |
void |
mergeSegments(List<org.apache.druid.timeline.DataSegment> segments) |
String |
runTask(Object taskObject) |
@Inject
public HttpIndexingServiceClient(com.fasterxml.jackson.databind.ObjectMapper jsonMapper,
DruidLeaderClient druidLeaderClient)
public void mergeSegments(List<org.apache.druid.timeline.DataSegment> segments)
mergeSegments in interface IndexingServiceClientpublic void killSegments(String dataSource, org.joda.time.Interval interval)
killSegments in interface IndexingServiceClientpublic String compactSegments(List<org.apache.druid.timeline.DataSegment> segments, boolean keepSegmentGranularity, long targetCompactionSizeBytes, int compactionTaskPriority, @Nullable ClientCompactQueryTuningConfig tuningConfig, @Nullable Map<String,Object> context)
compactSegments in interface IndexingServiceClientpublic String runTask(Object taskObject)
runTask in interface IndexingServiceClientpublic String killTask(String taskId)
killTask in interface IndexingServiceClientpublic int getTotalWorkerCapacity()
getTotalWorkerCapacity in interface IndexingServiceClientpublic List<org.apache.druid.indexer.TaskStatusPlus> getRunningTasks()
getRunningTasks in interface IndexingServiceClientpublic List<org.apache.druid.indexer.TaskStatusPlus> getPendingTasks()
getPendingTasks in interface IndexingServiceClientpublic List<org.apache.druid.indexer.TaskStatusPlus> getWaitingTasks()
getWaitingTasks in interface IndexingServiceClientpublic TaskStatusResponse getTaskStatus(String taskId)
getTaskStatus in interface IndexingServiceClient@Nullable public org.apache.druid.indexer.TaskStatusPlus getLastCompleteTask()
getLastCompleteTask in interface IndexingServiceClientpublic int killPendingSegments(String dataSource, org.joda.time.DateTime end)
killPendingSegments in interface IndexingServiceClientCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.