org.apache.directory.server.tools
Class DisconnectNotificationCommand

java.lang.Object
  extended by org.apache.directory.server.tools.ToolCommand
      extended by 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

Constructor Summary
protected DisconnectNotificationCommand()
           
 
Method Summary
 void execute(org.apache.commons.cli.CommandLine cmd)
           
 org.apache.commons.cli.Options getOptions()
           
 void namingExceptionThrown(javax.naming.event.NamingExceptionEvent evt)
           
 void notificationReceived(javax.naming.ldap.UnsolicitedNotificationEvent evt)
           
 
Methods inherited from class org.apache.directory.server.tools.ToolCommand
getConfiguration, getLayout, getName, getVersion, isDebugEnabled, isQuietEnabled, isVerboseEnabled, setConfiguration, 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
 

Constructor Detail

DisconnectNotificationCommand

protected DisconnectNotificationCommand()
Method Detail

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.