Package com.xebialabs.deployit.core.api
Interface WorkersService
@Consumes({"application/xml","application/json"})
@Produces({"application/xml","application/json"})
@Path("workers")
public interface WorkersService
-
Method Summary
Modifier and TypeMethodDescriptionList<ai.digital.deploy.sql.model.WorkerInfo> listWorkers(com.xebialabs.deployit.engine.api.dto.Paging paging, com.xebialabs.deployit.engine.api.dto.Ordering order) Lists all workersvoidremoveWorker(Integer workerId) Remove a disconnected worker (and possibly related tasks) from the system.Find ghost tasks on a worker (tasks that are not registered in the system) and re-register them.voidshutdownWorker(Integer workerId) Gracefully shutdown a worker by id.voidshutdownWorkers(List<String> workers) Forcefully shutdown workers by address, if no address provided all of workers will shutdown.
-
Method Details
-
shutdownWorkers
Forcefully shutdown workers by address, if no address provided all of workers will shutdown. -
shutdownWorker
Gracefully shutdown a worker by id. -
removeWorker
Remove a disconnected worker (and possibly related tasks) from the system. -
listWorkers
@GET List<ai.digital.deploy.sql.model.WorkerInfo> listWorkers(@BeanParam com.xebialabs.deployit.engine.api.dto.Paging paging, @QueryParam("order") com.xebialabs.deployit.engine.api.dto.Ordering order) Lists all workers -
reregisterGhostTasks
Find ghost tasks on a worker (tasks that are not registered in the system) and re-register them.- Returns:
- The ghost tasks found and reregistered.
-