|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate.support.HibernateDaoSupport
com.atlassian.hibernate.HibernateObjectDao
com.atlassian.bamboo.persistence.BambooHibernateObjectDao
com.atlassian.bamboo.buildqueue.dao.AgentHibernateDao
public class AgentHibernateDao
| Field Summary |
|---|
| Fields inherited from class org.springframework.dao.support.DaoSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
AgentHibernateDao()
|
|
| Method Summary | |
|---|---|
PipelineDefinition |
findAgentByName(java.lang.String name)
Retrieve a pipelineDefinition by name. |
java.util.List<PipelineDefinition> |
findAll()
|
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 nameLike)
Retrun a list of agents whose name is like the provided string. |
java.util.List<ElasticAgentDefinition> |
findAllElasticAgents()
Retrieves all elastic agents |
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 |
LocalAgentDefinition |
getLocalAgentById(long id)
Retrieve the localAgentDefinition |
java.lang.Class |
getPersistentClass()
|
RemoteAgentDefinition |
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 class com.atlassian.bamboo.persistence.BambooHibernateObjectDao |
|---|
executeCountQuery, executeReturnLong, findById, findById |
| Methods inherited from class com.atlassian.hibernate.HibernateObjectDao |
|---|
findAllSorted, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, index, refresh, reIndex, remove, replicate, save, saveRaw, setIndexer, unIndex, updateModificationData |
| Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
|---|
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
| Methods inherited from class org.springframework.dao.support.DaoSupport |
|---|
afterPropertiesSet, initDao |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao |
|---|
findById |
| Methods inherited from interface bucket.core.persistence.ObjectDao |
|---|
findAllSorted, refresh, remove, replicate, save, saveRaw |
| Constructor Detail |
|---|
public AgentHibernateDao()
| Method Detail |
|---|
public java.lang.Class getPersistentClass()
getPersistentClass in interface bucket.core.persistence.ObjectDao
@NotNull
public PipelineDefinition saveAndReturn(@NotNull
PipelineDefinition pipelineDefinition)
AgentDao
saveAndReturn in interface AgentDaopipelineDefinition - to save
public PipelineDefinition getAgentById(long id)
AgentDao
getAgentById in interface AgentDaoid - - the id for the agent to be retrieved
public LocalAgentDefinition getLocalAgentById(long id)
AgentDao
getLocalAgentById in interface AgentDaoid - of the agent
public RemoteAgentDefinition getRemoteAgentById(long id)
AgentDao
getRemoteAgentById in interface AgentDaoid - of the agent
public java.util.List<PipelineDefinition> findAll()
findAll in interface bucket.core.persistence.ObjectDaofindAll in class com.atlassian.hibernate.HibernateObjectDaopublic java.util.List<PipelineDefinition> findAllAgents()
AgentDao
findAllAgents in interface AgentDaopublic java.util.List<RemoteAgentDefinition> findAllRemoteAgents()
AgentDao
findAllRemoteAgents in interface AgentDaopublic java.util.List<LocalAgentDefinition> findAllLocalAgents()
AgentDao
findAllLocalAgents in interface AgentDaopublic java.util.List<ElasticAgentDefinition> findNotShutDownElasticAgents()
AgentDao
findNotShutDownElasticAgents in interface AgentDaopublic long getAgentCount(java.lang.Class<ElasticAgentDefinition> agentDefinitionClass)
AgentDao
getAgentCount in interface AgentDaoagentDefinitionClass - agent type
@NotNull public java.util.List<ElasticAgentDefinition> findAllElasticAgents()
AgentDao
findAllElasticAgents in interface AgentDao
@NotNull
public java.util.List<ElasticAgentDefinition> findAllElasticAgents(int firstResult,
int maxResults)
AgentDao
findAllElasticAgents in interface AgentDao
public java.util.List<ElasticAgentDefinition> findAllElasticAgents(@NotNull
java.util.Collection<java.lang.String> instanceIds)
AgentDao
findAllElasticAgents in interface AgentDaoinstanceIds - the instances ids on which the agents were running
@NotNull
public java.util.List<PipelineDefinition> findAllAgentsWithNameLike(@NotNull
java.lang.String nameLike)
AgentDao
findAllAgentsWithNameLike in interface AgentDaonameLike - the string to match
public java.util.Set<PipelineDefinition> findAllAgentsForAgentIds(@NotNull
java.util.Collection<java.lang.Long> agentIds)
AgentDao
findAllAgentsForAgentIds in interface AgentDaoPipelineDefinition
@Nullable
public PipelineDefinition findAgentByName(@NotNull
java.lang.String name)
AgentDao
findAgentByName in interface AgentDaoname - of the agent to find
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||