public class GracefulShutdown extends GracefulAction
GracefulShutdown ::= SEQUENCE { timeOffline INTEGER (0..720) DEFAULT 0, delay [0] INTEGER (0..86400) DEFAULT 0, }
delay, NOW, timeOffline, UNDETERMINED
Constructor and Description |
---|
GracefulShutdown()
Creates a new instance of GracefulShutdown.
|
Modifier and Type | Method and Description |
---|---|
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
|
getDelay, getTimeOffline, setDelay, setTimeOffline
addLength, encode, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent
public GracefulShutdown()
public int computeLength()
computeLength
in interface Asn1Object
computeLength
in class AbstractAsn1Object
public ByteBuffer encode() throws EncoderException
EncoderException
- If anything goes wrong.Copyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.