public class GracefulShutdownRequest extends ExtendedRequestImpl
| Modifier and Type | Field and Description |
|---|---|
static String |
EXTENSION_OID |
static int |
NOW
The shutdown is immediate
|
static int |
UNDETERMINED
Undetermined value used for timeOffline
|
payload, responseRESP_TYPE, TYPE| Constructor and Description |
|---|
GracefulShutdownRequest(int messageId) |
GracefulShutdownRequest(int messageId,
int timeOffline,
int delay) |
| Modifier and Type | Method and Description |
|---|---|
ExtendedResponse |
createExtendedResponse(String id,
byte[] berValue,
int offset,
int length) |
int |
getDelay() |
byte[] |
getEncodedValue() |
byte[] |
getPayload()
Gets the extended request's requestValue portion of the PDU.
|
InternalResultResponse |
getResultResponse()
The result containing response for this request.
|
int |
getTimeOffline() |
void |
setDelay(int delay) |
void |
setPayload(byte[] payload)
Sets the extended request's requestValue portion of the PDU.
|
void |
setTimeOffline(int timeOffline) |
equals, getID, getOid, getResponseType, setOid, toStringhashCode, hasResponseadd, addAll, get, getControls, getMessageId, getType, hasControl, put, removeclone, finalize, getClass, notify, notifyAll, wait, wait, waithasResponseadd, addAll, get, getControls, getMessageId, getType, hasControl, put, removepublic static final String EXTENSION_OID
public static final int UNDETERMINED
public static final int NOW
public GracefulShutdownRequest(int messageId)
public GracefulShutdownRequest(int messageId,
int timeOffline,
int delay)
public void setPayload(byte[] payload)
ExtendedRequestImplsetPayload in interface InternalExtendedRequestsetPayload in class ExtendedRequestImplpayload - byte array of data encapsulating ext. req. parameterspublic ExtendedResponse createExtendedResponse(String id, byte[] berValue, int offset, int length) throws NamingException
createExtendedResponse in interface ExtendedRequestcreateExtendedResponse in class ExtendedRequestImplNamingExceptionpublic byte[] getEncodedValue()
getEncodedValue in interface ExtendedRequestgetEncodedValue in class ExtendedRequestImplpublic byte[] getPayload()
ExtendedRequestImplgetPayload in interface InternalExtendedRequestgetPayload in class ExtendedRequestImplpublic InternalResultResponse getResultResponse()
ExtendedRequestImplgetResultResponse in interface InternalResultResponseRequestgetResultResponse in class ExtendedRequestImplpublic int getDelay()
public void setDelay(int delay)
public int getTimeOffline()
public void setTimeOffline(int timeOffline)
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.