| | |
| | | */ |
| | | public void run() |
| | | { |
| | | |
| | | |
| | | // Operate in a loop until the server shuts down. Each time through the |
| | | // loop, check for new requests, then check for new connections. |
| | | while (! shutdownRequested) |
| | |
| | | */ |
| | | public boolean registerClient(LDAPClientConnection clientConnection) |
| | | { |
| | | |
| | | // FIXME -- Need to check if the maximum client limit has been reached. |
| | | |
| | | |
| | |
| | | */ |
| | | public void deregisterClient(LDAPClientConnection clientConnection) |
| | | { |
| | | |
| | | SelectionKey[] keyArray = selector.keys().toArray(new SelectionKey[0]); |
| | | for (SelectionKey key : keyArray) |
| | | { |
| | |
| | | */ |
| | | public void deregisterAllClients() |
| | | { |
| | | |
| | | SelectionKey[] keyArray = selector.keys().toArray(new SelectionKey[0]); |
| | | for (SelectionKey key : keyArray) |
| | | { |
| | |
| | | */ |
| | | public Collection<LDAPClientConnection> getClientConnections() |
| | | { |
| | | |
| | | SelectionKey[] keyArray = selector.keys().toArray(new SelectionKey[0]); |
| | | |
| | | ArrayList<LDAPClientConnection> connList = |
| | |
| | | */ |
| | | public String getShutdownListenerName() |
| | | { |
| | | |
| | | return handlerName; |
| | | } |
| | | |
| | |
| | | */ |
| | | public void registerShutdownListener() |
| | | { |
| | | |
| | | DirectoryServer.registerShutdownListener(this); |
| | | } |
| | | |
| | |
| | | */ |
| | | public void processServerShutdown(String reason) |
| | | { |
| | | |
| | | shutdownRequested = true; |
| | | |
| | | Collection<LDAPClientConnection> clientConnections = getClientConnections(); |