org.apache.directory.server.protocol.shared.transport
Interface Transport

All Known Implementing Classes:
AbstractTransport, TcpTransport, UdpTransport

public interface Transport


Method Summary
 void enableSSL(boolean sslEnabled)
          Enable or disable SSL
 org.apache.mina.core.service.IoAcceptor getAcceptor()
           
 java.lang.String getAddress()
           
 int getBackLog()
           
 int getNbThreads()
          Set the IoAcceptor
 int getPort()
          Gets the port for this service.
 void init()
          Initialize the Acceptor if needed
 boolean isSSLEnabled()
           
 void setAddress(java.lang.String address)
          Set the InetAddress for 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.
 

Method Detail

init

void init()
Initialize the Acceptor if needed


getAddress

java.lang.String getAddress()
Returns:
The associated Address

setAddress

void setAddress(java.lang.String address)
Set the InetAddress for this transport.

Parameters:
address - The address to set

getPort

int getPort()
Gets the port for this service.

Returns:
the port for this service

setPort

void setPort(int port)
Sets the port for this service.

Parameters:
port - the port for this service
Throws:
java.lang.IllegalArgumentException - if the port number is not within a valid range

getAcceptor

org.apache.mina.core.service.IoAcceptor getAcceptor()
Returns:
The associated IoAcceptor

getNbThreads

int getNbThreads()
Set the IoAcceptor

Parameters:
acceptor - The IoAcceptor to set void setAcceptor ( IoAcceptor acceptor ); /**
Returns:
The number of processing threads for this acceptor

setNbThreads

void setNbThreads(int nbThreads)
Set the number of processing threads for the acceptor

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

getBackLog

int getBackLog()
Returns:
The number of messages stored into the backlog when the acceptor is being busy processing the current messages

setBackLog

void setBackLog(int backLog)
Set the size of the messages queue waiting for the acceptor to be ready.

Parameters:
backLog - The queue size

setEnableSSL

void setEnableSSL(boolean sslEnabled)
Enable or disable SSL

Parameters:
sslEnabled - if true, SSL is enabled.

enableSSL

void enableSSL(boolean sslEnabled)
Enable or disable SSL

Parameters:
sslEnabled - if true, SSL is enabled.

isSSLEnabled

boolean isSSLEnabled()
Returns:
true id SSL is enabled for this transport


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