org.apache.qpid.shutdown
Class Shutdown

java.lang.Object
  extended by org.apache.qpid.shutdown.Shutdown
All Implemented Interfaces:
ShutdownMBean

public class Shutdown
extends Object
implements ShutdownMBean

Implementation of the JMX broker shutdown plugin.


Nested Class Summary
(package private)  class Shutdown.SystemExiter
          Shutting down the system in another thread to avoid JMX exceptions being thrown.
 
Constructor Summary
Shutdown()
           
 
Method Summary
 void shutdown()
          Broker will be shut down immediately.
 void shutdown(long delay)
          Broker will be shutdown after the specified delay
 void shutdownAt(String when)
          Broker will be shutdown at the specified date and time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Shutdown

public Shutdown()
Method Detail

shutdown

public void shutdown()
Description copied from interface: ShutdownMBean
Broker will be shut down immediately.

Specified by:
shutdown in interface ShutdownMBean
See Also:
ShutdownMBean.shutdown()

shutdown

public void shutdown(long delay)
Description copied from interface: ShutdownMBean
Broker will be shutdown after the specified delay

Specified by:
shutdown in interface ShutdownMBean
Parameters:
delay - the number of ms to wait
See Also:
ShutdownMBean.shutdown(long)

shutdownAt

public void shutdownAt(String when)
Description copied from interface: ShutdownMBean
Broker will be shutdown at the specified date and time.

Specified by:
shutdownAt in interface ShutdownMBean
Parameters:
when - the date and time to shutdown
See Also:
ShutdownMBean.shutdownAt(String)


Licensed to the Apache Software Foundation