public static enum Task.State extends java.lang.Enum<Task.State>
| Enum Constant and Description |
|---|
DEFINED
The Task enters this state right after the system fills Task records into the database.
|
FAILED_TO_LAUNCH
Marks that Task has failed to launch.
|
FINISHED
Marks that Task execution is completed.
|
RUNNING
Marks that Task execution is running.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue()
Returns an integer value corresponding to the predefined status.
|
static Task.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Task.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Task.State DEFINED
RUNNING.public static final Task.State RUNNING
public static final Task.State FINISHED
public static final Task.State FAILED_TO_LAUNCH
Task.getState() method should bring a detail
description of what exactly has failed and prevented the Task execution to be normally started.public static Task.State[] values()
for (Task.State c : Task.State.values()) System.out.println(c);
public static Task.State valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getValue()
Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.