public class OverlordResource extends Object
Constructor and Description |
---|
OverlordResource(TaskMaster taskMaster,
TaskStorageQueryAdapter taskStorageQueryAdapter,
io.druid.tasklogs.TaskLogStreamer taskLogStreamer,
JacksonConfigManager configManager,
AuditManager auditManager) |
Modifier and Type | Method and Description |
---|---|
<T> javax.ws.rs.core.Response |
doAction(TaskActionHolder<T> holder) |
javax.ws.rs.core.Response |
doGetLog(String taskid,
long offset) |
javax.ws.rs.core.Response |
doShutdown(String taskid) |
javax.ws.rs.core.Response |
getCompleteTasks() |
javax.ws.rs.core.Response |
getLeader() |
javax.ws.rs.core.Response |
getPendingTasks() |
javax.ws.rs.core.Response |
getRunningTasks() |
javax.ws.rs.core.Response |
getScalingState() |
javax.ws.rs.core.Response |
getTaskPayload(String taskid) |
javax.ws.rs.core.Response |
getTaskSegments(String taskid) |
javax.ws.rs.core.Response |
getTaskStatus(String taskid) |
javax.ws.rs.core.Response |
getWaitingTasks() |
javax.ws.rs.core.Response |
getWorkerConfig() |
javax.ws.rs.core.Response |
getWorkerConfigHistory(String interval) |
javax.ws.rs.core.Response |
getWorkers() |
javax.ws.rs.core.Response |
setWorkerConfig(WorkerBehaviorConfig workerBehaviorConfig,
String author,
String comment,
javax.servlet.http.HttpServletRequest req) |
javax.ws.rs.core.Response |
taskPost(Task task) |
@Inject public OverlordResource(TaskMaster taskMaster, TaskStorageQueryAdapter taskStorageQueryAdapter, io.druid.tasklogs.TaskLogStreamer taskLogStreamer, JacksonConfigManager configManager, AuditManager auditManager) throws Exception
Exception
public javax.ws.rs.core.Response taskPost(Task task)
public javax.ws.rs.core.Response getLeader()
public javax.ws.rs.core.Response getTaskPayload(String taskid)
public javax.ws.rs.core.Response getTaskStatus(String taskid)
public javax.ws.rs.core.Response getTaskSegments(String taskid)
public javax.ws.rs.core.Response doShutdown(String taskid)
public javax.ws.rs.core.Response getWorkerConfig()
public javax.ws.rs.core.Response setWorkerConfig(WorkerBehaviorConfig workerBehaviorConfig, @HeaderParam(value="X-Druid-Author") String author, @HeaderParam(value="X-Druid-Comment") String comment, @Context javax.servlet.http.HttpServletRequest req)
public javax.ws.rs.core.Response getWorkerConfigHistory(String interval)
public <T> javax.ws.rs.core.Response doAction(TaskActionHolder<T> holder)
public javax.ws.rs.core.Response getWaitingTasks()
public javax.ws.rs.core.Response getPendingTasks()
public javax.ws.rs.core.Response getRunningTasks()
public javax.ws.rs.core.Response getCompleteTasks()
public javax.ws.rs.core.Response getWorkers()
public javax.ws.rs.core.Response getScalingState()
public javax.ws.rs.core.Response doGetLog(String taskid, long offset)
Copyright © 2011–2015. All rights reserved.