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(@NotNull Iterable<AgentAssignmentService.AgentAssignmentExecutable> agentAssignments)
Remove a collection of agent assignments.
|
void |
deleteExecutorAssignments(@NotNull Iterable<AgentAssignmentService.AgentAssignmentExecutor> agentAssignments)
Remove a collection of agent assignments.
|
AgentAssignmentMap |
getAgentAssignments()
Retrieve an assignment map used to access executable and executor assignments
|
boolean |
isAgentAssignmentAllowed() |
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) |
boolean |
isCapabilitiesMatch(EphemeralAgentTemplate template,
ImmutableJob job) |
boolean |
isCapabilitiesMatch(EphemeralAgentTemplate template,
long environmentId) |
@NotNull AgentAssignment |
saveAgentAssignment(AgentAssignment.ExecutorType executorType,
long executorId,
AgentAssignment.ExecutableType executableType,
long entityId)
Save an agent assignment
|
@NotNull @NotNull AgentAssignment saveAgentAssignment(@NotNull AgentAssignment.ExecutorType executorType, long executorId, @NotNull AgentAssignment.ExecutableType executableType, long entityId) throws WebValidationException, AccessDeniedException
WebValidationException
AccessDeniedException
void deleteExecutableAssignments(@NotNull @NotNull Iterable<AgentAssignmentService.AgentAssignmentExecutable> agentAssignments) throws AccessDeniedException
agentAssignments
- to deleteAccessDeniedException
void deleteExecutorAssignments(@NotNull @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(EphemeralAgentTemplate template, ImmutableJob job)
boolean isCapabilitiesMatch(BuildAgent agent, long environmentid)
boolean isCapabilitiesMatch(ElasticImageConfiguration image, long environmentId)
boolean isCapabilitiesMatch(EphemeralAgentTemplate template, long environmentId)
boolean isAgentAssignmentAllowed()
Copyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.