com.atlassian.bamboo.buildqueue.manager
Class AgentAssignmentServiceImpl
java.lang.Object
com.atlassian.bamboo.buildqueue.manager.AgentAssignmentServiceImpl
- All Implemented Interfaces:
- AgentAssignmentService
public class AgentAssignmentServiceImpl
- extends java.lang.Object
- implements AgentAssignmentService
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
agentAssignmentDao
protected final AgentAssignmentDao agentAssignmentDao
AgentAssignmentServiceImpl
public AgentAssignmentServiceImpl(@NotNull
AgentAssignmentDao agentAssignmentDao,
@NotNull
org.springframework.transaction.support.TransactionTemplate transactionTemplate,
@NotNull
org.springframework.orm.hibernate.HibernateTemplate hibernateTemplate,
@NotNull
ProjectManager projectManager,
@NotNull
CachedPlanManager cachedPlanManager,
@NotNull
DeploymentProjectService deploymentProjectService,
@NotNull
EnvironmentService environmentService,
@NotNull
com.atlassian.event.api.EventPublisher eventPublisher,
@NotNull
CapabilitySetManager capabilitySetManager,
@NotNull
CapabilityRequirementsMatcher capabilityRequirementsMatcher)
saveAgentAssignment
@NotNull
public AgentAssignment saveAgentAssignment(@NotNull
AgentAssignment.ExecutorType executorType,
long executorId,
@NotNull
AgentAssignment.ExecutableType executableType,
long entityId)
throws WebValidationException
- Description copied from interface:
AgentAssignmentService
- Save an agent assignment
- Specified by:
saveAgentAssignment in interface AgentAssignmentService
- Returns:
- The saved agent assignment
- Throws:
WebValidationException
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:
isCapabilitiesMatch
public boolean isCapabilitiesMatch(BuildAgent agent,
ImmutableJob job)
- Description copied from interface:
AgentAssignmentService
- Helper methods to check if executor is capable of running executable
- Specified by:
isCapabilitiesMatch in interface AgentAssignmentService
isCapabilitiesMatch
public boolean isCapabilitiesMatch(ElasticImageConfiguration image,
ImmutableJob job)
- Specified by:
isCapabilitiesMatch in interface AgentAssignmentService
isCapabilitiesMatch
public boolean isCapabilitiesMatch(BuildAgent agent,
long environmentId)
- Specified by:
isCapabilitiesMatch in interface AgentAssignmentService
isCapabilitiesMatch
public boolean isCapabilitiesMatch(ElasticImageConfiguration image,
long environmentid)
- Specified by:
isCapabilitiesMatch in interface AgentAssignmentService
Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.