org.apache.directory.shared.ldap.message.extended
Class GracefulDisconnect
java.lang.Object
org.apache.directory.shared.ldap.message.AbstractMessage
org.apache.directory.shared.ldap.message.AbstractResponse
org.apache.directory.shared.ldap.message.AbstractResultResponse
org.apache.directory.shared.ldap.message.ExtendedResponseImpl
org.apache.directory.shared.ldap.message.extended.GracefulDisconnect
- All Implemented Interfaces:
- ExtendedResponse, javax.naming.ldap.ExtendedResponse, Message, Response, ResultResponse, java.io.Serializable
- public class GracefulDisconnect
- extends ExtendedResponseImpl
An unsolicited notification, extended response, intended for notifying
clients of upcoming disconnection due to intended service windows. Unlike the
NoticeOfDisconnect
this response contains additional information about
the amount of time the server will be offline and exactly when it intends to
shutdown.
- Version:
- $Rev: 379008 $
- Author:
- Apache Directory Project
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EXTENSION_OID
public static final java.lang.String EXTENSION_OID
- See Also:
- Constant Field Values
GracefulDisconnect
public GracefulDisconnect(byte[] value)
GracefulDisconnect
public GracefulDisconnect(int timeOffline,
int delay)
getResponse
public byte[] getResponse()
- Gets the reponse OID specific encoded response values.
- Specified by:
getResponse
in interface ExtendedResponse
- Overrides:
getResponse
in class ExtendedResponseImpl
- Returns:
- the response specific encoded response values.
setResponse
public void setResponse(byte[] value)
- Sets the reponse OID specific encoded response values.
- Specified by:
setResponse
in interface ExtendedResponse
- Overrides:
setResponse
in class ExtendedResponseImpl
- Parameters:
value
- the response specific encoded response values.
getResponseName
public java.lang.String getResponseName()
- Gets the OID uniquely identifying this extended response (a.k.a. its
name).
- Specified by:
getResponseName
in interface ExtendedResponse
- Overrides:
getResponseName
in class ExtendedResponseImpl
- Returns:
- the OID of the extended response type.
setResponseName
public void setResponseName(java.lang.String oid)
- Sets the OID uniquely identifying this extended response (a.k.a. its
name).
- Specified by:
setResponseName
in interface ExtendedResponse
- Overrides:
setResponseName
in class ExtendedResponseImpl
- Parameters:
oid
- the OID of the extended response type.
setDelay
public void setDelay(int delay)
setTimeOffline
public void setTimeOffline(int timeOffline)
getDelay
public int getDelay()
getTimeOffline
public int getTimeOffline()
getReplicatedContexts
public Referral getReplicatedContexts()
Copyright © 2003-2006 . All Rights Reserved.