|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.ldap.handlers.extended.GracefulShutdownHandler
public class GracefulShutdownHandler
| Field Summary | |
|---|---|
static java.util.Set<java.lang.String> |
EXTENSION_OIDS
|
| Constructor Summary | |
|---|---|
GracefulShutdownHandler()
|
|
| Method Summary | |
|---|---|
java.util.Set<java.lang.String> |
getExtensionOids()
The OIDs of the extensions supported by this handler. |
static org.apache.directory.shared.ldap.message.extended.GracefulDisconnect |
getGracefulDisconnect(int timeOffline,
int delay)
|
java.lang.String |
getOid()
Returns the EXTENSION_OID of the extended request this handler can handle. |
void |
handleExtendedOperation(LdapSession requestor,
org.apache.directory.shared.ldap.message.ExtendedRequest req)
Handles the specified extended operation. |
static void |
sendGracefulDisconnect(java.util.List<org.apache.mina.common.IoSession> sessions,
org.apache.directory.shared.ldap.message.extended.GracefulDisconnect msg,
org.apache.mina.common.IoSession requestor)
Blocks to synchronously send the same GracefulDisconnect message to all managed sessions except for the requestor of the GracefulShutdown. |
static void |
sendNoticeOfDisconnect(java.util.List<org.apache.mina.common.IoSession> sessions,
org.apache.mina.common.IoSession requestor)
Blocks to synchronously send the a NoticeOfDisconnect message with the resultCode set to unavailable(52) to all managed sessions except for the requestor of the GracefulShutdown. |
static void |
sendShutdownResponse(org.apache.mina.common.IoSession requestor,
int messageId)
Sends a successful response. |
void |
setLdapServer(LdapService ldapService)
Sets the LDAP server for this extendedOperation handler. |
static void |
waitForDelay(int delay)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.util.Set<java.lang.String> EXTENSION_OIDS
| Constructor Detail |
|---|
public GracefulShutdownHandler()
| Method Detail |
|---|
public java.lang.String getOid()
ExtendedOperationHandler
getOid in interface ExtendedOperationHandler
public void handleExtendedOperation(LdapSession requestor,
org.apache.directory.shared.ldap.message.ExtendedRequest req)
throws java.lang.Exception
ExtendedOperationHandler
handleExtendedOperation in interface ExtendedOperationHandlerrequestor - the session object related with current connectionreq - the LDAP Extended operation request
java.lang.Exception - if failed to handle the operation
public static void sendShutdownResponse(org.apache.mina.common.IoSession requestor,
int messageId)
requestor - the session of the requestormessageId - the message id associaed with this shutdown request
public static void sendGracefulDisconnect(java.util.List<org.apache.mina.common.IoSession> sessions,
org.apache.directory.shared.ldap.message.extended.GracefulDisconnect msg,
org.apache.mina.common.IoSession requestor)
msg - the graceful disconnec extended request to sendrequestor - the session of the graceful shutdown requestorsessions - the IoSessions to send disconnect message to
public static void sendNoticeOfDisconnect(java.util.List<org.apache.mina.common.IoSession> sessions,
org.apache.mina.common.IoSession requestor)
requestor - the session of the graceful shutdown requestorsessions - the sessions from mina
public static org.apache.directory.shared.ldap.message.extended.GracefulDisconnect getGracefulDisconnect(int timeOffline,
int delay)
public static void waitForDelay(int delay)
public java.util.Set<java.lang.String> getExtensionOids()
ExtendedOperationHandler
getExtensionOids in interface ExtendedOperationHandlerpublic void setLdapServer(LdapService ldapService)
ExtendedOperationHandler
setLdapServer in interface ExtendedOperationHandlerldapService - the ldap protocol server
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||