org.ow2.petals.transport.platform.nio.server
Class NioServerAgent
java.lang.Object
org.ow2.petals.transport.platform.nio.server.NioServerAgent
- All Implemented Interfaces:
- NioServer
public class NioServerAgent
- extends java.lang.Object
- implements NioServer
The server agent of the NIO transporter.
- Author:
- Christophe DENEUX (Capgemini Sud)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
selectorAgent
protected NioSelector selectorAgent
- The socket selector Fractal component to use to process network IO.
messageReceiver
protected NioReceiver messageReceiver
configurationService
protected ConfigurationService configurationService
- Interface used to access configuration
NioServerAgent
public NioServerAgent()
start
protected void start()
throws java.io.IOException
- Throws:
java.io.IOException
stop
protected void stop()
throws java.lang.Exception
- Throws:
java.lang.Exception
onConnectionIsAccepted
public void onConnectionIsAccepted(java.nio.channels.SocketChannel socketChannel,
java.nio.channels.Selector selector)
throws java.io.IOException
- Specified by:
onConnectionIsAccepted in interface NioServer
- Throws:
java.io.IOException
onRead
public void onRead(PipedDeserializer deserializer)
- Specified by:
onRead in interface NioServer
onClose
public void onClose(java.nio.channels.SocketChannel socketChannel)
- Specified by:
onClose in interface NioServer
Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.