public interface AgentAssignmentService
Modifier and Type | Interface and Description |
---|---|
static class |
AgentAssignmentService.AgentAssignmentExecutable |
static class |
AgentAssignmentService.AgentAssignmentExecutor |
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
|
@NotNull AgentAssignment saveAgentAssignment(@NotNull AgentAssignment.ExecutorType executorType, long executorId, @NotNull AgentAssignment.ExecutableType executableType, long entityId) throws WebValidationException
WebValidationException
void deleteExecutableAssignments(@NotNull Iterable<AgentAssignmentService.AgentAssignmentExecutable> agentAssignments)
agentAssignments
- to deletevoid deleteExecutorAssignments(@NotNull Iterable<AgentAssignmentService.AgentAssignmentExecutor> agentAssignments)
agentAssignments
- to deleteAgentAssignmentMap getAgentAssignments()
boolean isCapabilitiesMatch(BuildAgent agent, ImmutableJob job)
boolean isCapabilitiesMatch(ElasticImageConfiguration image, ImmutableJob job)
boolean isCapabilitiesMatch(BuildAgent agent, long environmentid)
boolean isCapabilitiesMatch(ElasticImageConfiguration image, long environmentid)
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.