|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.model.message.AbstractMessage
org.apache.directory.api.ldap.model.message.AbstractResponse
org.apache.directory.api.ldap.model.message.AbstractResultResponse
org.apache.directory.api.ldap.model.message.ExtendedResponseImpl
org.apache.directory.api.ldap.extras.extended.GracefulDisconnectResponseImpl
public class GracefulDisconnectResponseImpl
An unsolicited notification, extended response, intended for notifying
clients of up coming disconnection due to intended service windows. Unlike the
org.apache.directory.api.ldap.model.message.extended.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 |
|---|
| Fields inherited from class org.apache.directory.api.ldap.model.message.ExtendedResponseImpl |
|---|
responseName |
| Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractResultResponse |
|---|
ldapResult |
| Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage |
|---|
controls |
| Fields inherited from interface org.apache.directory.api.ldap.extras.extended.GracefulDisconnectResponse |
|---|
EXTENSION_OID |
| Fields inherited from interface org.apache.directory.api.ldap.model.message.ExtendedResponse |
|---|
TYPE |
| Constructor Summary | |
|---|---|
GracefulDisconnectResponseImpl()
Instantiates a new graceful disconnect. |
|
GracefulDisconnectResponseImpl(int timeOffline,
int delay)
Instantiates a new graceful disconnect. |
|
| Method Summary | |
|---|---|
int |
getDelay()
Gets the delay before disconnection, in seconds. |
org.apache.directory.api.ldap.model.message.Referral |
getReplicatedContexts()
Gets the replicated contexts. |
String |
getResponseName()
Gets the OID uniquely identifying this extended response (a.k.a. |
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 |
setTimeOffline(int timeOffline)
Sets the time offline after disconnection, in minutes. |
| Methods inherited from class org.apache.directory.api.ldap.model.message.ExtendedResponseImpl |
|---|
equals, hashCode, toString |
| Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractResultResponse |
|---|
getLdapResult |
| Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage |
|---|
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponse |
|---|
getLdapResult |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.Message |
|---|
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId |
| Constructor Detail |
|---|
public GracefulDisconnectResponseImpl()
public GracefulDisconnectResponseImpl(int timeOffline,
int delay)
timeOffline - the offline time after disconnect, in minutesdelay - the delay before disconnect, in seconds| Method Detail |
|---|
public String getResponseName()
getResponseName in interface org.apache.directory.api.ldap.model.message.ExtendedResponsegetResponseName in class org.apache.directory.api.ldap.model.message.ExtendedResponseImplpublic void setResponseName(String oid)
setResponseName in interface org.apache.directory.api.ldap.model.message.ExtendedResponsesetResponseName in class org.apache.directory.api.ldap.model.message.ExtendedResponseImploid - the OID of the extended response type.public int getDelay()
GracefulDisconnectResponse
getDelay in interface GracefulDisconnectResponsepublic void setDelay(int delay)
GracefulDisconnectResponse
setDelay in interface GracefulDisconnectResponsedelay - the new delay before disconnectionpublic int getTimeOffline()
GracefulDisconnectResponse
getTimeOffline in interface GracefulDisconnectResponsepublic void setTimeOffline(int timeOffline)
GracefulDisconnectResponse
setTimeOffline in interface GracefulDisconnectResponsetimeOffline - the new time offline after disconnectionpublic org.apache.directory.api.ldap.model.message.Referral getReplicatedContexts()
GracefulDisconnectResponse
getReplicatedContexts in interface GracefulDisconnectResponse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||