org.jppf.server.nio
Class NioState<T extends Enum<T>>

java.lang.Object
  extended by org.jppf.server.nio.NioState<T>
Type Parameters:
T - the type of transitions for this state.
Direct Known Subclasses:
MultiplexerServerState, MultiplexerServerState

public abstract class NioState<T extends Enum<T>>
extends Object

State associated with a socket channel.

Author:
Laurent Cohen

Constructor Summary
NioState()
           
 
Method Summary
abstract  T performTransition(ChannelWrapper<?> channel)
          Execute the action associated with this channel state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NioState

public NioState()
Method Detail

performTransition

public abstract T performTransition(ChannelWrapper<?> channel)
                                             throws Exception
Execute the action associated with this channel state.

Parameters:
channel - the selection key corresponding to the channel and selector for this state.
Returns:
a state transition as an NioTransition instance.
Throws:
Exception - if an error occurs while transitioning to another state.


Copyright © 2005-2010 JPPF Team.