|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.protocol.shared.transport.AbstractTransport
org.apache.directory.server.protocol.shared.transport.TcpTransport
public class TcpTransport
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 |
---|
public TcpTransport()
public TcpTransport(int tcpPort)
tcpPort
- The portpublic TcpTransport(int tcpPort, int nbThreads)
tcpPort
- The portnbThreads
- The number of threads to create in the acceptorpublic TcpTransport(java.lang.String address, int tcpPort)
address
- The addressport
- The portpublic TcpTransport(int tcpPort, int nbThreads, int backLog)
tcpPort
- The portnbThreads
- The number of threads to create in the acceptorbacklog
- The queue size for incoming messages, waiting for the
acceptor to be readypublic TcpTransport(java.lang.String address, int tcpPort, int nbThreads, int backLog)
address
- The addresstcpPort
- The portnbThreads
- The number of threads to create in the acceptorbacklog
- The queue size for incoming messages, waiting for the
acceptor to be readyMethod Detail |
---|
public void init()
init
in interface Transport
init
in class AbstractTransport
public org.apache.mina.transport.socket.SocketAcceptor getAcceptor()
AbstractTransport
getAcceptor
in interface Transport
getAcceptor
in class AbstractTransport
public java.lang.String toString()
toString
in class AbstractTransport
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |