public class Shutdown extends DefaultManagedObject implements ShutdownMBean
TYPEDOMAIN| Constructor and Description |
|---|
Shutdown(ManagedObjectRegistry registry,
Broker broker) |
| Modifier and Type | Method and Description |
|---|---|
String |
getObjectInstanceName() |
ManagedObject |
getParentObject() |
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.
|
getHierarchicalName, getHierarchicalType, getManagementInterface, getMBeanInfo, getNotificationInfo, getObjectName, getObjectNameForSingleInstanceMBean, getRegistry, getType, register, toString, unregistercacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementationpublic Shutdown(ManagedObjectRegistry registry, Broker broker) throws JMException
JMExceptionpublic void shutdown()
ShutdownMBeanshutdown in interface ShutdownMBeanShutdownMBean.shutdown()public void shutdown(long delay)
ShutdownMBeanshutdown in interface ShutdownMBeandelay - the number of ms to waitShutdownMBean.shutdown(long)public void shutdownAt(String when)
ShutdownMBeanshutdownAt in interface ShutdownMBeanwhen - the date and time to shutdownShutdownMBean.shutdownAt(String)public ManagedObject getParentObject()
getParentObject in interface ManagedObjectgetParentObject in class DefaultManagedObjectpublic String getObjectInstanceName()
getObjectInstanceName in interface ManagedObjectManagedObject.getObjectInstanceName()Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.