net.sf.jnati.proc
Enum ProcessMonitor.ProcessState

java.lang.Object
  extended by java.lang.Enum<ProcessMonitor.ProcessState>
      extended by net.sf.jnati.proc.ProcessMonitor.ProcessState
All Implemented Interfaces:
Serializable, Comparable<ProcessMonitor.ProcessState>
Enclosing class:
ProcessMonitor

public static enum ProcessMonitor.ProcessState
extends Enum<ProcessMonitor.ProcessState>


Enum Constant Summary
CANCELLED
          Process was cancelled.
FAILED
          Process failed.
FINISHED
          Process has successfully finished.
READY
          Process has not been started.
RUNNING
          Process is running.
TIMEDOUT
          Process timed-out, and was terminated.
 
Method Summary
static ProcessMonitor.ProcessState valueOf(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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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(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 name
NullPointerException - if the argument is null


Copyright © 2007-2011 Sam Adams. All Rights Reserved.