|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.StandardMBean
org.apache.qpid.server.management.DefaultManagedObject
org.apache.qpid.server.management.AMQManagedObject
org.apache.qpid.server.AMQBrokerManagerMBean
public class AMQBrokerManagerMBean
This MBean implements the broker management interface and exposes the Broker level management features like creating and deleting exchanges and queue.
Field Summary |
---|
Fields inherited from class org.apache.qpid.server.management.AMQManagedObject |
---|
_broadcaster, _logActor, _mbeanInfo, _notificationSequenceNumber |
Fields inherited from interface org.apache.qpid.management.common.mbeans.ManagedBroker |
---|
TYPE |
Fields inherited from interface org.apache.qpid.server.management.ManagedObject |
---|
DOMAIN |
Constructor Summary | |
---|---|
AMQBrokerManagerMBean(VirtualHostImpl.VirtualHostMBean virtualHostMBean)
|
Method Summary | |
---|---|
void |
createNewExchange(String exchangeName,
String type,
boolean durable)
Creates new exchange and registers it with the registry. |
void |
createNewQueue(String queueName,
String owner,
boolean durable)
Creates a new queue and registers it with the registry and puts it in persistance storage if durable queue. |
void |
deleteQueue(String queueName)
Deletes the queue from queue registry and persistant storage. |
String[] |
getExchangeTypes()
Returns an array of the exchange types available for creation. |
String |
getObjectInstanceName()
|
ObjectName |
getObjectName()
Created the ObjectName as per the JMX Specs |
ManagedObject |
getParentObject()
|
List<String> |
retrieveQueueAttributeNames()
Returns a list containing the names of the attributes available for the Queue mbeans. |
List<List<Object>> |
retrieveQueueAttributeValues(String[] attributes)
Returns a List of Object Lists containing the requested attribute values (in the same sequence requested) for each queue in the virtualhost. |
void |
unregisterExchange(String exchangeName)
Unregisters the exchange from registry. |
Methods inherited from class org.apache.qpid.server.management.AMQManagedObject |
---|
addNotificationListener, getMBeanInfo, getNotificationInfo, removeNotificationListener |
Methods inherited from class org.apache.qpid.server.management.DefaultManagedObject |
---|
getHierarchicalName, getHierarchicalType, getManagedObjectRegistry, getManagementInterface, getObjectNameForSingleInstanceMBean, getType, jmxEncode, register, toString, unregister |
Methods inherited from class javax.management.StandardMBean |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AMQBrokerManagerMBean(VirtualHostImpl.VirtualHostMBean virtualHostMBean) throws JMException
JMException
Method Detail |
---|
public String getObjectInstanceName()
getObjectInstanceName
in interface ManagedObject
public String[] getExchangeTypes() throws IOException
getExchangeTypes
in interface org.apache.qpid.management.common.mbeans.ManagedBroker
IOException
public List<String> retrieveQueueAttributeNames() throws IOException
retrieveQueueAttributeNames
in interface org.apache.qpid.management.common.mbeans.ManagedBroker
IOException
public List<List<Object>> retrieveQueueAttributeValues(String[] attributes) throws IOException
retrieveQueueAttributeValues
in interface org.apache.qpid.management.common.mbeans.ManagedBroker
IOException
public void createNewExchange(String exchangeName, String type, boolean durable) throws JMException, MBeanException
createNewExchange
in interface org.apache.qpid.management.common.mbeans.ManagedBroker
exchangeName
- type
- durable
-
JMException
MBeanException
public void unregisterExchange(String exchangeName) throws JMException, MBeanException
unregisterExchange
in interface org.apache.qpid.management.common.mbeans.ManagedBroker
exchangeName
-
JMException
MBeanException
public void createNewQueue(String queueName, String owner, boolean durable) throws JMException, MBeanException
createNewQueue
in interface org.apache.qpid.management.common.mbeans.ManagedBroker
queueName
- durable
- owner
-
JMException
MBeanException
public void deleteQueue(String queueName) throws JMException, MBeanException
deleteQueue
in interface org.apache.qpid.management.common.mbeans.ManagedBroker
queueName
-
JMException
MBeanException
public ManagedObject getParentObject()
getParentObject
in interface ManagedObject
getParentObject
in class DefaultManagedObject
public ObjectName getObjectName() throws MalformedObjectNameException
DefaultManagedObject
getObjectName
in interface ManagedObject
getObjectName
in class DefaultManagedObject
MalformedObjectNameException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |