public class Shutdown extends DefaultManagedObject implements ShutdownMBean
TYPE
DOMAIN
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, unregister
cacheMBeanInfo, 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, setImplementation
public Shutdown(ManagedObjectRegistry registry, Broker broker) throws JMException
JMException
public void shutdown()
ShutdownMBean
shutdown
in interface ShutdownMBean
ShutdownMBean.shutdown()
public void shutdown(long delay)
ShutdownMBean
shutdown
in interface ShutdownMBean
delay
- the number of ms to waitShutdownMBean.shutdown(long)
public void shutdownAt(String when)
ShutdownMBean
shutdownAt
in interface ShutdownMBean
when
- the date and time to shutdownShutdownMBean.shutdownAt(String)
public ManagedObject getParentObject()
getParentObject
in interface ManagedObject
getParentObject
in class DefaultManagedObject
public String getObjectInstanceName()
getObjectInstanceName
in interface ManagedObject
ManagedObject.getObjectInstanceName()
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.