|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.ldap.support.extended.GracefulShutdownHandler
public class GracefulShutdownHandler
Field Summary | |
---|---|
static java.util.Set |
EXTENSION_OIDS
|
Constructor Summary | |
---|---|
GracefulShutdownHandler()
|
Method Summary | |
---|---|
java.util.Set |
getExtensionOids()
The OIDs of the extensions supported by this handler. |
static GracefulDisconnect |
getGracefulDisconnect(int timeOffline,
int delay,
PartitionNexus nexus)
|
java.lang.String |
getOid()
Returns the EXTENSION_OID of the extended request this handler can handle. |
void |
handleExtendedOperation(IoSession requestor,
SessionRegistry registry,
ExtendedRequest req)
Handles the specified extended operation. |
static void |
sendGracefulDisconnect(java.util.List sessions,
GracefulDisconnect msg,
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 sessions,
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(IoSession requestor,
int messageId)
Sends a successful response. |
void |
setLdapProvider(LdapProtocolProvider provider)
Sets the LDAP provider 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 EXTENSION_OIDS
Constructor Detail |
---|
public GracefulShutdownHandler()
Method Detail |
---|
public java.lang.String getOid()
ExtendedOperationHandler
getOid
in interface ExtendedOperationHandler
public void handleExtendedOperation(IoSession requestor, SessionRegistry registry, ExtendedRequest req) throws javax.naming.NamingException
ExtendedOperationHandler
handleExtendedOperation
in interface ExtendedOperationHandler
requestor
- the MINA session object related with current connectionreq
- the LDAP Extended operation request
javax.naming.NamingException
public static void sendShutdownResponse(IoSession requestor, int messageId)
requestor
- messageId
- public static void sendGracefulDisconnect(java.util.List sessions, GracefulDisconnect msg, IoSession requestor)
msg
- the graceful disconnec extended request to sendrequestor
- the session of the graceful shutdown requestorpublic static void sendNoticeOfDisconnect(java.util.List sessions, IoSession requestor)
requestor
- the session of the graceful shutdown requestorpublic static GracefulDisconnect getGracefulDisconnect(int timeOffline, int delay, PartitionNexus nexus)
public static void waitForDelay(int delay)
public java.util.Set getExtensionOids()
ExtendedOperationHandler
getExtensionOids
in interface ExtendedOperationHandler
public void setLdapProvider(LdapProtocolProvider provider)
ExtendedOperationHandler
setLdapProvider
in interface ExtendedOperationHandler
provider
- the ldap protocol provider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |