public class BuildAgentDecorator extends Object implements BuildAgent
BuildAgent.BuildAgentVisitor| Modifier and Type | Field and Description |
|---|---|
static com.google.common.base.Function<BuildAgent,BuildAgentDecorator> |
toDecorator |
| Constructor and Description |
|---|
BuildAgentDecorator(BuildAgent buildAgent) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(BuildAgent.BuildAgentVisitor buildAgentVisitor)
Runs the appropriate visitor method depending on which type of agent it is
|
int |
compareTo(BuildAgent buildAgent) |
AgentStatus |
getAgentStatus() |
PipelineDefinition |
getDefinition() |
long |
getId() |
com.opensymphony.webwork.dispatcher.json.JSONObject |
getJson() |
com.opensymphony.webwork.dispatcher.json.JSONObject |
getJson(boolean includeAllProperties) |
String |
getName() |
AgentType |
getType() |
boolean |
isActive() |
boolean |
isBusy()
Returns true if an agent is building or is cancelling a build
|
boolean |
isDedicated() |
boolean |
isEnabled() |
boolean |
isRequestedToBeStopped()
Whether or not a call has been made to shutdown the agent after the current build has finished
|
boolean |
isUnresponsive()
Whether or not the agent has been deemed to be "unresponsive".
|
void |
setDefinition(PipelineDefinition definition) |
void |
setRequestedToBeStopped(boolean requestedToBeStopped) |
void |
setUnresponsive(boolean unresponsive) |
public static com.google.common.base.Function<BuildAgent,BuildAgentDecorator> toDecorator
public BuildAgentDecorator(@NotNull
BuildAgent buildAgent)
@NotNull public com.opensymphony.webwork.dispatcher.json.JSONObject getJson(boolean includeAllProperties)
@NotNull
public com.opensymphony.webwork.dispatcher.json.JSONObject getJson()
throws com.opensymphony.webwork.dispatcher.json.JSONException
com.opensymphony.webwork.dispatcher.json.JSONExceptionpublic long getId()
getId in interface BambooIdProvidergetId in interface BuildAgentpublic String getName()
getName in interface NameProvidergetName in interface BuildAgentpublic boolean isActive()
isActive in interface BuildAgentpublic boolean isEnabled()
isEnabled in interface BuildAgent@NotNull public AgentStatus getAgentStatus()
getAgentStatus in interface BuildAgent@NotNull public PipelineDefinition getDefinition()
getDefinition in interface BuildAgentpublic void setDefinition(@NotNull
PipelineDefinition definition)
setDefinition in interface BuildAgentpublic boolean isRequestedToBeStopped()
BuildAgentisRequestedToBeStopped in interface BuildAgentpublic void setRequestedToBeStopped(boolean requestedToBeStopped)
setRequestedToBeStopped in interface BuildAgentpublic void accept(BuildAgent.BuildAgentVisitor buildAgentVisitor)
BuildAgentaccept in interface BuildAgentpublic boolean isUnresponsive()
BuildAgentUsed for remote agents.
isUnresponsive in interface BuildAgentpublic void setUnresponsive(boolean unresponsive)
setUnresponsive in interface BuildAgentpublic boolean isBusy()
BuildAgentisBusy in interface BuildAgentpublic int compareTo(BuildAgent buildAgent)
compareTo in interface Comparable<BuildAgent>public AgentType getType()
getType in interface BuildAgentpublic boolean isDedicated()
isDedicated in interface BuildAgentCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.