org.apache.directory.shared.ldap.codec.extended.operations
Class GracefulShutdown
java.lang.Object
org.apache.directory.shared.asn1.Asn1Object
org.apache.directory.shared.ldap.codec.extended.operations.GracefulAction
org.apache.directory.shared.ldap.codec.extended.operations.GracefulShutdown
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,
}
- Version:
- $Rev: 503333 $
- Author:
- Apache Directory Project
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(ByteBuffer buffer)
Encodes the gracefulShutdown extended operation. |
String |
toString()
Return a string representation of the graceful shutdown |
GracefulShutdown
public GracefulShutdown()
- See Also:
Asn1Object#Asn1Object
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 class Asn1Object
- Returns:
- The object's computed length
encode
public ByteBuffer encode(ByteBuffer buffer)
throws EncoderException
- Encodes the gracefulShutdown extended operation.
- Overrides:
encode
in class Asn1Object
- Parameters:
buffer
- The encoded sink
- 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 © 2004-2012. All Rights Reserved.