|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.ldap.model.message.AbstractMessage
org.apache.directory.shared.ldap.model.message.AbstractResponse
org.apache.directory.shared.ldap.model.message.AbstractResultResponse
org.apache.directory.shared.ldap.model.message.ExtendedResponseImpl
org.apache.directory.shared.ldap.extras.extended.GracefulDisconnect
public class GracefulDisconnect
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.
| Field Summary | |
|---|---|
static String |
EXTENSION_OID
The OID for the graceful disconnect extended operation response. |
| Fields inherited from class org.apache.directory.shared.ldap.model.message.ExtendedResponseImpl |
|---|
responseName, responseValue |
| Fields inherited from class org.apache.directory.shared.ldap.model.message.AbstractResultResponse |
|---|
ldapResult |
| Fields inherited from class org.apache.directory.shared.ldap.model.message.AbstractMessage |
|---|
controls |
| Fields inherited from interface org.apache.directory.shared.ldap.model.message.ExtendedResponse |
|---|
TYPE |
| Constructor Summary | |
|---|---|
GracefulDisconnect(byte[] responseValue)
Instantiates a new graceful disconnect. |
|
GracefulDisconnect(int timeOffline,
int delay)
Instantiates a new graceful disconnect. |
|
| Method Summary | |
|---|---|
int |
getDelay()
Gets the delay before disconnection, in seconds. |
Referral |
getReplicatedContexts()
Gets the replicated contexts. |
String |
getResponseName()
Gets the OID uniquely identifying this extended response (a.k.a. |
byte[] |
getResponseValue()
Gets the response OID specific encoded response values. |
int |
getTimeOffline()
Gets the offline time after disconnection, in minutes. |
void |
setDelay(int delay)
Sets the delay befor disconnection, in seconds. |
void |
setResponseName(String oid)
Sets the OID uniquely identifying this extended response (a.k.a. |
void |
setResponseValue(byte[] responseValue)
Sets the reponse OID specific encoded response values. |
void |
setTimeOffline(int timeOffline)
Sets the time offline after disconnection, in minutes. |
| Methods inherited from class org.apache.directory.shared.ldap.model.message.ExtendedResponseImpl |
|---|
equals, getEncodedValue, getID, hashCode, toString |
| Methods inherited from class org.apache.directory.shared.ldap.model.message.AbstractResultResponse |
|---|
getLdapResult |
| Methods inherited from class org.apache.directory.shared.ldap.model.message.AbstractMessage |
|---|
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.directory.shared.ldap.model.message.ResultResponse |
|---|
getLdapResult |
| Methods inherited from interface org.apache.directory.shared.ldap.model.message.Message |
|---|
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId |
| Field Detail |
|---|
public static final String EXTENSION_OID
| Constructor Detail |
|---|
public GracefulDisconnect(byte[] responseValue)
throws DecoderException
responseValue - the response value
DecoderException - if the response value can't be decoded
public GracefulDisconnect(int timeOffline,
int delay)
timeOffline - the offline time after disconnect, in minutesdelay - the delay before disconnect, in seconds| Method Detail |
|---|
public byte[] getResponseValue()
getResponseValue in class ExtendedResponseImplpublic void setResponseValue(byte[] responseValue)
setResponseValue in class ExtendedResponseImplresponseValue - the response specific encoded response values.public String getResponseName()
getResponseName in class ExtendedResponseImplpublic void setResponseName(String oid)
setResponseName in class ExtendedResponseImploid - the OID of the extended response type.public int getDelay()
public void setDelay(int delay)
delay - the new delay before disconnectionpublic int getTimeOffline()
public void setTimeOffline(int timeOffline)
timeOffline - the new time offline after disconnectionpublic Referral getReplicatedContexts()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||