Interface GracefulDisconnectResponse
- All Superinterfaces:
org.apache.directory.api.ldap.model.message.ExtendedResponse, org.apache.directory.api.ldap.model.message.Message, org.apache.directory.api.ldap.model.message.Response, org.apache.directory.api.ldap.model.message.ResultResponse
- All Known Implementing Classes:
GracefulDisconnectResponseImpl
public interface GracefulDisconnectResponse
extends org.apache.directory.api.ldap.model.message.ExtendedResponse
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.- Author:
- Apache Directory Project
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe OID for the graceful disconnect extended operation response. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddReplicatedContexts(String replicatedContext) Add a new URL of a replicated serverintgetDelay()Gets the delay before disconnection, in seconds.org.apache.directory.api.ldap.model.message.ReferralGets the replicated contexts.intGets the offline time after disconnection, in minutes.voidsetDelay(int delay) Sets the delay before disconnection, in seconds.voidsetTimeOffline(int timeOffline) Sets the time offline after disconnection, in minutes.Methods inherited from interface org.apache.directory.api.ldap.model.message.ExtendedResponse
getResponseName, setResponseNameMethods inherited from interface org.apache.directory.api.ldap.model.message.Message
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageIdMethods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponse
getLdapResult
-
Field Details
-
EXTENSION_OID
The OID for the graceful disconnect extended operation response.- See Also:
-
-
Method Details
-
getDelay
int getDelay()Gets the delay before disconnection, in seconds.- Returns:
- the delay before disconnection
-
setDelay
void setDelay(int delay) Sets the delay before disconnection, in seconds.- Parameters:
delay- the new delay before disconnection
-
getTimeOffline
int getTimeOffline()Gets the offline time after disconnection, in minutes.- Returns:
- the offline time after disconnection
-
setTimeOffline
void setTimeOffline(int timeOffline) Sets the time offline after disconnection, in minutes.- Parameters:
timeOffline- the new time offline after disconnection
-
getReplicatedContexts
org.apache.directory.api.ldap.model.message.Referral getReplicatedContexts()Gets the replicated contexts.- Returns:
- the replicated contexts
-
addReplicatedContexts
Add a new URL of a replicated server- Parameters:
replicatedContext- The replicated server to add.
-