public abstract class CauseOfBlockage extends Object
Originally, this is added for Queue.Task
stuck in the queue, but since then the use of this
has expanded beyond queues.
getShortDescription()
text.
For queues, this is used while rendering the "build history" widget.
Modifier and Type | Class and Description |
---|---|
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.BecauseNodeIsNotAcceptingTasks
Build is blocked because a node (or its retention strategy) is not accepting tasks.
|
static class |
CauseOfBlockage.BecauseNodeIsOffline
Build is blocked because a node is offline.
|
Constructor and Description |
---|
CauseOfBlockage() |
Modifier and Type | Method and Description |
---|---|
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.
|
String |
toString() |
public abstract String getShortDescription()
public void print(TaskListener listener)
public static CauseOfBlockage fromMessage(@Nonnull org.jvnet.localizer.Localizable l)
Localizable
.public static CauseOfBlockage createNeedsMoreExecutor(org.jvnet.localizer.Localizable l)
Copyright © 2004–2018. All rights reserved.