|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jenkinsci.plugins.jqsmonitoring.buildqueue.QueueJob
@ExportedBean public class QueueJob
Stores attributes and functions of a queue job. Implements the interface Comparable for sorting the jobs currently waiting in the queue according to their wait time.
| Constructor Summary | |
|---|---|
QueueJob(hudson.model.Queue.BuildableItem item,
long currentTime)
Constructor. |
|
| Method Summary | |
|---|---|
int |
compareTo(QueueJob qj)
Implementation of the comparing method. |
hudson.model.Api |
getApi()
REST API |
String |
getCauseOfBlockage()
Returns why the job is waiting in the queue. |
String |
getColor()
Color to be used for this job. |
String |
getIcon()
Returns the icon for this queue job. |
String |
getName()
Returns ID of the waiting job. |
String |
getStatus()
Returns the status of this queue job. |
String |
getTime()
Color Returns the time which a job has spend in the queue waiting as a formate String. |
String |
getUrl()
Returns the url for this queue job. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueueJob(hudson.model.Queue.BuildableItem item,
long currentTime)
item - the job(item) waiting in the queuecurrentTime - the current time on which all items have been retrieved| Method Detail |
|---|
public hudson.model.Api getApi()
@Exported public String getStatus()
@Exported public String getName()
@Exported public String getTime()
@Exported public String getCauseOfBlockage()
public String getColor()
public int compareTo(QueueJob qj)
compareTo in interface Comparable<QueueJob>public String getIcon()
@Exported public String getUrl()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||