org.apache.activemq.web
Class RemoteJMXBrokerFacade
java.lang.Object
org.apache.activemq.web.BrokerFacadeSupport
org.apache.activemq.web.RemoteJMXBrokerFacade
- All Implemented Interfaces:
- BrokerFacade
public class RemoteJMXBrokerFacade
- extends BrokerFacadeSupport
A BrokerFacade which uses a JMX-Connection to communicate with a
broker
- Version:
- $Revision: 1.1 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteJMXBrokerFacade
public RemoteJMXBrokerFacade()
setBrokerName
public void setBrokerName(String brokerName)
setJmxUrl
public void setJmxUrl(String url)
setJmxRole
public void setJmxRole(String role)
setJmxPassword
public void setJmxPassword(String password)
shutdown
public void shutdown()
- Shutdown this facade aka close any open connection.
getBrokerAdmin
public BrokerViewMBean getBrokerAdmin()
throws Exception
- Throws:
Exception
getConnection
protected MBeanServerConnection getConnection()
throws IOException
- Throws:
IOException
isConnectionActive
protected boolean isConnectionActive(JMXConnector connector)
createConnection
protected JMXConnector createConnection()
closeConnection
protected void closeConnection()
findBrokers
protected Set findBrokers(MBeanServerConnection connection)
throws IOException,
MalformedObjectNameException
- Finds all ActiveMQ-Brokers registered on a certain JMX-Server or, if a
JMX-BrokerName has been set, the broker with that name.
- Parameters:
connection - not null
- Returns:
- Set with ObjectName-elements
- Throws:
IOException
MalformedObjectNameException
purgeQueue
public void purgeQueue(ActiveMQDestination destination)
throws Exception
- Description copied from interface:
BrokerFacade
- Purges the given destination
- Throws:
Exception
getManagementContext
public ManagementContext getManagementContext()
- Specified by:
getManagementContext in class BrokerFacadeSupport
getManagedObjects
protected Collection getManagedObjects(ObjectName[] names,
Class type)
- Overrides:
getManagedObjects in class BrokerFacadeSupport
Copyright © 2008 The Apache Software Foundation. All Rights Reserved.