Package net.sf.jnati.proc
Enum ProcessMonitor.ProcessState
- java.lang.Object
-
- java.lang.Enum<ProcessMonitor.ProcessState>
-
- net.sf.jnati.proc.ProcessMonitor.ProcessState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ProcessMonitor.ProcessState>
- Enclosing class:
- ProcessMonitor
public static enum ProcessMonitor.ProcessState extends java.lang.Enum<ProcessMonitor.ProcessState>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProcessMonitor.ProcessState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ProcessMonitor.ProcessState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
READY
public static final ProcessMonitor.ProcessState READY
Process has not been started.
-
RUNNING
public static final ProcessMonitor.ProcessState RUNNING
Process is running.
-
FINISHED
public static final ProcessMonitor.ProcessState FINISHED
Process has successfully finished.
-
CANCELLED
public static final ProcessMonitor.ProcessState CANCELLED
Process was cancelled.
-
TIMEDOUT
public static final ProcessMonitor.ProcessState TIMEDOUT
Process timed-out, and was terminated.
-
FAILED
public static final ProcessMonitor.ProcessState FAILED
Process failed.
-
-
Method Detail
-
values
public static ProcessMonitor.ProcessState[] 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 (ProcessMonitor.ProcessState c : ProcessMonitor.ProcessState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProcessMonitor.ProcessState valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-