public interface WorkerRepository
Modifier and Type | Method and Description |
---|---|
int |
changeStateOfAllWorkers(java.lang.String jobId,
WorkerState workerState,
WorkerState excludeState) |
int |
changeWorkerState(java.lang.String jobId,
java.lang.Long workerId,
WorkerState workerState) |
java.lang.Iterable<Worker> |
findAllByJob_JobID(java.lang.String jobId) |
java.util.List<java.lang.Object[]> |
getStateStats() |
int |
heartbeat(java.lang.String jobId,
java.lang.Long workerId,
java.util.Date now) |
java.lang.Iterable<Worker> findAllByJob_JobID(java.lang.String jobId)
int changeWorkerState(java.lang.String jobId, java.lang.Long workerId, WorkerState workerState)
int changeStateOfAllWorkers(java.lang.String jobId, WorkerState workerState, WorkerState excludeState)
int heartbeat(java.lang.String jobId, java.lang.Long workerId, java.util.Date now)
java.util.List<java.lang.Object[]> getStateStats()