public interface AgentDao extends BambooObjectDao
Modifier and Type | Method and Description |
---|---|
PipelineDefinition |
findAgentByName(String name)
Retrieve a pipelineDefinition by name.
|
List<PipelineDefinition> |
findAllAgents()
Retrieves all agents();
|
Set<PipelineDefinition> |
findAllAgentsForAgentIds(Collection<Long> agentIds)
Return a list of agents by their ids
|
List<PipelineDefinition> |
findAllAgentsWithNameLike(String likeName)
Retrun a list of agents whose name is like the provided string.
|
List<ElasticAgentDefinition> |
findAllElasticAgents(Collection<String> instanceIds)
Retrieves all elastic agents
|
List<ElasticAgentDefinition> |
findAllElasticAgents(int firstResult,
int maxResults)
Retrieves n most recently terminated elastic agents, ordered by termination time,
descending.
|
List<LocalAgentDefinition> |
findAllLocalAgents()
Retrieves all local agents
|
List<RemoteAgentDefinition> |
findAllRemoteAgents()
Retrieves all remote agents
|
List<ElasticAgentDefinition> |
findNotShutDownElasticAgents()
Retrieves all agents without a shutdown time defined
|
PipelineDefinition |
getAgentById(long id)
Retrieve the agentDefinition object.
|
long |
getAgentCount(Class<? extends PipelineDefinition> agentDefinitionClass)
Retrieves the amount of agents of given type stored in the database
|
PipelineDefinition |
getLocalAgentById(long id)
Retrieve the localAgentDefinition
|
PipelineDefinition |
getRemoteAgentById(long id)
Retrieve the remoteAgentDefinition
|
PipelineDefinition |
saveAndReturn(PipelineDefinition pipelineDefinition)
Saves the passed definition and returns a new copy of the updated pipeline definition
|
findById
@NotNull PipelineDefinition saveAndReturn(@NotNull PipelineDefinition pipelineDefinition)
pipelineDefinition
- to save@Nullable PipelineDefinition getAgentById(long id)
id
- - the id for the agent to be retrievedPipelineDefinition getLocalAgentById(long id)
id
- of the agentPipelineDefinition getRemoteAgentById(long id)
id
- of the agentList<RemoteAgentDefinition> findAllRemoteAgents()
List<ElasticAgentDefinition> findNotShutDownElasticAgents()
long getAgentCount(Class<? extends PipelineDefinition> agentDefinitionClass)
agentDefinitionClass
- agent typeList<LocalAgentDefinition> findAllLocalAgents()
@NotNull List<ElasticAgentDefinition> findAllElasticAgents(int firstResult, int maxResults)
@NotNull List<ElasticAgentDefinition> findAllElasticAgents(@NotNull Collection<String> instanceIds)
instanceIds
- the instances ids on which the agents were runningList<PipelineDefinition> findAllAgents()
@NotNull List<PipelineDefinition> findAllAgentsWithNameLike(@NotNull String likeName)
likeName
- the string to matchSet<PipelineDefinition> findAllAgentsForAgentIds(@NotNull Collection<Long> agentIds)
PipelineDefinition
@Nullable PipelineDefinition findAgentByName(@NotNull String name)
name
- of the agent to findCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.