com.atlassian.bamboo.buildqueue.manager
Class AgentAssignmentServiceImpl

java.lang.Object
  extended by com.atlassian.bamboo.buildqueue.manager.AgentAssignmentServiceImpl
All Implemented Interfaces:
AgentAssignmentService

public class AgentAssignmentServiceImpl
extends java.lang.Object
implements AgentAssignmentService


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.bamboo.buildqueue.manager.AgentAssignmentService
AgentAssignmentService.AgentAssignmentExecutable, AgentAssignmentService.AgentAssignmentExecutor
 
Field Summary
protected  AgentAssignmentDao agentAssignmentDao
           
 
Constructor Summary
AgentAssignmentServiceImpl(AgentAssignmentDao agentAssignmentDao, org.springframework.transaction.support.TransactionTemplate transactionTemplate, org.springframework.orm.hibernate.HibernateTemplate hibernateTemplate)
           
 
Method Summary
 void deleteExecutableAssignments(java.lang.Iterable<AgentAssignmentService.AgentAssignmentExecutable> agentAssignments)
          Remove a collection of agent assignments.
 void deleteExecutorAssignments(java.lang.Iterable<AgentAssignmentService.AgentAssignmentExecutor> agentAssignments)
          Remove a collection of agent assignments.
 AgentAssignmentMap getAgentAssignments()
          Retrieve an assignment map used to access executable and executor assignments
 AgentAssignment saveAgentAssignment(AgentAssignment agentAssignment)
          Save an agent assignment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

agentAssignmentDao

protected final AgentAssignmentDao agentAssignmentDao
Constructor Detail

AgentAssignmentServiceImpl

public AgentAssignmentServiceImpl(@NotNull
                                  AgentAssignmentDao agentAssignmentDao,
                                  @NotNull
                                  org.springframework.transaction.support.TransactionTemplate transactionTemplate,
                                  @NotNull
                                  org.springframework.orm.hibernate.HibernateTemplate hibernateTemplate)
Method Detail

saveAgentAssignment

@NotNull
public AgentAssignment saveAgentAssignment(@NotNull
                                                   AgentAssignment agentAssignment)
Description copied from interface: AgentAssignmentService
Save an agent assignment

Specified by:
saveAgentAssignment in interface AgentAssignmentService
Parameters:
agentAssignment - to save
Returns:
The saved agent assignment

deleteExecutableAssignments

public void deleteExecutableAssignments(@NotNull
                                        java.lang.Iterable<AgentAssignmentService.AgentAssignmentExecutable> agentAssignments)
Description copied from interface: AgentAssignmentService
Remove a collection of agent assignments.

Specified by:
deleteExecutableAssignments in interface AgentAssignmentService
Parameters:
agentAssignments - to delete

deleteExecutorAssignments

public void deleteExecutorAssignments(@NotNull
                                      java.lang.Iterable<AgentAssignmentService.AgentAssignmentExecutor> agentAssignments)
Description copied from interface: AgentAssignmentService
Remove a collection of agent assignments.

Specified by:
deleteExecutorAssignments in interface AgentAssignmentService
Parameters:
agentAssignments - to delete

getAgentAssignments

public AgentAssignmentMap getAgentAssignments()
Description copied from interface: AgentAssignmentService
Retrieve an assignment map used to access executable and executor assignments

Specified by:
getAgentAssignments in interface AgentAssignmentService
Returns:


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.