hudson.model.queue
Class CauseOfBlockage

java.lang.Object
  extended by hudson.model.queue.CauseOfBlockage
Direct Known Subclasses:
AbstractProject.BecauseOfBuildInProgress, AbstractProject.BecauseOfDownstreamBuildInProgress, AbstractProject.BecauseOfUpstreamBuildInProgress, CauseOfBlockage.BecauseLabelIsBusy, CauseOfBlockage.BecauseLabelIsOffline, CauseOfBlockage.BecauseNodeIsBusy, CauseOfBlockage.BecauseNodeIsOffline

public abstract class CauseOfBlockage
extends Object

If a Queue.Task execution is blocked in the queue, this object represents why.

View

summary.jelly should do one-line HTML rendering to be used while rendering "build history" widget, next to the blocking build. By default it simply renders getShortDescription() text.

Since:
1.330

Nested Class Summary
static class CauseOfBlockage.BecauseLabelIsBusy
          Build is blocked because everyone that matches the specified label is fully busy
static class CauseOfBlockage.BecauseLabelIsOffline
          Build is blocked because all the nodes that match a given label is offline.
static class CauseOfBlockage.BecauseNodeIsBusy
          Build is blocked because a node is fully busy
static class CauseOfBlockage.BecauseNodeIsOffline
          Build is blocked because a node is offline.
 
Constructor Summary
CauseOfBlockage()
           
 
Method Summary
static CauseOfBlockage createNeedsMoreExecutor(org.jvnet.localizer.Localizable l)
           
static CauseOfBlockage fromMessage(org.jvnet.localizer.Localizable l)
          Obtains a simple implementation backed by Localizable.
abstract  String getShortDescription()
          Human readable description of why the build is blocked.
 void print(TaskListener listener)
          Report a line to the listener about this cause.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CauseOfBlockage

public CauseOfBlockage()
Method Detail

getShortDescription

public abstract String getShortDescription()
Human readable description of why the build is blocked.


print

public void print(TaskListener listener)
Report a line to the listener about this cause.


fromMessage

public static CauseOfBlockage fromMessage(org.jvnet.localizer.Localizable l)
Obtains a simple implementation backed by Localizable.


createNeedsMoreExecutor

public static CauseOfBlockage createNeedsMoreExecutor(org.jvnet.localizer.Localizable l)


Copyright © 2004-2013. All Rights Reserved.