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
|
@NotNull AgentStatus |
getAgentStatus() |
@NotNull PipelineDefinition |
getDefinition() |
long |
getId() |
@NotNull 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(@NotNull PipelineDefinition definition) |
void |
setRequestedToBeStopped(boolean requestedToBeStopped) |
void |
setUnresponsive(boolean unresponsive) |
compareTolong getId()
getId in interface BambooIdProvider@NotNull @NotNull String getName()
getName in interface NameProviderAgentType getType()
boolean isActive()
boolean isEnabled()
@NotNull @NotNull AgentStatus getAgentStatus()
@NotNull @NotNull PipelineDefinition getDefinition()
void setDefinition(@NotNull
@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 © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.