@Singleton public class AgentResource extends Object
| Constructor and Description |
|---|
AgentResource(AgentManager agentManager,
AgentAssignmentService agentAssignmentService,
RemoteAgentAuthenticationManager agentAuthenticationManager,
RemoteAgentManager remoteAgentManager) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
approveAllAgents() |
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 |
deleteAllLocalAgents() |
javax.ws.rs.core.Response |
disableAllAgents() |
javax.ws.rs.core.Response |
enableAllAgents() |
javax.ws.rs.core.Response |
enableRemoteAgents(boolean enabled) |
Set<Long> |
getAllActiveAndEnabledAgentsId() |
javax.ws.rs.core.Response |
undedicateAllAgents() |
public AgentResource(AgentManager agentManager, AgentAssignmentService agentAssignmentService, RemoteAgentAuthenticationManager agentAuthenticationManager, RemoteAgentManager remoteAgentManager)
public RestAgent createLocalAgent() throws Exception
Exceptionpublic javax.ws.rs.core.Response deleteAllLocalAgents()
throws Exception
Exceptionpublic javax.ws.rs.core.Response enableRemoteAgents(boolean enabled)
throws Exception
Exceptionpublic javax.ws.rs.core.Response deleteAgent(long agentId)
throws Exception
Exceptionpublic javax.ws.rs.core.Response approveAllAgents()
public javax.ws.rs.core.Response enableAllAgents()
public javax.ws.rs.core.Response disableAllAgents()
public javax.ws.rs.core.Response undedicateAllAgents()
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.