Interface BuildAgent
- All Superinterfaces:
BambooIdProvider,Comparable<BuildAgent>,NameProvider
- All Known Subinterfaces:
LocalBuildAgent
- All Known Implementing Classes:
BuildAgentDecorator,BuildAgentImpl,LocalBuildAgentImpl
Represents a UI view of a given build agent
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA visitor to execute certain flows depending on the type of theBuildAgent -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(BuildAgent.BuildAgentVisitor buildAgentVisitor) Runs the appropriate visitor method depending on which type of agent it is@NotNull AgentStatus@NotNull PipelineDefinitionlonggetId()@NotNull StringgetName()getType()booleanisActive()booleanisBusy()Returns true if an agent is building or is cancelling a buildbooleanDeprecated.without replacement; this is temporary solutionbooleanbooleanWhether or not a call has been made to shutdown the agent after the current build has finishedbooleanWhether or not the agent has been deemed to be "unresponsive".voidsetDefinition(@NotNull PipelineDefinition definition) voidsetRequestedToBeStopped(boolean requestedToBeStopped) voidsetUnresponsive(boolean unresponsive) Methods inherited from interface java.lang.Comparable
compareTo
-
Field Details
-
EPHEMERAL_AGENT_TEMPLATE_ID_KEY
- See Also:
-
EPHEMERAL_AGENT_TEMPLATE_NAME_KEY
- See Also:
-
-
Method Details
-
getId
long getId()- Specified by:
getIdin interfaceBambooIdProvider
-
getName
- Specified by:
getNamein interfaceNameProvider
-
getType
AgentType getType() -
isActive
boolean isActive() -
isEnabled
boolean isEnabled() -
getAgentStatus
-
getDefinition
-
setDefinition
-
isRequestedToBeStopped
boolean isRequestedToBeStopped()Whether or not a call has been made to shutdown the agent after the current build has finished- Returns:
-
setRequestedToBeStopped
void setRequestedToBeStopped(boolean requestedToBeStopped) -
accept
Runs the appropriate visitor method depending on which type of agent it is- Parameters:
buildAgentVisitor-
-
isUnresponsive
boolean isUnresponsive()Whether or not the agent has been deemed to be "unresponsive". Agents will be first marked as unresponsive before they are made offline.Used for remote agents.
- Returns:
-
setUnresponsive
void setUnresponsive(boolean unresponsive) -
isBusy
boolean isBusy()Returns true if an agent is building or is cancelling a build- Returns:
-
isDedicated
Deprecated.without replacement; this is temporary solution
-