com.metamatrix.common.comm.platform.socket.server
Class SocketListener

java.lang.Object
  extended by 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.


Constructor Summary
SocketListener(int port, java.lang.String bindAddress, ClientServiceRegistry server, int inputBufferSize, int outputBufferSize, WorkerPool workerPool, javax.net.ssl.SSLEngine engine, boolean isClientEncryptionEnabled, SessionServiceInterface sessionService)
           
 
Method Summary
 ChannelListener createChannelListener(ObjectChannel channel)
           
 int getPort()
           
 SocketListenerStats getStats()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.