com.atlassian.bamboo.buildqueue.manager
Interface AgentAssignmentService

All Known Implementing Classes:
AgentAssignmentServiceImpl

public interface AgentAssignmentService

Service for managing the exclusive assignment for agents to jobs/environments


Nested Class Summary
static class AgentAssignmentService.AgentAssignmentExecutable
           
static class AgentAssignmentService.AgentAssignmentExecutor
           
 
Method Summary
 void deleteExecutableAssignments(Iterable<AgentAssignmentService.AgentAssignmentExecutable> agentAssignments)
          Remove a collection of agent assignments.
 void deleteExecutorAssignments(Iterable<AgentAssignmentService.AgentAssignmentExecutor> agentAssignments)
          Remove a collection of agent assignments.
 AgentAssignmentMap getAgentAssignments()
          Retrieve an assignment map used to access executable and executor assignments
 boolean isCapabilitiesMatch(BuildAgent agent, ImmutableJob job)
          Helper methods to check if executor is capable of running executable
 boolean isCapabilitiesMatch(BuildAgent agent, long environmentid)
           
 boolean isCapabilitiesMatch(ElasticImageConfiguration image, ImmutableJob job)
           
 boolean isCapabilitiesMatch(ElasticImageConfiguration image, long environmentid)
           
 AgentAssignment saveAgentAssignment(AgentAssignment.ExecutorType executorType, long executorId, AgentAssignment.ExecutableType executableType, long entityId)
          Save an agent assignment
 

Method Detail

saveAgentAssignment

@NotNull
AgentAssignment saveAgentAssignment(@NotNull
                                            AgentAssignment.ExecutorType executorType,
                                            long executorId,
                                            @NotNull
                                            AgentAssignment.ExecutableType executableType,
                                            long entityId)
                                    throws WebValidationException
Save an agent assignment

Returns:
The saved agent assignment
Throws:
WebValidationException

deleteExecutableAssignments

void deleteExecutableAssignments(@NotNull
                                 Iterable<AgentAssignmentService.AgentAssignmentExecutable> agentAssignments)
Remove a collection of agent assignments.

Parameters:
agentAssignments - to delete

deleteExecutorAssignments

void deleteExecutorAssignments(@NotNull
                               Iterable<AgentAssignmentService.AgentAssignmentExecutor> agentAssignments)
Remove a collection of agent assignments.

Parameters:
agentAssignments - to delete

getAgentAssignments

AgentAssignmentMap getAgentAssignments()
Retrieve an assignment map used to access executable and executor assignments

Returns:

isCapabilitiesMatch

boolean isCapabilitiesMatch(BuildAgent agent,
                            ImmutableJob job)
Helper methods to check if executor is capable of running executable


isCapabilitiesMatch

boolean isCapabilitiesMatch(ElasticImageConfiguration image,
                            ImmutableJob job)

isCapabilitiesMatch

boolean isCapabilitiesMatch(BuildAgent agent,
                            long environmentid)

isCapabilitiesMatch

boolean isCapabilitiesMatch(ElasticImageConfiguration image,
                            long environmentid)


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.