@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 |
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()
public javax.ws.rs.core.Response deleteAllLocalAgents() throws Exception
Exception
public javax.ws.rs.core.Response enableRemoteAgents(boolean enabled) throws Exception
Exception
public 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 © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.