public class AgentAssignmentServiceImpl extends Object implements AgentAssignmentService
AgentAssignmentService.AgentAssignmentExecutable, AgentAssignmentService.AgentAssignmentExecutor
Modifier and Type | Field and Description |
---|---|
protected AgentAssignmentDao |
agentAssignmentDao |
Constructor and Description |
---|
AgentAssignmentServiceImpl(AgentAssignmentDao agentAssignmentDao,
org.springframework.transaction.support.TransactionTemplate transactionTemplate,
ProjectManager projectManager,
CachedPlanManager cachedPlanManager,
EnvironmentService environmentService,
com.atlassian.event.api.EventPublisher eventPublisher,
CapabilitySetManager capabilitySetManager,
CapabilityRequirementsMatcher capabilityRequirementsMatcher) |
Modifier and Type | Method and Description |
---|---|
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
|
protected final AgentAssignmentDao agentAssignmentDao
public AgentAssignmentServiceImpl(@NotNull AgentAssignmentDao agentAssignmentDao, @NotNull org.springframework.transaction.support.TransactionTemplate transactionTemplate, @NotNull ProjectManager projectManager, @NotNull CachedPlanManager cachedPlanManager, @NotNull EnvironmentService environmentService, @NotNull com.atlassian.event.api.EventPublisher eventPublisher, @NotNull CapabilitySetManager capabilitySetManager, @NotNull CapabilityRequirementsMatcher capabilityRequirementsMatcher)
@NotNull public AgentAssignment saveAgentAssignment(@NotNull AgentAssignment.ExecutorType executorType, long executorId, @NotNull AgentAssignment.ExecutableType executableType, long entityId) throws WebValidationException
AgentAssignmentService
saveAgentAssignment
in interface AgentAssignmentService
WebValidationException
public void deleteExecutableAssignments(@NotNull Iterable<AgentAssignmentService.AgentAssignmentExecutable> agentAssignments)
AgentAssignmentService
deleteExecutableAssignments
in interface AgentAssignmentService
agentAssignments
- to deletepublic void deleteExecutorAssignments(@NotNull Iterable<AgentAssignmentService.AgentAssignmentExecutor> agentAssignments)
AgentAssignmentService
deleteExecutorAssignments
in interface AgentAssignmentService
agentAssignments
- to deletepublic AgentAssignmentMap getAgentAssignments()
AgentAssignmentService
getAgentAssignments
in interface AgentAssignmentService
public boolean isCapabilitiesMatch(BuildAgent agent, ImmutableJob job)
AgentAssignmentService
isCapabilitiesMatch
in interface AgentAssignmentService
public boolean isCapabilitiesMatch(ElasticImageConfiguration image, ImmutableJob job)
isCapabilitiesMatch
in interface AgentAssignmentService
public boolean isCapabilitiesMatch(BuildAgent agent, long environmentId)
isCapabilitiesMatch
in interface AgentAssignmentService
public boolean isCapabilitiesMatch(ElasticImageConfiguration image, long environmentid)
isCapabilitiesMatch
in interface AgentAssignmentService
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.