org.apache.directory.shared.ldap.extras.extended.ads_impl
Class GracefulShutdown
java.lang.Object
org.apache.directory.shared.asn1.AbstractAsn1Object
org.apache.directory.shared.ldap.extras.extended.ads_impl.GracefulAction
org.apache.directory.shared.ldap.extras.extended.ads_impl.GracefulShutdown
- All Implemented Interfaces:
- Asn1Object
public class GracefulShutdown
- extends GracefulAction
An extended operation to proceed a graceful shutdown
GracefulShutdown ::= SEQUENCE
{
timeOffline INTEGER (0..720) DEFAULT 0,
delay [0] INTEGER (0..86400) DEFAULT 0,
}
- Author:
- Apache Directory Project
|
Constructor Summary |
GracefulShutdown()
Creates a new instance of GracefulShutdown. |
|
Method Summary |
int |
computeLength()
Compute the GracefulShutdown length
0x30 L1
|
+--> [0x02 0x0(1-4) [0..720] ]
+--> [0x80 0x0(1-3) [0..86400] ]
L1 will always be < 11. |
ByteBuffer |
encode()
Encodes the gracefulShutdown extended operation. |
String |
toString()
Return a string representation of the graceful shutdown |
GracefulShutdown
public GracefulShutdown()
- Creates a new instance of GracefulShutdown.
computeLength
public int computeLength()
- Compute the GracefulShutdown length
0x30 L1
|
+--> [0x02 0x0(1-4) [0..720] ]
+--> [0x80 0x0(1-3) [0..86400] ]
L1 will always be < 11.
- Specified by:
computeLength in interface Asn1Object- Specified by:
computeLength in class AbstractAsn1Object
encode
public ByteBuffer encode()
throws EncoderException
- Encodes the gracefulShutdown extended operation.
- Returns:
- A ByteBuffer that contains the encoded PDU
- Throws:
EncoderException - If anything goes wrong.
toString
public String toString()
- Return a string representation of the graceful shutdown
- Overrides:
toString in class Object
Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.