public class GracefulDisconnect extends GracefulAction
GracefulDisconnect ::= SEQUENCE
{
timeOffline INTEGER (0..720) DEFAULT 0,
delay [0] INTEGER (0..86400) DEFAULT 0,
replicatedContexts Referral OPTIONAL
}
delay, NOW, timeOffline, UNDETERMINED| Constructor and Description |
|---|
GracefulDisconnect()
Default constructor.
|
GracefulDisconnect(int timeOffline,
int delay)
Create a GracefulDisconnect object, with a timeOffline and a delay
|
| Modifier and Type | Method and Description |
|---|---|
void |
addReplicatedContexts(org.apache.directory.api.ldap.model.url.LdapUrl replicatedContext)
Add a new URL of a replicated server
|
int |
computeLength()
Compute the GracefulDisconnect length
0x30 L1
|
+--> [ 0x02 0x0(1-4) [0..720] ]
+--> [ 0x80 0x0(1-3) [0..86400] ]
+--> [ 0x30 L2
|
+--> (0x04 L3 value) + ]
|
ByteBuffer |
encode()
Encodes the gracefulDisconnect extended operation.
|
List<org.apache.directory.api.ldap.model.url.LdapUrl> |
getReplicatedContexts()
Get the list of replicated servers
|
String |
toString()
Return a string representation of the graceful disconnect
|
getDelay, getTimeOffline, setDelay, setTimeOfflinepublic GracefulDisconnect(int timeOffline,
int delay)
timeOffline - The time the server will be offlinedelay - The delay before the disconnectionpublic GracefulDisconnect()
public List<org.apache.directory.api.ldap.model.url.LdapUrl> getReplicatedContexts()
public void addReplicatedContexts(org.apache.directory.api.ldap.model.url.LdapUrl replicatedContext)
replicatedContext - The replictaed server to add.public int computeLength()
public ByteBuffer encode() throws org.apache.directory.api.asn1.EncoderException
org.apache.directory.api.asn1.EncoderException - If anything goes wrong.Copyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.