Class GracefulShutdownRequestImpl
java.lang.Object
org.apache.directory.api.ldap.model.message.AbstractMessage
org.apache.directory.api.ldap.model.message.AbstractRequest
org.apache.directory.api.ldap.model.message.AbstractExtendedRequest
org.apache.directory.api.ldap.model.message.OpaqueExtendedRequest
org.apache.directory.api.ldap.extras.extended.gracefulShutdown.GracefulShutdownRequestImpl
- All Implemented Interfaces:
GracefulShutdownRequest, 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
public class GracefulShutdownRequestImpl
extends org.apache.directory.api.ldap.model.message.OpaqueExtendedRequest
implements GracefulShutdownRequest
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
Fields inherited from class org.apache.directory.api.ldap.model.message.OpaqueExtendedRequest
responseFields inherited from class org.apache.directory.api.ldap.model.message.AbstractExtendedRequest
oidFields inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
controlsFields inherited from interface GracefulShutdownRequest
EXTENSION_OID, NOW, UNDETERMINED -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new graceful shutdown request.GracefulShutdownRequestImpl(int messageId) Instantiates a new graceful shutdown request.GracefulShutdownRequestImpl(int messageId, int timeOffline, int delay) Instantiates a new graceful shutdown request. -
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 class org.apache.directory.api.ldap.model.message.OpaqueExtendedRequest
addAllControls, addControl, equals, getExtendedResponse, getRequestName, getRequestValue, getResponseType, hashCode, removeControl, setMessageId, setRequestName, setRequestValue, toStringMethods inherited from class org.apache.directory.api.ldap.model.message.AbstractExtendedRequest
getResponse, setResponseMethods inherited from class org.apache.directory.api.ldap.model.message.AbstractRequest
hasResponseMethods inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
get, getControl, getControls, getMessageId, getType, hasControl, put, toStringMethods 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.SingleReplyRequest
getResponseType
-
Constructor Details
-
GracefulShutdownRequestImpl
public GracefulShutdownRequestImpl(int messageId) Instantiates a new graceful shutdown request.- Parameters:
messageId- the message id
-
GracefulShutdownRequestImpl
public GracefulShutdownRequestImpl()Instantiates a new graceful shutdown request. -
GracefulShutdownRequestImpl
public GracefulShutdownRequestImpl(int messageId, int timeOffline, int delay) Instantiates a new graceful shutdown request.- Parameters:
messageId- the message idtimeOffline- the offline time after disconnection, in minutesdelay- the delay before disconnection, in seconds
-
-
Method Details
-
getDelay
public int getDelay()Gets the delay before disconnection, in seconds.- Specified by:
getDelayin interfaceGracefulShutdownRequest- Returns:
- the delay before disconnection
-
setDelay
public void setDelay(int delay) Sets the delay before disconnection, in seconds.- Specified by:
setDelayin interfaceGracefulShutdownRequest- Parameters:
delay- the new delay before disconnection
-
getTimeOffline
public int getTimeOffline()Gets the offline time after disconnection, in minutes.- Specified by:
getTimeOfflinein interfaceGracefulShutdownRequest- Returns:
- the offline time after disconnection
-
setTimeOffline
public void setTimeOffline(int timeOffline) Sets the time offline after disconnection, in minutes.- Specified by:
setTimeOfflinein interfaceGracefulShutdownRequest- Parameters:
timeOffline- the new time offline after disconnection
-
getResultResponse
- Specified by:
getResultResponsein interfaceorg.apache.directory.api.ldap.model.message.ResultResponseRequest- Overrides:
getResultResponsein classorg.apache.directory.api.ldap.model.message.OpaqueExtendedRequest
-