com.oracle.coherence.patterns.command.internal
Enum CommandExecutor.State

java.lang.Object
  extended by java.lang.Enum<CommandExecutor.State>
      extended by com.oracle.coherence.patterns.command.internal.CommandExecutor.State
All Implemented Interfaces:
Serializable, Comparable<CommandExecutor.State>
Enclosing class:
CommandExecutor

public static enum CommandExecutor.State
extends Enum<CommandExecutor.State>

The set of possible CommandExecutor.States for a CommandExecutor.


Enum Constant Summary
Executing
          Executing indicates that a CommandExecutor is in the process of executing CommandExecutionRequests.
New
          The New state indicates that a CommandExecutor has been created, and may accept CommandExecutionRequests, but will not execute them until the associated Context has been provided.
Scheduled
          Scheduled indicates that a CommandExecutor has been been scheduled to execute CommandExecutionRequests, but has yet to commence execution.
Starting
          The Starting state indicates that a CommandExecutor is in the process of initializing itself to commence executing CommandExecutionRequests.
Stopped
          Stopped indicates that a CommandExecutor is now stopped and will no longer execute or accept requests to execute CommandExecutionRequests.
Waiting
          Waiting indicates that a CommandExecutor has been successfully started but is currently waiting for CommandExecutionRequests to arrive.
 
Method Summary
static CommandExecutor.State valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CommandExecutor.State[] 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

New

public static final CommandExecutor.State New
The New state indicates that a CommandExecutor has been created, and may accept CommandExecutionRequests, but will not execute them until the associated Context has been provided.


Starting

public static final CommandExecutor.State Starting
The Starting state indicates that a CommandExecutor is in the process of initializing itself to commence executing CommandExecutionRequests.


Waiting

public static final CommandExecutor.State Waiting
Waiting indicates that a CommandExecutor has been successfully started but is currently waiting for CommandExecutionRequests to arrive.


Scheduled

public static final CommandExecutor.State Scheduled
Scheduled indicates that a CommandExecutor has been been scheduled to execute CommandExecutionRequests, but has yet to commence execution.


Executing

public static final CommandExecutor.State Executing
Executing indicates that a CommandExecutor is in the process of executing CommandExecutionRequests.


Stopped

public static final CommandExecutor.State Stopped
Stopped indicates that a CommandExecutor is now stopped and will no longer execute or accept requests to execute CommandExecutionRequests.

Method Detail

values

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

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

valueOf

public static CommandExecutor.State 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 © 2016. All Rights Reserved.