org.apache.directory.server.tools
Class DisconnectNotificationCommand
java.lang.Object
org.apache.directory.server.tools.ToolCommand
org.apache.directory.server.tools.DisconnectNotificationCommand
- All Implemented Interfaces:
- java.util.EventListener, javax.naming.event.NamingListener, javax.naming.ldap.UnsolicitedNotificationListener
public class DisconnectNotificationCommand
- extends ToolCommand
- implements javax.naming.ldap.UnsolicitedNotificationListener
Responds to unsolicited notifications by launching an external process. Also
reconnects to the server an launches another process to notify that the server
is back up.
- Version:
- $Rev: 434420 $
- Author:
- Apache Directory Project
Methods inherited from class org.apache.directory.server.tools.ToolCommand |
getApacheDS, getLayout, getName, getVersion, isDebugEnabled, isQuietEnabled, isVerboseEnabled, setApacheDS, setDebugEnabled, setLayout, setLayout, setLayout, setQuietEnabled, setVerboseEnabled, setVersion, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DisconnectNotificationCommand
protected DisconnectNotificationCommand()
notificationReceived
public void notificationReceived(javax.naming.ldap.UnsolicitedNotificationEvent evt)
- Specified by:
notificationReceived
in interface javax.naming.ldap.UnsolicitedNotificationListener
namingExceptionThrown
public void namingExceptionThrown(javax.naming.event.NamingExceptionEvent evt)
- Specified by:
namingExceptionThrown
in interface javax.naming.event.NamingListener
execute
public void execute(org.apache.commons.cli.CommandLine cmd)
throws java.lang.Exception
- Specified by:
execute
in class ToolCommand
- Throws:
java.lang.Exception
getOptions
public org.apache.commons.cli.Options getOptions()
- Specified by:
getOptions
in class ToolCommand
Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.