public class WorkerService
extends java.lang.Object
Constructor and Description |
---|
WorkerService() |
Modifier and Type | Method and Description |
---|---|
void |
changeState(java.lang.String jobId,
java.lang.Long workerId,
StateChangeRequest<WorkerState> stateChangeRequest) |
int |
changeStateOfAllWorkers(java.lang.String jobId,
WorkerState state) |
Worker |
createWorker(WorkerCreateRequest workerCreateRequest) |
java.lang.Iterable<Worker> |
getAllForJob(java.lang.String jobId) |
java.lang.Iterable<Worker> |
getAllWorkers() |
java.lang.Object |
getStateStats() |
Worker |
getWorkerById(java.lang.String jobId,
java.lang.Long workerId) |
void |
heartbeat(java.lang.String jobId,
java.lang.Long workerId) |
public java.lang.Iterable<Worker> getAllForJob(java.lang.String jobId)
public java.lang.Iterable<Worker> getAllWorkers()
public Worker createWorker(WorkerCreateRequest workerCreateRequest)
public void changeState(java.lang.String jobId, java.lang.Long workerId, StateChangeRequest<WorkerState> stateChangeRequest)
public int changeStateOfAllWorkers(java.lang.String jobId, WorkerState state)
public void heartbeat(java.lang.String jobId, java.lang.Long workerId)
public Worker getWorkerById(java.lang.String jobId, java.lang.Long workerId)
public java.lang.Object getStateStats()