From 7d7a48db490df49e398121a0c0ebaca22d0339ef Mon Sep 17 00:00:00 2001 From: kohsuke Date: Fri, 13 Apr 2007 01:09:29 +0000 Subject: [PATCH] exposing why the item is in the queue. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3069 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/model/Queue.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/src/main/java/hudson/model/Queue.java b/core/src/main/java/hudson/model/Queue.java index 9c382e6ad5..4783dbb503 100644 --- a/core/src/main/java/hudson/model/Queue.java +++ b/core/src/main/java/hudson/model/Queue.java @@ -1,6 +1,8 @@ package hudson.model; import hudson.Util; +import hudson.api.ExposedBean; +import hudson.api.Exposed; import hudson.model.Node.Mode; import hudson.util.OneShotEvent; @@ -467,10 +469,12 @@ public class Queue { /** * Item in a queue. */ + @ExposedBean(defaultVisibility=999) public class Item implements Comparable { /** * This item can be run after this time. */ + @Exposed public final Calendar timestamp; /** @@ -489,6 +493,7 @@ public class Queue { * This flag is only used in {@link Queue#getItems()} for * 'pseudo' items that are actually not really in the queue. */ + @Exposed public final boolean isBlocked; /** @@ -496,6 +501,7 @@ public class Queue { * This flag is only used in {@link Queue#getItems()} for * 'pseudo' items that are actually not really in the queue. */ + @Exposed public final boolean isBuildable; public Item(Calendar timestamp, AbstractProject project) { @@ -515,6 +521,7 @@ public class Queue { /** * Gets a human-readable status message describing why it's in the queu. */ + @Exposed public String getWhy() { if(isBuildable) { Node node = project.getAssignedNode();