public class GracefulDisconnectResponseImpl extends ExtendedResponseImpl 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.responseName
ldapResult
controls
EXTENSION_OID
TYPE
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 |
---|---|
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.
|
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.
|
equals, hashCode, toString
getLdapResult
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getLdapResult
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
public GracefulDisconnectResponseImpl()
public GracefulDisconnectResponseImpl(int timeOffline, int delay)
timeOffline
- the offline time after disconnect, in minutesdelay
- the delay before disconnect, in secondspublic String getResponseName()
getResponseName
in interface ExtendedResponse
getResponseName
in class ExtendedResponseImpl
public void setResponseName(String oid)
setResponseName
in interface ExtendedResponse
setResponseName
in class ExtendedResponseImpl
oid
- the OID of the extended response type.public int getDelay()
GracefulDisconnectResponse
getDelay
in interface GracefulDisconnectResponse
public void setDelay(int delay)
GracefulDisconnectResponse
setDelay
in interface GracefulDisconnectResponse
delay
- the new delay before disconnectionpublic int getTimeOffline()
GracefulDisconnectResponse
getTimeOffline
in interface GracefulDisconnectResponse
public void setTimeOffline(int timeOffline)
GracefulDisconnectResponse
setTimeOffline
in interface GracefulDisconnectResponse
timeOffline
- the new time offline after disconnectionpublic Referral getReplicatedContexts()
GracefulDisconnectResponse
getReplicatedContexts
in interface GracefulDisconnectResponse
Copyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.