Class BuildQueue
- java.lang.Object
-
- org.jenkinsci.plugins.jqsmonitoring.buildqueue.BuildQueue
-
@ExportedBean public class BuildQueue extends Object
This class implements a BuildQueue and contains information about all queue jobs.- Author:
- yboev
-
-
Constructor Summary
Constructors Constructor Description BuildQueue()
Constructor method.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Api
getApi()
REST API.int
getNumberOfJobs()
Return the number of queue jobs.ArrayList<QueueJob>
getQueueJobs()
Returns a list of all jobs in the queue.void
refresh()
Refresh method for this class.
-
-
-
Method Detail
-
getApi
public Api getApi()
REST API.- Returns:
- the api.
-
getNumberOfJobs
@Exported public int getNumberOfJobs()
Return the number of queue jobs.- Returns:
- the number of jobs waiting as int.
-
getQueueJobs
@Exported(inline=true) public ArrayList<QueueJob> getQueueJobs()
Returns a list of all jobs in the queue.- Returns:
- the list
-
refresh
public void refresh()
Refresh method for this class.
-
-