org.jenkinsci.plugins.jqsmonitoring.buildqueue
Class BuildQueue

java.lang.Object
  extended by 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
BuildQueue()
          Constructor method.
 
Method Summary
 ArrayList<QueueJob> getAllQueueJobs()
          Returns a list of all jobs in the queue.
 hudson.model.Api getApi()
          REST API.
 int getNumberOfJobs()
          Return the number of queue jobs.
 void refresh()
          Refresh method for this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildQueue

public BuildQueue()
Constructor method.

Method Detail

getApi

public hudson.model.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.

getAllQueueJobs

@Exported
public ArrayList<QueueJob> getAllQueueJobs()
Returns a list of all jobs in the queue.

Returns:
the list

refresh

public void refresh()
Refresh method for this class.



Copyright © 2004-2013. All Rights Reserved.