public class GracefulShutdownRequestDecorator
extends org.apache.directory.api.ldap.codec.decorators.ExtendedRequestDecorator<org.apache.directory.api.ldap.extras.extended.gracefulShutdown.GracefulShutdownRequest>
implements org.apache.directory.api.ldap.extras.extended.gracefulShutdown.GracefulShutdownRequest
| Modifier and Type | Field and Description |
|---|---|
private int |
gracefulSequenceLength
Length of the sequence
|
private org.apache.directory.api.ldap.extras.extended.gracefulShutdown.GracefulShutdownRequest |
gracefulShutdownRequest |
private static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
GracefulShutdownRequestDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
org.apache.directory.api.ldap.extras.extended.gracefulShutdown.GracefulShutdownRequest decoratedMessage)
Creates a new instance of GracefulShutdownRequestDecorator.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
computeLengthInternal()
Compute the GracefulShutdown length
|
(package private) ByteBuffer |
encodeInternal()
Encodes the gracefulShutdown extended operation.
|
int |
getDelay() |
byte[] |
getRequestValue() |
int |
getTimeOffline() |
void |
setDelay(int delay) |
void |
setRequestValue(byte[] requestValue) |
void |
setTimeOffline(int timeOffline) |
String |
toString()
Return a string representation of the graceful shutdown
|
addAllControls, addControl, computeLength, encode, getRequestName, removeControl, setMessageId, setRequestNameabandon, addAbandonListener, getResponseType, isAbandonedgetResultResponse, hasResponseget, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, setControlsLength, setMessageLengthclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAllControls, addControl, getRequestName, removeControl, setMessageId, setRequestNamegetResponseTypeprivate static final org.slf4j.Logger LOG
private int gracefulSequenceLength
private org.apache.directory.api.ldap.extras.extended.gracefulShutdown.GracefulShutdownRequest gracefulShutdownRequest
public GracefulShutdownRequestDecorator(org.apache.directory.api.ldap.codec.api.LdapApiService codec,
org.apache.directory.api.ldap.extras.extended.gracefulShutdown.GracefulShutdownRequest decoratedMessage)
codec - The LDAP Service to usedecoratedMessage - The GracefulShutdownRequest control to decoratepublic void setRequestValue(byte[] requestValue)
setRequestValue in class org.apache.directory.api.ldap.codec.decorators.ExtendedRequestDecorator<org.apache.directory.api.ldap.extras.extended.gracefulShutdown.GracefulShutdownRequest>public byte[] getRequestValue()
getRequestValue in class org.apache.directory.api.ldap.codec.decorators.ExtendedRequestDecorator<org.apache.directory.api.ldap.extras.extended.gracefulShutdown.GracefulShutdownRequest>public int getDelay()
getDelay in interface org.apache.directory.api.ldap.extras.extended.gracefulShutdown.GracefulShutdownRequestpublic void setDelay(int delay)
setDelay in interface org.apache.directory.api.ldap.extras.extended.gracefulShutdown.GracefulShutdownRequestpublic int getTimeOffline()
getTimeOffline in interface org.apache.directory.api.ldap.extras.extended.gracefulShutdown.GracefulShutdownRequestpublic void setTimeOffline(int timeOffline)
setTimeOffline in interface org.apache.directory.api.ldap.extras.extended.gracefulShutdown.GracefulShutdownRequestint computeLengthInternal()
0x30 L1 | +--> [0x02 0x0(1-4) [0..720] ] +--> [0x80 0x0(1-3) [0..86400] ]L1 will always be < 11.
ByteBuffer encodeInternal() throws org.apache.directory.api.asn1.EncoderException
org.apache.directory.api.asn1.EncoderException - If anything goes wrong.public String toString()
toString in class org.apache.directory.api.ldap.codec.api.MessageDecorator<org.apache.directory.api.ldap.extras.extended.gracefulShutdown.GracefulShutdownRequest>Copyright © 2003–2018 The Apache Software Foundation. All rights reserved.