|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@ThreadSafe public interface BuildQueueManager
This interface defines the work that the queue manager can do. Implementors must be threadsafe.
| Field Summary | |
|---|---|
static java.lang.String |
DISABLE_BUILD_SYSTEM_PROPERTY
|
| Method Summary | |
|---|---|
void |
addToQueue(CommonContext context)
Attempts to add the build to a queue. |
com.google.common.collect.ImmutableList<CommonContext> |
getBuildQueue()
Returns a list of BuildContext objects currently in the build queue. |
BuildQueuePosition |
getQueuePosition(ResultKey resultKey)
Returns information on position of plan result in the queue. |
com.google.common.collect.ImmutableList<CommonContext> |
getRecentBuildQueue()
Returns a list of BuildContext objects currently in the build queue. |
boolean |
queueContains(PlanKey planKey)
Indicates whether a build of a given build plan is in the queue. |
void |
reconstructBuildQueue()
Reconstructs the build queue. |
void |
removeAllBuildsForPlanFromQueue(PlanKey planKey)
Removes all the BuildContext associated with the planKey to be removed from the queue. |
void |
removeBuildFromQueue(ResultKey resultKey)
Removes the CommonContext associated with the resultKey to be removed from the queue. |
void |
reorderBuildInQueue(java.lang.String planKey,
int index)
Reorders the build queue. |
boolean |
reorderBuildInQueue(java.lang.String buildResultKey,
java.lang.String prevBuildResultKey,
java.lang.String nextBuildResultKey)
Moves a given build in a queue in between two given builds. |
| Field Detail |
|---|
static final java.lang.String DISABLE_BUILD_SYSTEM_PROPERTY
| Method Detail |
|---|
void addToQueue(@NotNull
CommonContext context)
BuildQueuedEvent is fired if queuing was successful and a BuildRejectedFromQueueEvent iif rejected.
A lock on the build is obtained from the BuildExecutionManager.
context - @NotNull
void removeBuildFromQueue(@NotNull
ResultKey resultKey)
CommonContext associated with the resultKey to be removed from the queue. A BuildDeQueuedEvent is fired.
The lock on the build is not released. The caller should call BuildExecutionManager#finishProcess to
release this lock when ready.
resultKey -
void removeAllBuildsForPlanFromQueue(@NotNull
PlanKey planKey)
BuildContext associated with the planKey to be removed from the queue. A BuildDeQueuedEvent is fired.
The lock on the build is not released. The caller should call BuildExecutionManager#finishProcess to
release this lock when ready.
planKey -
void reorderBuildInQueue(java.lang.String planKey,
int index)
BuildContext associated with the planKey is moved to new position in the queue
indicated by the zero-based index parameter. If index is < 0 or >= size of queue then BuildContext is
positioned at the beginning or at the end of the queue respectively.
planKey - Plan key of the build that shall be repositioned in the queue.index - New position of a BuildContext associated with the planKey in the queue.@NotNull com.google.common.collect.ImmutableList<CommonContext> getBuildQueue()
BuildContext objects currently in the build queue. If there are any pending queue
operations, this method will block.
List of BuildContext. Changes to this List is not reflected in the queue.@NotNull com.google.common.collect.ImmutableList<CommonContext> getRecentBuildQueue()
BuildContext objects currently in the build queue. If there are any pending queue
operations, this method will return the latest known queue state.
List of BuildContext. Changes to this List is not reflected in the queue.boolean queueContains(PlanKey planKey)
Indicates whether a build of a given build plan is in the queue.
planKey - The build plan key
true if a build of the given build plan is in the queue, false otherwise.void reconstructBuildQueue()
boolean reorderBuildInQueue(@NotNull
java.lang.String buildResultKey,
@Nullable
java.lang.String prevBuildResultKey,
@Nullable
java.lang.String nextBuildResultKey)
buildResultKey - prevBuildResultKey - nextBuildResultKey -
@NotNull
BuildQueuePosition getQueuePosition(@NotNull
ResultKey resultKey)
resultKey - identifies plan result
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||