| | |
| | | // The number of connections currently established to the server. |
| | | private long currentConnections; |
| | | |
| | | // The idle time limit for the server. |
| | | private long idleTimeLimit; |
| | | |
| | | // The maximum number of connections that will be allowed at any given time. |
| | | private long maxAllowedConnections; |
| | | |
| | |
| | | directoryServer.allowedTasks = new LinkedHashSet<String>(0); |
| | | directoryServer.disabledPrivileges = new LinkedHashSet<Privilege>(0); |
| | | directoryServer.returnBindErrorMessages = false; |
| | | directoryServer.idleTimeLimit = 0L; |
| | | } |
| | | |
| | | |
| | |
| | | if (startConnectionHandlers) |
| | | { |
| | | startConnectionHandlers(); |
| | | new IdleTimeLimitThread().start(); |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the maximum length of time in milliseconds that client |
| | | * connections should be allowed to remain idle without being disconnected. |
| | | * |
| | | * @return The maximum length of time in milliseconds that client connections |
| | | * should be allowed to remain idle without being disconnected. |
| | | */ |
| | | public static long getIdleTimeLimit() |
| | | { |
| | | return directoryServer.idleTimeLimit; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Specifies the maximum length of time in milliseconds that client |
| | | * connections should be allowed to remain idle without being disconnected. |
| | | * |
| | | * @param idleTimeLimit The maximum length of time in milliseconds that |
| | | * client connections should be allowed to remain idle |
| | | * without being disconnected. |
| | | */ |
| | | public static void setIdleTimeLimit(long idleTimeLimit) |
| | | { |
| | | directoryServer.idleTimeLimit = idleTimeLimit; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Registers the provided backup task listener with the Directory Server. |
| | | * |
| | | * @param listener The backup task listener to register with the Directory |