|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.asn1.AbstractAsn1Object
org.apache.directory.shared.ldap.extras.extended.ads_impl.GracefulAction
org.apache.directory.shared.ldap.extras.extended.ads_impl.GracefulDisconnect
public class GracefulDisconnect
An extended operation to proceed a graceful disconnect
GracefulDisconnect ::= SEQUENCE
{
timeOffline INTEGER (0..720) DEFAULT 0,
delay [0] INTEGER (0..86400) DEFAULT 0,
replicatedContexts Referral OPTIONAL
}
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.shared.ldap.extras.extended.ads_impl.GracefulAction |
|---|
delay, NOW, timeOffline, UNDETERMINED |
| Constructor Summary | |
|---|---|
GracefulDisconnect()
Default constructor. |
|
GracefulDisconnect(int timeOffline,
int delay)
Create a GracefulDisconnect object, with a timeOffline and a delay |
|
| Method Summary | |
|---|---|
void |
addReplicatedContexts(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<LdapURL> |
getReplicatedContexts()
Get the list of replicated servers |
String |
toString()
Return a string representation of the graceful disconnect |
| Methods inherited from class org.apache.directory.shared.ldap.extras.extended.ads_impl.GracefulAction |
|---|
getDelay, getTimeOffline, setDelay, setTimeOffline |
| Methods inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
|---|
addLength, encode, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GracefulDisconnect(int timeOffline,
int delay)
timeOffline - The time the server will be offlinedelay - The delay before the disconnectionpublic GracefulDisconnect()
| Method Detail |
|---|
public List<LdapURL> getReplicatedContexts()
public void addReplicatedContexts(LdapURL replicatedContext)
replicatedContext - The replictaed server to add.public int computeLength()
computeLength in interface Asn1ObjectcomputeLength in class AbstractAsn1Object
public ByteBuffer encode()
throws EncoderException
EncoderException - If anything goes wrong.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||