@ThreadSafe public class AgentStateCache extends Object
Read methods are internally consistent in that they will be accurate for a particular time snapshot
Constructor and Description |
---|
AgentStateCache() |
Modifier and Type | Method and Description |
---|---|
Collection<BuildAgent> |
getActiveAndEnabledAgents() |
BuildAgent |
getAgent(long agentId) |
List<BuildAgent> |
getAllAgents() |
List<LocalBuildAgent> |
getAllLocalAgents() |
List<BuildAgent> |
getAllRemoteAgents(boolean onlineOnly) |
Collection<BuildAgent> |
getBusyBuildAgents() |
LocalBuildAgent |
getLocalAgent(long id) |
List<BuildAgent> |
getNonElasticAgents() |
List<BuildAgent> |
getOnlineElasticAgents() |
void |
initialiseAgents(Set<LocalBuildAgent> localAgents,
Set<BuildAgent> remoteAgents) |
void |
removeFromCache(BuildAgent agent) |
BuildAgent |
updateAgentInCache(PipelineDefinition definition) |
public void initialiseAgents(@NotNull Set<LocalBuildAgent> localAgents, @NotNull Set<BuildAgent> remoteAgents)
@NotNull public BuildAgent updateAgentInCache(PipelineDefinition definition)
public void removeFromCache(@NotNull BuildAgent agent)
public List<LocalBuildAgent> getAllLocalAgents()
public List<BuildAgent> getOnlineElasticAgents()
public List<BuildAgent> getAllRemoteAgents(boolean onlineOnly)
public List<BuildAgent> getAllAgents()
public List<BuildAgent> getNonElasticAgents()
public Collection<BuildAgent> getBusyBuildAgents()
public Collection<BuildAgent> getActiveAndEnabledAgents()
public LocalBuildAgent getLocalAgent(long id)
public BuildAgent getAgent(long agentId)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.