org.jppf.server.nio.multiplexer.generic
Enum MultiplexerState

java.lang.Object
  extended by java.lang.Enum<MultiplexerState>
      extended by org.jppf.server.nio.multiplexer.generic.MultiplexerState
All Implemented Interfaces:
Serializable, Comparable<MultiplexerState>

public enum MultiplexerState
extends Enum<MultiplexerState>

Enumeration of the possible states for a multiplexer channel.

Author:
Laurent Cohen

Enum Constant Summary
IDENTIFYING_INBOUND_CHANNEL
          State of identifying an inbound connection from a remote multiplexer.
IDLE
          IDLE state, when a channel has nothing to do.
RECEIVING
          State of receiving data.
SENDING
          State of sending data.
SENDING_MULTIPLEXING_INFO
          State of sending outbound port information to a remote multiplexer.
SENDING_OR_RECEIVING
          State of sending or receiving data.
 
Method Summary
static MultiplexerState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MultiplexerState[] 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

IDLE

public static final MultiplexerState IDLE
IDLE state, when a channel has nothing to do.


SENDING_OR_RECEIVING

public static final MultiplexerState SENDING_OR_RECEIVING
State of sending or receiving data.


SENDING

public static final MultiplexerState SENDING
State of sending data.


RECEIVING

public static final MultiplexerState RECEIVING
State of receiving data.


IDENTIFYING_INBOUND_CHANNEL

public static final MultiplexerState IDENTIFYING_INBOUND_CHANNEL
State of identifying an inbound connection from a remote multiplexer.


SENDING_MULTIPLEXING_INFO

public static final MultiplexerState SENDING_MULTIPLEXING_INFO
State of sending outbound port information to a remote multiplexer.

Method Detail

values

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

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

valueOf

public static MultiplexerState 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 © 2005-2010 JPPF Team.