Class AgentStateCache
java.lang.Object
com.atlassian.bamboo.buildqueue.manager.AgentStateCache
Class to encapsulate the current state of the agents that's around Bamboo at the moment.
Read methods are internally consistent in that they will be accurate for a particular time snapshot
- Since:
- v4.3
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAgent
(long agentId) getAllRemoteAgents
(boolean onlineOnly) getLocalAgent
(long id) void
initialiseAgents
(@NotNull Set<LocalBuildAgent> localAgents, @NotNull Set<BuildAgent> remoteAgents) void
removeFromCache
(long id) void
removeFromCache
(@NotNull BuildAgent agent) @NotNull BuildAgent
updateAgentInCache
(PipelineDefinition definition)
-
Constructor Details
-
AgentStateCache
-
-
Method Details
-
initialiseAgents
public void initialiseAgents(@NotNull @NotNull Set<LocalBuildAgent> localAgents, @NotNull @NotNull Set<BuildAgent> remoteAgents) -
updateAgentInCache
-
removeFromCache
public void removeFromCache(long id) -
removeFromCache
-
getAllLocalAgents
-
getOnlineElasticAgents
-
getOnlineEphemeralAgents
-
getAllRemoteAgents
-
getAllAgents
-
getNonElasticAgents
-
getAllStandardAgents
-
getBusyBuildAgents
-
getActiveAndEnabledAgents
-
getRemoteActiveAndEnabledAgents
-
getElasticActiveAndEnabledAgents
-
getLocalActiveAndEnabledAgents
-
getLocalAgent
-
getAgent
-