Package io.jenkins.plugins.cloudevents
Enum Stage
- java.lang.Object
-
- java.lang.Enum<Stage>
-
- io.jenkins.plugins.cloudevents.Stage
-
- All Implemented Interfaces:
Serializable
,Comparable<Stage>
public enum Stage extends Enum<Stage>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JobModel
buildJobModel(Item item)
JobModel
buildJobModel(Job parent, Run run, long timestamp, TaskListener listener)
NodeModel
buildNodeModel(Computer computer)
QueueModel
buildQueueModel(Queue.Item item)
void
handleEvent(Run run, TaskListener listener, long timestamp)
void
handleEvent(Object o, String clazz)
static Stage
valueOf(String name)
Returns the enum constant of this type with the specified name.static Stage[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STARTED
public static final Stage STARTED
-
COMPLETED
public static final Stage COMPLETED
-
FINALIZED
public static final Stage FINALIZED
-
ENTERED_WAITING
public static final Stage ENTERED_WAITING
-
LEFT
public static final Stage LEFT
-
CREATED
public static final Stage CREATED
-
UPDATED
public static final Stage UPDATED
-
ONLINE
public static final Stage ONLINE
-
OFFLINE
public static final Stage OFFLINE
-
-
Method Detail
-
values
public static Stage[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Stage c : Stage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Stage valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
handleEvent
public void handleEvent(Run run, TaskListener listener, long timestamp) throws NullPointerException
- Throws:
NullPointerException
-
handleEvent
public void handleEvent(Object o, String clazz) throws NullPointerException
- Throws:
NullPointerException
-
buildJobModel
public JobModel buildJobModel(Job parent, Run run, long timestamp, TaskListener listener) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
buildJobModel
public JobModel buildJobModel(Item item) throws IOException
- Throws:
IOException
-
buildQueueModel
public QueueModel buildQueueModel(Queue.Item item)
-
buildNodeModel
public NodeModel buildNodeModel(Computer computer) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
-