public class GracefulDisconnectResponseImpl extends org.apache.directory.api.ldap.model.message.AbstractExtendedResponse implements GracefulDisconnectResponse
NoticeOfDisconnect this response contains additional information about
the amount of time the server will be offline and exactly when it intends to
shutdown.| Modifier and Type | Field and Description |
|---|---|
private int |
delay
Delay before disconnection
|
private org.apache.directory.api.ldap.model.message.Referral |
replicatedContexts
String based LDAP URL that may be followed for replicated namingContexts
|
private int |
timeOffline
Offline time after disconnection
|
responseNameldapResultEXTENSION_OID| Constructor and Description |
|---|
GracefulDisconnectResponseImpl()
Instantiates a new graceful disconnect.
|
GracefulDisconnectResponseImpl(int timeOffline,
int delay)
Instantiates a new graceful disconnect.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addReplicatedContexts(String replicatedContext)
Add a new URL of a replicated server
|
int |
getDelay()
Gets the delay before disconnection, in seconds.
|
org.apache.directory.api.ldap.model.message.Referral |
getReplicatedContexts()
Gets the replicated contexts.
|
int |
getTimeOffline()
Gets the offline time after disconnection, in minutes.
|
void |
setDelay(int delay)
Sets the delay before 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.
|
equals, getResponseName, hashCode, toStringgetLdapResultaddAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetResponseNameprivate int timeOffline
private int delay
private org.apache.directory.api.ldap.model.message.Referral replicatedContexts
public GracefulDisconnectResponseImpl()
public GracefulDisconnectResponseImpl(int timeOffline,
int delay)
timeOffline - the offline time after disconnect, in minutesdelay - the delay before disconnect, in secondspublic void setResponseName(String oid)
setResponseName in interface org.apache.directory.api.ldap.model.message.ExtendedResponsesetResponseName in class org.apache.directory.api.ldap.model.message.AbstractExtendedResponseoid - the OID of the extended response type.public int getDelay()
getDelay in interface GracefulDisconnectResponsepublic void setDelay(int delay)
setDelay in interface GracefulDisconnectResponsedelay - the new delay before disconnectionpublic int getTimeOffline()
getTimeOffline in interface GracefulDisconnectResponsepublic void setTimeOffline(int timeOffline)
setTimeOffline in interface GracefulDisconnectResponsetimeOffline - the new time offline after disconnectionpublic org.apache.directory.api.ldap.model.message.Referral getReplicatedContexts()
getReplicatedContexts in interface GracefulDisconnectResponsepublic void addReplicatedContexts(String replicatedContext)
addReplicatedContexts in interface GracefulDisconnectResponsereplicatedContext - The replicated server to add.Copyright © 2003–2019 The Apache Software Foundation. All rights reserved.