|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface BuildQueue
Presents information about builds are currently in the queue.
| Method Summary | |
|---|---|
void |
applyOrder(java.lang.String[] itemIds)
Applies new order to the build queue. |
SQueuedBuild |
findQueued(java.lang.String itemId)
Searches for an item in queue with specified item id. |
SQueuedBuild |
findQueued(java.lang.String buildTypeId,
java.lang.Integer agentId)
Looks for build configuration with specified id scheduled to run on specified agent in the queue. |
SQueuedBuild |
getFirst()
Returns first queue element. |
java.util.List<SQueuedBuild> |
getItems()
Returns all queued items. |
java.util.List<SQueuedBuild> |
getItems(java.lang.String buildTypeId)
Returns all items currently waiting in queue corresponding to specified build configuration id. |
SQueuedBuild |
getLast()
Returns last queue element. |
int |
getNumberOfItems()
Returns number of items currently in the queue |
boolean |
isInQueue(java.lang.String buildTypeId)
Returns true if build configuration is already in queue |
boolean |
isQueueEmpty()
Checks if queue is empty. |
void |
moveBottom(java.lang.String itemId)
Moves specified item to the bottom of the queue. |
void |
moveTop(java.lang.String itemId)
Moves specified item to the top of the queue. |
| Method Detail |
|---|
void applyOrder(java.lang.String[] itemIds)
itemIds - new order of queue itemsvoid moveTop(java.lang.String itemId)
itemId - id of the item to move to the top of the queuevoid moveBottom(java.lang.String itemId)
itemId - id of the item to move to the bottom of the queuejava.util.List<SQueuedBuild> getItems()
java.util.List<SQueuedBuild> getItems(java.lang.String buildTypeId)
buildTypeId - specified build configuration.
int getNumberOfItems()
@Nullable
SQueuedBuild findQueued(java.lang.String buildTypeId,
java.lang.Integer agentId)
buildTypeId - id of build configuration to search foragentId - id of the agent. If not null only build configuration scheduled to specified agent will be returned.
If null then build configuration which is not scheduled to any specific agent is returned.
@Nullable SQueuedBuild findQueued(java.lang.String itemId)
itemId - id of the item to look for.
boolean isInQueue(java.lang.String buildTypeId)
buildTypeId - id of build configuration
boolean isQueueEmpty()
@Nullable SQueuedBuild getFirst()
@Nullable SQueuedBuild getLast()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||