com.metamatrix.common.comm.platform.socket.server
Class SocketListener
java.lang.Object
com.metamatrix.common.comm.platform.socket.server.SocketListener
- All Implemented Interfaces:
- ChannelListener.ChannelListenerFactory
public class SocketListener
- extends java.lang.Object
- implements ChannelListener.ChannelListenerFactory
Server-side class to listen for new connection requests and create a SocketClientConnection for each connection request.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SocketListener
public SocketListener(int port,
java.lang.String bindAddress,
ClientServiceRegistry server,
int inputBufferSize,
int outputBufferSize,
WorkerPool workerPool,
javax.net.ssl.SSLEngine engine,
boolean isClientEncryptionEnabled,
SessionServiceInterface sessionService)
- Parameters:
port - bindaddress - server - inputBufferSize - outputBufferSize - workerPool - engine - null if SSL is disabled
getPort
public int getPort()
stop
public void stop()
getStats
public SocketListenerStats getStats()
createChannelListener
public ChannelListener createChannelListener(ObjectChannel channel)
- Specified by:
createChannelListener in interface ChannelListener.ChannelListenerFactory
Copyright © 2009. All Rights Reserved.