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

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The OID for the graceful shutdown extended operation request.
    static final int
    The shutdown is immediate
    static final int
    Undetermined value used for offline time
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the delay before disconnection, in seconds.
    int
    Gets the offline time after disconnection, in minutes.
    void
    setDelay(int delay)
    Sets the delay before disconnection, in seconds.
    void
    setTimeOffline(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, setRequestName

    Methods inherited from interface org.apache.directory.api.ldap.model.message.Message

    get, getControl, getControls, getMessageId, getType, hasControl, put

    Methods inherited from interface org.apache.directory.api.ldap.model.message.Request

    hasResponse

    Methods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponseRequest

    getResultResponse

    Methods inherited from interface org.apache.directory.api.ldap.model.message.SingleReplyRequest

    getResponseType
  • Field Details

    • EXTENSION_OID

      static final String EXTENSION_OID
      The OID for the graceful shutdown extended operation request.
      See Also:
    • UNDETERMINED

      static final int UNDETERMINED
      Undetermined value used for offline time
      See Also:
    • NOW

      static final int NOW
      The 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