|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pf.util.ExceptionIgnorer
org.pf.net.RequestServer
org.pf.net.BinaryRequestServer
org.pfsw.tools.beluga.ldap.server.LDAPServer
public class LDAPServer
The LDAP server that is listening to a port for incoming requests. Then it launches a new thread for each request to be processed.
Field Summary |
---|
Fields inherited from interface org.pf.bif.execution.IServiceStateChangeListener |
---|
FIRST_CUSTOM_STATE, SERVICE_RESUMED, SERVICE_STARTED, SERVICE_STOPPED, SERVICE_SUSPENDED |
Constructor Summary | |
---|---|
LDAPServer()
Initialize the new instance with default values. |
|
LDAPServer(LDAPServerConfiguration configuration)
Initialize the new instance with a port to listen to. |
Method Summary | |
---|---|
int |
getNumberOfOpenConnections()
Returns the current number of open connections from clients. |
void |
run()
Starts running the server. |
void |
serviceStateChanged(org.pf.bif.execution.IService service,
int event)
|
void |
stop()
Stops the server |
Methods inherited from class org.pf.net.RequestServer |
---|
getConnectionIdleTimeout, getPort, setConnectionIdleTimeout |
Methods inherited from class org.pf.util.ExceptionIgnorer |
---|
exceptionOccurred, getExceptionHandler, setExceptionHandler |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LDAPServer() throws IOException
IOException
public LDAPServer(LDAPServerConfiguration configuration) throws IOException
aPort
- The port to listen on for new requests
IOException
Method Detail |
---|
public void run()
run
in interface Runnable
run
in class org.pf.net.RequestServer
public void stop()
public int getNumberOfOpenConnections()
public void serviceStateChanged(org.pf.bif.execution.IService service, int event)
serviceStateChanged
in interface org.pf.bif.execution.IServiceStateChangeListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |