org.shiftone.jrat.core.shutdown
Class ShutdownRegistry

java.lang.Object
  extended by org.shiftone.jrat.core.shutdown.ShutdownRegistry
All Implemented Interfaces:
ShutdownRegistryMBean

public class ShutdownRegistry
extends java.lang.Object
implements ShutdownRegistryMBean

Shut down order is important!

Author:
jeff@shiftone.org (Jeff Drost)

http://java.sun.com/developer/JDCTechTips/2006/tt0211.html#1


Constructor Summary
ShutdownRegistry()
           
 
Method Summary
 void forceShutdownNow()
           
 int getShutdownListenerCount()
           
 java.lang.String getShutdownListenersHtml()
           
 void registerShutdownListener(ShutdownListener shutdownListener)
           
 void setFirstShutdownListener(ShutdownListener firstShutdownListener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShutdownRegistry

public ShutdownRegistry()
Method Detail

setFirstShutdownListener

public void setFirstShutdownListener(ShutdownListener firstShutdownListener)

registerShutdownListener

public void registerShutdownListener(ShutdownListener shutdownListener)

getShutdownListenerCount

public int getShutdownListenerCount()
Specified by:
getShutdownListenerCount in interface ShutdownRegistryMBean

getShutdownListenersHtml

public java.lang.String getShutdownListenersHtml()
Specified by:
getShutdownListenersHtml in interface ShutdownRegistryMBean

forceShutdownNow

public void forceShutdownNow()
Specified by:
forceShutdownNow in interface ShutdownRegistryMBean