public interface AgentAssignmentService
Modifier and Type | Interface and Description |
---|---|
static class |
AgentAssignmentService.AgentAssignmentExecutable |
static class |
AgentAssignmentService.AgentAssignmentExecutor |
Modifier and Type | Method and Description |
---|---|
void |
deleteAssignment(AgentAssignment.ExecutorType executorType,
long executorId,
AgentAssignment.ExecutableType executableType,
long entityId)
Remove agent assignment.
|
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, AccessDeniedException
WebValidationException
AccessDeniedException
void deleteExecutableAssignments(@NotNull Iterable<AgentAssignmentService.AgentAssignmentExecutable> agentAssignments) throws AccessDeniedException
agentAssignments
- to deleteAccessDeniedException
void deleteExecutorAssignments(@NotNull Iterable<AgentAssignmentService.AgentAssignmentExecutor> agentAssignments) throws AccessDeniedException
agentAssignments
- to deleteAccessDeniedException
void deleteAssignment(AgentAssignment.ExecutorType executorType, long executorId, AgentAssignment.ExecutableType executableType, long entityId) throws AccessDeniedException
executorType
- executor typeexecutorId
- executor idexecutableType
- executable typeentityId
- executable idAccessDeniedException
- if don't have permissions to edit entityAgentAssignmentMap 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 © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.