|
||||||||||
| 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(String address,
int tcpPort)
Creates an instance of the TcpTransport class |
|
TcpTransport(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 |
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 port
public TcpTransport(int tcpPort,
int nbThreads)
tcpPort - The portnbThreads - The number of threads to create in the acceptor
public TcpTransport(String address,
int tcpPort)
address - The addresstcpPort - The port
public 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 ready
public TcpTransport(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 ready| Method Detail |
|---|
public void init()
init in interface Transportinit in class AbstractTransportpublic org.apache.mina.transport.socket.SocketAcceptor getAcceptor()
AbstractTransport
getAcceptor in interface TransportgetAcceptor in class AbstractTransportpublic String toString()
toString in class AbstractTransportObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||