|
||||||||||
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
public abstract class AbstractTransport
Field Summary | |
---|---|
protected org.apache.mina.core.service.IoAcceptor |
acceptor
The IoAcceptor used to accept requests |
protected static int |
DEFAULT_BACKLOG_NB
The default backlog queue size |
protected static int |
DEFAULT_NB_THREADS
The default number of threads |
protected static java.lang.String |
LOCAL_HOST
The default hostname |
Constructor Summary | |
---|---|
AbstractTransport()
Creates an instance of an Abstract Transport class. |
|
AbstractTransport(int port)
Creates an instance of an Abstract Transport class, using localhost and port. |
|
AbstractTransport(int port,
int nbThreads)
Creates an instance of an Abstract Transport class, using localhost and port. |
|
AbstractTransport(int port,
int nbThreads,
int backLog)
Creates an instance of the AbstractTransport class on LocalHost |
|
AbstractTransport(java.lang.String address,
int port)
Creates an instance of an Abstract Transport class, using the given address and port. |
|
AbstractTransport(java.lang.String address,
int port,
int nbThreads,
int backLog)
Creates an instance of the AbstractTransport class |
Method Summary | |
---|---|
void |
enableSSL(boolean sslEnabled)
Enable or disable SSL |
abstract org.apache.mina.core.service.IoAcceptor |
getAcceptor()
|
java.lang.String |
getAddress()
|
int |
getBackLog()
|
boolean |
getEnableSSL()
|
int |
getNbThreads()
Set the IoAcceptor |
int |
getPort()
Gets the port for this service. |
abstract void |
init()
Initialize the Acceptor if needed |
boolean |
isSSLEnabled()
|
void |
setAddress(java.lang.String address)
Stores the Address in this transport |
void |
setBackLog(int backLog)
Set the size of the messages queue waiting for the acceptor to be ready. |
void |
setEnableSSL(boolean sslEnabled)
Enable or disable SSL |
void |
setNbThreads(int nbThreads)
Set the number of processing threads for the acceptor |
void |
setPort(int port)
Sets the port for this service. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected org.apache.mina.core.service.IoAcceptor acceptor
protected static final int DEFAULT_BACKLOG_NB
protected static final java.lang.String LOCAL_HOST
protected static final int DEFAULT_NB_THREADS
Constructor Detail |
---|
public AbstractTransport()
public AbstractTransport(int port)
port
- The portpublic AbstractTransport(int port, int nbThreads)
port
- The portnbThreads
- The number of threads to create in the acceptorpublic AbstractTransport(java.lang.String address, int port)
address
- The addressport
- The portpublic AbstractTransport(int port, 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 AbstractTransport(java.lang.String address, int port, 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 abstract void init()
init
in interface Transport
public int getPort()
getPort
in interface Transport
public void setPort(int port)
setPort
in interface Transport
port
- the port for this servicepublic java.lang.String getAddress()
getAddress
in interface Transport
public void setAddress(java.lang.String address)
setAddress
in interface Transport
address
- the Address to storepublic abstract org.apache.mina.core.service.IoAcceptor getAcceptor()
getAcceptor
in interface Transport
public int getNbThreads()
getNbThreads
in interface Transport
public void setNbThreads(int nbThreads)
setNbThreads
in interface Transport
nbThreads
- The number of threads to create in the acceptorpublic int getBackLog()
getBackLog
in interface Transport
public void setBackLog(int backLog)
setBackLog
in interface Transport
backLog
- The queue sizepublic void setEnableSSL(boolean sslEnabled)
setEnableSSL
in interface Transport
enableSSL
- if true
, SSL is enabled.public void enableSSL(boolean sslEnabled)
enableSSL
in interface Transport
enableSSL
- if true
, SSL is enabled.public boolean isSSLEnabled()
isSSLEnabled
in interface Transport
true
id SSL is enabled for this transportpublic boolean getEnableSSL()
true
id SSL is enabled for this transportpublic java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |