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, response
RESP_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, toString
hashCode, hasResponse
add, addAll, get, getControls, getMessageId, getType, hasControl, put, remove
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
hasResponse
add, addAll, get, getControls, getMessageId, getType, hasControl, put, remove
public 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)
ExtendedRequestImpl
setPayload
in interface InternalExtendedRequest
setPayload
in class ExtendedRequestImpl
payload
- byte array of data encapsulating ext. req. parameterspublic ExtendedResponse createExtendedResponse(String id, byte[] berValue, int offset, int length) throws NamingException
createExtendedResponse
in interface ExtendedRequest
createExtendedResponse
in class ExtendedRequestImpl
NamingException
public byte[] getEncodedValue()
getEncodedValue
in interface ExtendedRequest
getEncodedValue
in class ExtendedRequestImpl
public byte[] getPayload()
ExtendedRequestImpl
getPayload
in interface InternalExtendedRequest
getPayload
in class ExtendedRequestImpl
public InternalResultResponse getResultResponse()
ExtendedRequestImpl
getResultResponse
in interface InternalResultResponseRequest
getResultResponse
in class ExtendedRequestImpl
public int getDelay()
public void setDelay(int delay)
public int getTimeOffline()
public void setTimeOffline(int timeOffline)
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.