@Singleton public class AgentResource extends Object
Constructor and Description |
---|
AgentResource(AgentManager agentManager,
AgentAssignmentService agentAssignmentService) |
Modifier and Type | Method and Description |
---|---|
RestAgent |
createLocalAgent()
Creates a local agent with default configuration and a random name.
|
javax.ws.rs.core.Response |
deleteAgent(long agentId)
Deletes an agent.
|
javax.ws.rs.core.Response |
disableAllAgents() |
javax.ws.rs.core.Response |
enableAllAgents() |
javax.ws.rs.core.Response |
undedicateAllAgents() |
public AgentResource(AgentManager agentManager, AgentAssignmentService agentAssignmentService)
public RestAgent createLocalAgent() throws Exception
Exception
public javax.ws.rs.core.Response deleteAgent(long agentId) throws Exception
Exception
public javax.ws.rs.core.Response enableAllAgents()
public javax.ws.rs.core.Response disableAllAgents()
public javax.ws.rs.core.Response undedicateAllAgents()
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.