Interface GracefulShutdownRequest
- All Superinterfaces:
org.apache.directory.api.ldap.model.message.ExtendedRequest, org.apache.directory.api.ldap.model.message.Message, org.apache.directory.api.ldap.model.message.Request, org.apache.directory.api.ldap.model.message.ResultResponseRequest, org.apache.directory.api.ldap.model.message.SingleReplyRequest
- All Known Implementing Classes:
GracefulShutdownRequestImpl
public interface GracefulShutdownRequest
extends org.apache.directory.api.ldap.model.message.ExtendedRequest
An extended operation requesting the server to shutdown it's LDAP service
port while allowing established clients to complete or abandon operations
already in progress. More information about this extended request is
available here: LDAP Extensions
for Graceful Shutdown.
- Author:
- Apache Directory Project
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe OID for the graceful shutdown extended operation request.static final intThe shutdown is immediatestatic final intUndetermined value used for offline time -
Method Summary
Modifier and TypeMethodDescriptionintgetDelay()Gets the delay before disconnection, in seconds.intGets the offline time after disconnection, in minutes.voidsetDelay(int delay) Sets the delay before disconnection, in seconds.voidsetTimeOffline(int timeOffline) Sets the time offline after disconnection, in minutes.Methods inherited from interface org.apache.directory.api.ldap.model.message.ExtendedRequest
addAllControls, addControl, getRequestName, removeControl, setMessageId, setRequestNameMethods inherited from interface org.apache.directory.api.ldap.model.message.Message
get, getControl, getControls, getMessageId, getType, hasControl, putMethods inherited from interface org.apache.directory.api.ldap.model.message.Request
hasResponseMethods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponseRequest
getResultResponseMethods inherited from interface org.apache.directory.api.ldap.model.message.SingleReplyRequest
getResponseType
-
Field Details
-
EXTENSION_OID
The OID for the graceful shutdown extended operation request.- See Also:
-
UNDETERMINED
static final int UNDETERMINEDUndetermined value used for offline time- See Also:
-
NOW
static final int NOWThe shutdown is immediate- See Also:
-
-
Method Details
-
getDelay
int getDelay()Gets the delay before disconnection, in seconds.- Returns:
- the delay before disconnection
-
setDelay
void setDelay(int delay) Sets the delay before disconnection, in seconds.- Parameters:
delay- the new delay before disconnection
-
getTimeOffline
int getTimeOffline()Gets the offline time after disconnection, in minutes.- Returns:
- the offline time after disconnection
-
setTimeOffline
void setTimeOffline(int timeOffline) Sets the time offline after disconnection, in minutes.- Parameters:
timeOffline- the new time offline after disconnection
-