|
||||||||||
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(java.lang.String name)
Retrieve a pipelineDefinition by name. |
java.util.List<PipelineDefinition> |
findAllAgents()
Retrieves all agents(); |
java.util.Set<PipelineDefinition> |
findAllAgentsForAgentIds(java.util.Collection<java.lang.Long> agentIds)
Return a list of agents by their ids |
java.util.List<PipelineDefinition> |
findAllAgentsWithNameLike(java.lang.String likeName)
Retrun a list of agents whose name is like the provided string. |
java.util.List<ElasticAgentDefinition> |
findAllElasticAgents()
Deprecated. since 3.2 This method can potentially pull thousands of agents definitions from the database and incapacitate the whole server, consider using #findAllElasticAgents(int) |
java.util.List<ElasticAgentDefinition> |
findAllElasticAgents(java.util.Collection<java.lang.String> instanceIds)
Retrieves all elastic agents |
java.util.List<ElasticAgentDefinition> |
findAllElasticAgents(int firstResult,
int maxResults)
Retrieves n most recently terminated elastic agents, ordered by termination time, descending. |
java.util.List<LocalAgentDefinition> |
findAllLocalAgents()
Retrieves all local agents |
java.util.List<RemoteAgentDefinition> |
findAllRemoteAgents()
Retrieves all remote agents |
java.util.List<ElasticAgentDefinition> |
findNotShutDownElasticAgents()
Retrieves all agents without a shutdown time defined |
PipelineDefinition |
getAgentById(long id)
Retrieve the agentDefinition object. |
long |
getAgentCount(java.lang.Class<ElasticAgentDefinition> 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
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
java.util.List<RemoteAgentDefinition> findAllRemoteAgents()
java.util.List<ElasticAgentDefinition> findNotShutDownElasticAgents()
long getAgentCount(java.lang.Class<ElasticAgentDefinition> agentDefinitionClass)
agentDefinitionClass
- agent type
java.util.List<LocalAgentDefinition> findAllLocalAgents()
@Deprecated @NotNull java.util.List<ElasticAgentDefinition> findAllElasticAgents()
#findAllElasticAgents(int)
@NotNull java.util.List<ElasticAgentDefinition> findAllElasticAgents(int firstResult, int maxResults)
java.util.List<ElasticAgentDefinition> findAllElasticAgents(@NotNull java.util.Collection<java.lang.String> instanceIds)
instanceIds
- the instances ids on which the agents were running
java.util.List<PipelineDefinition> findAllAgents()
@NotNull java.util.List<PipelineDefinition> findAllAgentsWithNameLike(@NotNull java.lang.String likeName)
likeName
- the string to match
java.util.Set<PipelineDefinition> findAllAgentsForAgentIds(@NotNull java.util.Collection<java.lang.Long> agentIds)
buildResultsSummaries
-
PipelineDefinition
@Nullable PipelineDefinition findAgentByName(@NotNull java.lang.String name)
name
- of the agent to find
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |