|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AgentDao
Agent Definition Dao that can search on PipelineDefinitions as well as it sub classes.
Method Summary | |
---|---|
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 |
Methods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao |
---|
findById |
Methods inherited from interface bucket.core.persistence.ObjectDao |
---|
findAll, findAllSorted, getPersistentClass, refresh, remove, replicate, save, saveRaw |
Method Detail |
---|
@NotNull PipelineDefinition saveAndReturn(@NotNull PipelineDefinition pipelineDefinition)
pipelineDefinition
- to save
@Nullable PipelineDefinition getAgentById(long id)
id
- - the id for the agent to be retrieved
PipelineDefinition getLocalAgentById(long id)
id
- of the agent
PipelineDefinition getRemoteAgentById(long id)
id
- of the agent
List<RemoteAgentDefinition> findAllRemoteAgents()
List<ElasticAgentDefinition> findNotShutDownElasticAgents()
long getAgentCount(Class<? extends PipelineDefinition> agentDefinitionClass)
agentDefinitionClass
- agent type
List<LocalAgentDefinition> findAllLocalAgents()
@NotNull List<ElasticAgentDefinition> findAllElasticAgents(int firstResult, int maxResults)
List<ElasticAgentDefinition> findAllElasticAgents(@NotNull Collection<String> instanceIds)
instanceIds
- the instances ids on which the agents were running
List<PipelineDefinition> findAllAgents()
@NotNull List<PipelineDefinition> findAllAgentsWithNameLike(@NotNull String likeName)
likeName
- the string to match
Set<PipelineDefinition> findAllAgentsForAgentIds(@NotNull Collection<Long> agentIds)
buildResultsSummaries
-
PipelineDefinition
@Nullable PipelineDefinition findAgentByName(@NotNull String name)
name
- of the agent to find
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |