@Path(value="/agent") @Consumes(value="application/json") @Produces(value="application/json") @Singleton public class AgentResource extends Object
Constructor and Description |
---|
AgentResource(AgentManager agentManager) |
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() |
public AgentResource(AgentManager agentManager)
@POST @Path(value="local") public RestAgent createLocalAgent() throws Exception
Exception
@DELETE @Path(value="{agentId}") public javax.ws.rs.core.Response deleteAgent(@PathParam(value="agentId") long agentId) throws Exception
Exception
@Path(value="enable-all-agents") @PUT public javax.ws.rs.core.Response enableAllAgents()
@Path(value="disable-all-agents") @PUT public javax.ws.rs.core.Response disableAllAgents()
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.