xsmeral.pipe.interfaces
Enum ObjectProcessor.Status

java.lang.Object
  extended by java.lang.Enum<ObjectProcessor.Status>
      extended by xsmeral.pipe.interfaces.ObjectProcessor.Status
All Implemented Interfaces:
Serializable, Comparable<ObjectProcessor.Status>
Enclosing interface:
ObjectProcessor

public static enum ObjectProcessor.Status
extends Enum<ObjectProcessor.Status>

Describes the status of the processor


Enum Constant Summary
NOT_STARTED
          The processor has not yet been started
RUNNING
          The processor is processing objects
STOPPED
          The processor is not processing and shouldn't be started again.
STOPPING
          In this state, the processor should finish processing as soon as possible
 
Method Summary
static ObjectProcessor.Status valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ObjectProcessor.Status[] 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

NOT_STARTED

public static final ObjectProcessor.Status NOT_STARTED
The processor has not yet been started


RUNNING

public static final ObjectProcessor.Status RUNNING
The processor is processing objects


STOPPING

public static final ObjectProcessor.Status STOPPING
In this state, the processor should finish processing as soon as possible


STOPPED

public static final ObjectProcessor.Status STOPPED
The processor is not processing and shouldn't be started again. The processor is in this state if

Method Detail

values

public static ObjectProcessor.Status[] 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 (ObjectProcessor.Status c : ObjectProcessor.Status.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ObjectProcessor.Status 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