@Singleton public class AgentResource extends Object
Constructor and Description |
---|
AgentResource(AgentManager agentManager,
RestHelperWrapper restHelperWrapper) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
deleteAgent(long agentId)
Remove build agent.
|
List<RestBuildAgent> |
getAgents(Boolean online)
Provides a list of all agents.
|
javax.ws.rs.core.Response |
getAgentStatus(long agentId)
Provides information about status of agent, if it's online or offline.
|
List<RestBuildAgent> |
getRemoteAgents(Boolean online)
Provides a list of all agent authentication statuses.
|
public AgentResource(AgentManager agentManager, RestHelperWrapper restHelperWrapper)
public List<RestBuildAgent> getAgents(Boolean online)
public List<RestBuildAgent> getRemoteAgents(Boolean online)
public javax.ws.rs.core.Response getAgentStatus(long agentId) throws org.acegisecurity.AccessDeniedException
agentId
- agent idorg.acegisecurity.AccessDeniedException
public javax.ws.rs.core.Response deleteAgent(long agentId) throws org.acegisecurity.AccessDeniedException, WebValidationException
agentId
- agent idorg.acegisecurity.AccessDeniedException
WebValidationException
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.