public class WorkerResource extends Object
Constructor and Description |
---|
WorkerResource(Worker worker,
WorkerCuratorCoordinator curatorCoordinator,
ForkingTaskRunner taskRunner) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
doDisable() |
javax.ws.rs.core.Response |
doEnable() |
javax.ws.rs.core.Response |
doGetLog(String taskid,
long offset) |
javax.ws.rs.core.Response |
doShutdown(String taskid) |
javax.ws.rs.core.Response |
getTasks() |
javax.ws.rs.core.Response |
isEnabled() |
@Inject public WorkerResource(Worker worker, WorkerCuratorCoordinator curatorCoordinator, ForkingTaskRunner taskRunner) throws Exception
Exception
public javax.ws.rs.core.Response doDisable()
public javax.ws.rs.core.Response doEnable()
public javax.ws.rs.core.Response isEnabled()
public javax.ws.rs.core.Response getTasks()
public javax.ws.rs.core.Response doShutdown(String taskid)
public javax.ws.rs.core.Response doGetLog(String taskid, long offset)
Copyright © 2011–2015. All rights reserved.