|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AgentAssignmentService
Service for managing the exclusive assignment for agents to jobs/environments
Nested Class Summary | |
---|---|
static class |
AgentAssignmentService.AgentAssignmentExecutable
|
static class |
AgentAssignmentService.AgentAssignmentExecutor
|
Method Summary | |
---|---|
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 |
Method Detail |
---|
@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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |