Class AgentResource
- java.lang.Object
-
- com.atlassian.bamboo.plugins.testutils.rest.resource.agent.AgentResource
-
@Singleton public class AgentResource extends Object
-
-
Constructor Summary
Constructors Constructor Description AgentResource(AgentManager agentManager, AgentAssignmentService agentAssignmentService, RemoteAgentAuthenticationManager agentAuthenticationManager, RemoteAgentManager remoteAgentManager, AgentSecurityTokenService agentSecurityTokenService, PerAgentTokenService perAgentTokenService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
agentsDedicatedToken(String reasonKey)
javax.ws.rs.core.Response
agentsToken()
javax.ws.rs.core.Response
approveAllAgents()
RestAgent
createLocalAgent()
Creates a local agent with default configuration and a random name.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()
-
-
-
Constructor Detail
-
AgentResource
public AgentResource(AgentManager agentManager, AgentAssignmentService agentAssignmentService, RemoteAgentAuthenticationManager agentAuthenticationManager, RemoteAgentManager remoteAgentManager, AgentSecurityTokenService agentSecurityTokenService, PerAgentTokenService perAgentTokenService)
-
-
Method Detail
-
createLocalAgent
public RestAgent createLocalAgent()
Creates a local agent with default configuration and a random name.
-
deleteAllLocalAgents
public javax.ws.rs.core.Response deleteAllLocalAgents() throws Exception
- Throws:
Exception
-
enableRemoteAgents
public javax.ws.rs.core.Response enableRemoteAgents(boolean enabled) throws Exception
- Throws:
Exception
-
approveAllAgents
public javax.ws.rs.core.Response approveAllAgents()
-
enableAllAgents
public javax.ws.rs.core.Response enableAllAgents()
-
disableAllAgents
public javax.ws.rs.core.Response disableAllAgents()
-
undedicateAllAgents
public javax.ws.rs.core.Response undedicateAllAgents()
-
agentsToken
public javax.ws.rs.core.Response agentsToken()
-
agentsDedicatedToken
public javax.ws.rs.core.Response agentsDedicatedToken(String reasonKey)
-
-