public interface BuildAgent extends Comparable<BuildAgent>, NameProvider, BambooIdProvider
Modifier and Type | Interface and Description |
---|---|
static interface |
BuildAgent.BuildAgentVisitor
A visitor to execute certain flows depending on the type of the
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
|
AgentStatus |
getAgentStatus() |
PipelineDefinition |
getDefinition() |
long |
getId() |
String |
getName() |
AgentType |
getType() |
boolean |
isActive() |
boolean |
isBusy()
Returns true if an agent is building or is cancelling a build
|
boolean |
isDedicated()
Deprecated.
without replacement; this is temporary solution
|
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) |
compareTo
long getId()
getId
in interface BambooIdProvider
@NotNull String getName()
getName
in interface NameProvider
AgentType getType()
boolean isActive()
boolean isEnabled()
@NotNull AgentStatus getAgentStatus()
@NotNull PipelineDefinition getDefinition()
void setDefinition(@NotNull PipelineDefinition definition)
boolean isRequestedToBeStopped()
void setRequestedToBeStopped(boolean requestedToBeStopped)
void accept(BuildAgent.BuildAgentVisitor buildAgentVisitor)
buildAgentVisitor
- boolean isUnresponsive()
Used for remote agents.
void setUnresponsive(boolean unresponsive)
boolean isBusy()
@Deprecated boolean isDedicated()
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.