public enum TaskEvent extends Enum<TaskEvent>
Enum Constant and Description |
---|
BAD_GATEWAY
Signals wrong proxy settings.
|
CMD_COMPLETED
Server command completed.
|
CMD_EXCEPTION
Server command exception.
|
CMD_FAILED
Server command failed.
|
CMD_RUNNING
Server command running.
|
EMPTY_MESSAGE
Empty message received.
|
EXCEPTION
Exception in task.
|
JAVA_VM_EXEC_FAILED
Java VM execution failed.
|
LOCAL_AUTH_FAILED
Local server authorization failed.
|
NO_JAVA_VM
Java VM not found.
|
REMOTE_AUTH_FAILED
Remote server authorization failed.
|
START
Start of task.
|
SUBMIT
Task queued for execution.
|
WRONG_JAVA_VM
Java VM version is wrong.
|
Modifier and Type | Field and Description |
---|---|
private static String |
BAD_GATEWAY_STR
A
String representation of BAD_GATEWAY value. |
private static String |
CMD_COMPLETED_STR
A
String representation of CMD_COMPLETED value. |
private static String |
CMD_EXCEPTION_STR
A
String representation of CMD_EXCEPTION value. |
private static String |
CMD_FAILED_STR
A
String representation of CMD_FAILED value. |
private static String |
CMD_RUNNING_STR
A
String representation of CMD_RUNNING value. |
private static String |
EMPTY_MESSAGE_STR
A
String representation of EMPTY_MESSAGE value. |
private static String |
EXCEPTION_STR
A
String representation of EXCEPTION value. |
private static String |
JAVA_VM_EXEC_FAILED_STR
A
String representation of JAVA_VM_EXEC_FAILED value. |
private static String |
LOCAL_AUTH_FAILED_STR
A
String representation of LOCAL_AUTH_FAILED value. |
private static String |
NO_JAVA_VM_STR
A
String representation of NO_JAVA_VM value. |
private static String |
REMOTE_AUTH_FAILED_STR
A
String representation of REMOTE_AUTH_FAILED value. |
private static String |
START_STR
A
String representation of START value. |
private static Map<String,TaskEvent> |
stringValuesMap
Stored
String values for backward String
conversion. |
private static String |
SUBMIT_STR
A
String representation of SUBMIT value. |
private static String |
WRONG_JAVA_VM_STR
A
String representation of NO_JAVA_VM value. |
Modifier and Type | Method and Description |
---|---|
String |
toString()
Convert
TaskEvent value to String . |
static TaskEvent |
toValue(String eventStr)
Returns a
TaskEvent with a value represented by the
specified String . |
static TaskEvent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TaskEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TaskEvent SUBMIT
public static final TaskEvent START
public static final TaskEvent EXCEPTION
public static final TaskEvent CMD_RUNNING
public static final TaskEvent CMD_EXCEPTION
public static final TaskEvent CMD_COMPLETED
public static final TaskEvent CMD_FAILED
public static final TaskEvent LOCAL_AUTH_FAILED
public static final TaskEvent REMOTE_AUTH_FAILED
public static final TaskEvent EMPTY_MESSAGE
public static final TaskEvent NO_JAVA_VM
public static final TaskEvent WRONG_JAVA_VM
public static final TaskEvent JAVA_VM_EXEC_FAILED
public static final TaskEvent BAD_GATEWAY
private static final String SUBMIT_STR
String
representation of SUBMIT value.private static final String START_STR
String
representation of START value.private static final String EXCEPTION_STR
String
representation of EXCEPTION value.private static final String CMD_RUNNING_STR
String
representation of CMD_RUNNING value.private static final String CMD_EXCEPTION_STR
String
representation of CMD_EXCEPTION value.private static final String CMD_COMPLETED_STR
String
representation of CMD_COMPLETED value.private static final String CMD_FAILED_STR
String
representation of CMD_FAILED value.private static final String LOCAL_AUTH_FAILED_STR
String
representation of LOCAL_AUTH_FAILED value.private static final String REMOTE_AUTH_FAILED_STR
String
representation of REMOTE_AUTH_FAILED value.private static final String EMPTY_MESSAGE_STR
String
representation of EMPTY_MESSAGE value.private static final String NO_JAVA_VM_STR
String
representation of NO_JAVA_VM value.private static final String WRONG_JAVA_VM_STR
String
representation of NO_JAVA_VM value.private static final String JAVA_VM_EXEC_FAILED_STR
String
representation of JAVA_VM_EXEC_FAILED value.private static final String BAD_GATEWAY_STR
String
representation of BAD_GATEWAY value.public static TaskEvent[] values()
for (TaskEvent c : TaskEvent.values()) System.out.println(c);
public static TaskEvent valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static TaskEvent toValue(String eventStr)
TaskEvent
with a value represented by the
specified String
. The TaskEvent
returned
represents existing value only if specified String
matches any String
returned by toString
method.
Otherwise null
value is returned.
eventStr
- Value containing TaskEvent
toString
representation.TaskEvent
value represented by String
or null
if value was not recognized.Copyright © 2013. All Rights Reserved.