|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.ldap.model.message.AbstractMessage
org.apache.directory.shared.ldap.model.message.AbstractRequest
org.apache.directory.shared.ldap.model.message.ExtendedRequestImpl
org.apache.directory.shared.ldap.extras.extended.GracefulShutdownRequest
public class GracefulShutdownRequest
An extended operation requesting the server to shutdown it's LDAP service port while allowing established clients to complete or abandon operations already in progress. More information about this extended request is available here: LDAP Extensions for Graceful Shutdown.
| Field Summary | |
|---|---|
static String |
EXTENSION_OID
The OID for the graceful shutdown extended operation request. |
static int |
NOW
The shutdown is immediate |
static int |
UNDETERMINED
Undetermined value used for offline time |
| Fields inherited from class org.apache.directory.shared.ldap.model.message.ExtendedRequestImpl |
|---|
requestValue, response |
| Fields inherited from class org.apache.directory.shared.ldap.model.message.AbstractMessage |
|---|
controls |
| Fields inherited from interface org.apache.directory.shared.ldap.model.message.ExtendedRequest |
|---|
RESP_TYPE, TYPE |
| Constructor Summary | |
|---|---|
GracefulShutdownRequest(int messageId)
Instantiates a new graceful shutdown request. |
|
GracefulShutdownRequest(int messageId,
int timeOffline,
int delay)
Instantiates a new graceful shutdown request. |
|
| Method Summary | |
|---|---|
ExtendedResponse |
createExtendedResponse(String id,
byte[] berValue,
int offset,
int length)
|
int |
getDelay()
Gets the delay before disconnection, in seconds. |
byte[] |
getRequestValue()
|
ResultResponse |
getResultResponse()
|
int |
getTimeOffline()
Gets the offline time after disconnection, in minutes. |
void |
setDelay(int delay)
Sets the delay befor disconnection, in seconds. |
void |
setRequestValue(byte[] requestValue)
|
void |
setTimeOffline(int timeOffline)
Sets the time offline after disconnection, in minutes. |
| Methods inherited from class org.apache.directory.shared.ldap.model.message.ExtendedRequestImpl |
|---|
equals, getRequestName, getResponseType, hashCode, setRequestName, toString |
| Methods inherited from class org.apache.directory.shared.ldap.model.message.AbstractRequest |
|---|
hasResponse |
| Methods inherited from class org.apache.directory.shared.ldap.model.message.AbstractMessage |
|---|
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.directory.shared.ldap.model.message.Request |
|---|
hasResponse |
| Methods inherited from interface org.apache.directory.shared.ldap.model.message.Message |
|---|
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId |
| Field Detail |
|---|
public static final String EXTENSION_OID
public static final int UNDETERMINED
public static final int NOW
| Constructor Detail |
|---|
public GracefulShutdownRequest(int messageId)
messageId - the message id
public GracefulShutdownRequest(int messageId,
int timeOffline,
int delay)
messageId - the message idtimeOffline - the offline time after disconnection, in minutesdelay - the delay before disconnection, in seconds| Method Detail |
|---|
public void setRequestValue(byte[] requestValue)
setRequestValue in interface ExtendedRequestsetRequestValue in class ExtendedRequestImpl
public ExtendedResponse createExtendedResponse(String id,
byte[] berValue,
int offset,
int length)
throws NamingException
createExtendedResponse in class ExtendedRequestImplNamingExceptionpublic byte[] getRequestValue()
getRequestValue in interface ExtendedRequestgetRequestValue in class ExtendedRequestImplpublic ResultResponse getResultResponse()
getResultResponse in interface ResultResponseRequestgetResultResponse in class ExtendedRequestImplpublic int getDelay()
public void setDelay(int delay)
delay - the new delay before disconnectionpublic int getTimeOffline()
public void setTimeOffline(int timeOffline)
timeOffline - the new time offline after disconnection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||