public class VirtualHostMBean extends AMQManagedObject implements ManagedVirtualHost, ConfigurationChangeListener, VirtualHostConnectionListener
TYPE, VERSION
DOMAIN
Constructor and Description |
---|
VirtualHostMBean(VirtualHost virtualHost,
ManagedObjectRegistry registry) |
Modifier and Type | Method and Description |
---|---|
void |
attributeSet(ConfiguredObject object,
String attributeName,
Object oldAttributeValue,
Object newAttributeValue) |
void |
bulkChangeEnd(ConfiguredObject<?> object)
Inform the listener that the changes announced by bulkChangeStart are complete.
|
void |
bulkChangeStart(ConfiguredObject<?> object)
Inform the listener that several attributes of an object are about to change.
|
void |
childAdded(ConfiguredObject object,
ConfiguredObject child) |
void |
childRemoved(ConfiguredObject object,
ConfiguredObject child) |
void |
connectionAssociated(Connection<?> connection) |
void |
connectionRemoved(Connection<?> connection) |
String |
getName()
Returns the name of the managed virtualHost.
|
String |
getObjectInstanceName() |
ManagedObject |
getParentObject() |
Collection<QueueMBean> |
getQueues() |
protected VirtualHost |
getVirtualHost() |
void |
stateChanged(ConfiguredObject object,
State oldState,
State newState)
Inform the listener that the passed object has changed state
|
void |
unregister() |
addNotificationListener, getBroadcaster, incrementAndGetSequenceNumber, removeNotificationListener
getHierarchicalName, getHierarchicalType, getManagementInterface, getMBeanInfo, getNotificationInfo, getObjectName, getObjectNameForSingleInstanceMBean, getRegistry, getType, register, toString
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getNotificationInfo
public VirtualHostMBean(VirtualHost virtualHost, ManagedObjectRegistry registry) throws JMException
JMException
public String getObjectInstanceName()
getObjectInstanceName
in interface ManagedObject
public String getName()
ManagedVirtualHost
getName
in interface ManagedVirtualHost
public void stateChanged(ConfiguredObject object, State oldState, State newState)
ConfigurationChangeListener
stateChanged
in interface ConfigurationChangeListener
object
- the object whose state has changedoldState
- the state prior to the changenewState
- the state after the changepublic void childAdded(ConfiguredObject object, ConfiguredObject child)
childAdded
in interface ConfigurationChangeListener
public void childRemoved(ConfiguredObject object, ConfiguredObject child)
childRemoved
in interface ConfigurationChangeListener
public ManagedObject getParentObject()
getParentObject
in interface ManagedObject
getParentObject
in class DefaultManagedObject
protected VirtualHost getVirtualHost()
public Collection<QueueMBean> getQueues()
public void unregister() throws JMException
unregister
in interface ManagedObject
unregister
in class DefaultManagedObject
JMException
public void attributeSet(ConfiguredObject object, String attributeName, Object oldAttributeValue, Object newAttributeValue)
attributeSet
in interface ConfigurationChangeListener
public void bulkChangeStart(ConfiguredObject<?> object)
ConfigurationChangeListener
bulkChangeStart
in interface ConfigurationChangeListener
object
- the object whose state is about to changeConfigurationChangeListener.bulkChangeEnd(org.apache.qpid.server.model.ConfiguredObject<?>)
public void bulkChangeEnd(ConfiguredObject<?> object)
ConfigurationChangeListener
bulkChangeEnd
in interface ConfigurationChangeListener
object
- the object whose state has changedConfigurationChangeListener.bulkChangeStart(org.apache.qpid.server.model.ConfiguredObject<?>)
public void connectionAssociated(Connection<?> connection)
connectionAssociated
in interface VirtualHostConnectionListener
public void connectionRemoved(Connection<?> connection)
connectionRemoved
in interface VirtualHostConnectionListener
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.