org.apache.directory.server.protocol.shared.transport
Class TcpTransport

java.lang.Object
  extended by org.apache.directory.server.protocol.shared.transport.AbstractTransport
      extended by org.apache.directory.server.protocol.shared.transport.TcpTransport
All Implemented Interfaces:
Transport

public class TcpTransport
extends AbstractTransport

Version:
$Rev$, $Date$
Author:
Apache Directory Project
XBean

Field Summary
 
Fields inherited from class org.apache.directory.server.protocol.shared.transport.AbstractTransport
acceptor, DEFAULT_BACKLOG_NB, DEFAULT_NB_THREADS, LOCAL_HOST
 
Constructor Summary
TcpTransport()
          Creates an instance of the TcpTransport class
TcpTransport(int tcpPort)
          Creates an instance of the TcpTransport class on localhost
TcpTransport(int tcpPort, int nbThreads)
          Creates an instance of the TcpTransport class on localhost
TcpTransport(int tcpPort, int nbThreads, int backLog)
          Creates an instance of the TcpTransport class on localhost
TcpTransport(java.lang.String address, int tcpPort)
          Creates an instance of the TcpTransport class
TcpTransport(java.lang.String address, int tcpPort, int nbThreads, int backLog)
          Creates an instance of the TcpTransport class
 
Method Summary
 org.apache.mina.transport.socket.SocketAcceptor getAcceptor()
          
 void init()
          Initialize the Acceptor if needed
 java.lang.String toString()
           
 
Methods inherited from class org.apache.directory.server.protocol.shared.transport.AbstractTransport
enableSSL, getAddress, getBackLog, getEnableSSL, getNbThreads, getPort, isSSLEnabled, setAddress, setBackLog, setEnableSSL, setNbThreads, setPort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TcpTransport

public TcpTransport()
Creates an instance of the TcpTransport class


TcpTransport

public TcpTransport(int tcpPort)
Creates an instance of the TcpTransport class on localhost

Parameters:
tcpPort - The port

TcpTransport

public TcpTransport(int tcpPort,
                    int nbThreads)
Creates an instance of the TcpTransport class on localhost

Parameters:
tcpPort - The port
nbThreads - The number of threads to create in the acceptor

TcpTransport

public TcpTransport(java.lang.String address,
                    int tcpPort)
Creates an instance of the TcpTransport class

Parameters:
address - The address
port - The port

TcpTransport

public TcpTransport(int tcpPort,
                    int nbThreads,
                    int backLog)
Creates an instance of the TcpTransport class on localhost

Parameters:
tcpPort - The port
nbThreads - The number of threads to create in the acceptor
backlog - The queue size for incoming messages, waiting for the acceptor to be ready

TcpTransport

public TcpTransport(java.lang.String address,
                    int tcpPort,
                    int nbThreads,
                    int backLog)
Creates an instance of the TcpTransport class

Parameters:
address - The address
tcpPort - The port
nbThreads - The number of threads to create in the acceptor
backlog - The queue size for incoming messages, waiting for the acceptor to be ready
Method Detail

init

public void init()
Initialize the Acceptor if needed

Specified by:
init in interface Transport
Specified by:
init in class AbstractTransport

getAcceptor

public org.apache.mina.transport.socket.SocketAcceptor getAcceptor()
Description copied from class: AbstractTransport

Specified by:
getAcceptor in interface Transport
Specified by:
getAcceptor in class AbstractTransport
Returns:
The associated SocketAcceptor

toString

public java.lang.String toString()
Overrides:
toString in class AbstractTransport
See Also:
Object.toString()


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.