|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExecutableOrderProvider
Classes implementing this interface provide ordering for the executables in queue. Implementers should not store any CommonContext inside instances of Provider.
| Method Summary | |
|---|---|
ResultKey |
findExecutableForAgent(long agentId,
Collection<QueueOfExecutables.ExecutableData> executableData)
From the list of executables, returns the executable that should be picked up by the agent. |
Iterable<BuildQueueManager.QueuedResultKey> |
getOrderedExecutables()
Returns a full list of result keys of queued executables ordered with a global ordering. |
void |
onDequeue(CommonContext resultKey)
Called when a context is removed from queue. |
void |
onEnqueue(Iterable<CommonContext> contexts)
Will not be called concurrently. |
boolean |
reorder(ResultKey resultKey,
int index)
Called when an executable with a specific result key should be moved to a specific index in the queue. |
| Method Detail |
|---|
void onEnqueue(@NotNull
Iterable<CommonContext> contexts)
void onDequeue(@NotNull
CommonContext resultKey)
resultKey -
@Nullable
ResultKey findExecutableForAgent(long agentId,
@NotNull
Collection<QueueOfExecutables.ExecutableData> executableData)
@NotNull Iterable<BuildQueueManager.QueuedResultKey> getOrderedExecutables()
boolean reorder(ResultKey resultKey,
int index)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||