org.jppf.server.nio.multiplexer.generic
Class SendingOrReceivingState

java.lang.Object
  extended by org.jppf.server.nio.NioState<MultiplexerTransition>
      extended by org.jppf.server.nio.multiplexer.generic.MultiplexerServerState
          extended by org.jppf.server.nio.multiplexer.generic.SendingOrReceivingState

public class SendingOrReceivingState
extends MultiplexerServerState

This state is for determining whether a channel should be sending data, receiving data, or doing nothing.

Author:
Laurent Cohen

Field Summary
 
Fields inherited from class org.jppf.server.nio.multiplexer.generic.MultiplexerServerState
server
 
Constructor Summary
SendingOrReceivingState(MultiplexerNioServer server)
          Initialize this state.
 
Method Summary
 MultiplexerTransition performTransition(ChannelWrapper<?> wrapper)
          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

SendingOrReceivingState

public SendingOrReceivingState(MultiplexerNioServer server)
Initialize this state.

Parameters:
server - the server that handles this state.
Method Detail

performTransition

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

Specified by:
performTransition in class NioState<MultiplexerTransition>
Parameters:
wrapper - 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.