public class RemoteJMXBrokerFacade extends BrokerFacadeSupport
BrokerFacade
which uses a JMX-Connection to communicate with a
brokerConstructor and Description |
---|
RemoteJMXBrokerFacade() |
Modifier and Type | Method and Description |
---|---|
protected void |
closeConnection() |
protected javax.management.remote.JMXConnector |
createConnection() |
protected java.util.Set<javax.management.ObjectName> |
findBrokers(javax.management.MBeanServerConnection connection)
Finds all ActiveMQ-Brokers registered on a certain JMX-Server or, if a
JMX-BrokerName has been set, the broker with that name.
|
BrokerViewMBean |
getBrokerAdmin()
Admin view of the broker.
|
java.lang.String |
getBrokerName()
The name of the active broker (f.e.
|
WebConsoleConfiguration |
getConfiguration() |
protected <T> java.util.Collection<T> |
getManagedObjects(javax.management.ObjectName[] names,
java.lang.Class<T> type) |
ManagementContext |
getManagementContext() |
protected javax.management.MBeanServerConnection |
getMBeanServerConnection() |
protected boolean |
isConnectionActive(javax.management.remote.JMXConnector connector) |
java.lang.Object |
newProxyInstance(javax.management.ObjectName objectName,
java.lang.Class interfaceClass,
boolean notificationBroadcaster) |
void |
purgeQueue(ActiveMQDestination destination)
Purges the given destination
|
java.util.Set |
queryNames(javax.management.ObjectName name,
javax.management.QueryExp query) |
void |
setBrokerName(java.lang.String brokerName) |
void |
setConfiguration(WebConsoleConfiguration configuration) |
void |
shutdown()
Shutdown this facade aka close any open connection.
|
getConnection, getConnections, getConnections, getConnector, getConnectors, getConsumersOnConnection, getDestinationByName, getDurableTopicSubscribers, getInactiveDurableTopicSubscribers, getJobScheduler, getNetworkBridges, getNetworkConnectors, getNonDurableTopicSubscribers, getQueue, getQueueConsumers, getQueueProducers, getQueues, getScheduledJobs, getTopic, getTopicProducers, getTopics, getTopicSubscribers, isJobSchedulerStarted
public void setBrokerName(java.lang.String brokerName)
public WebConsoleConfiguration getConfiguration()
public void setConfiguration(WebConsoleConfiguration configuration)
public void shutdown()
public BrokerViewMBean getBrokerAdmin() throws java.lang.Exception
BrokerFacade
null
java.lang.Exception
public java.lang.String getBrokerName() throws java.lang.Exception, javax.management.MalformedObjectNameException
BrokerFacade
null
java.lang.Exception
javax.management.MalformedObjectNameException
protected javax.management.MBeanServerConnection getMBeanServerConnection() throws java.lang.Exception
java.lang.Exception
protected boolean isConnectionActive(javax.management.remote.JMXConnector connector)
protected javax.management.remote.JMXConnector createConnection()
protected void closeConnection()
protected java.util.Set<javax.management.ObjectName> findBrokers(javax.management.MBeanServerConnection connection) throws java.io.IOException, javax.management.MalformedObjectNameException
connection
- not null
java.io.IOException
javax.management.MalformedObjectNameException
public void purgeQueue(ActiveMQDestination destination) throws java.lang.Exception
BrokerFacade
java.lang.Exception
public ManagementContext getManagementContext()
getManagementContext
in class BrokerFacadeSupport
protected <T> java.util.Collection<T> getManagedObjects(javax.management.ObjectName[] names, java.lang.Class<T> type)
getManagedObjects
in class BrokerFacadeSupport
public java.util.Set queryNames(javax.management.ObjectName name, javax.management.QueryExp query) throws java.lang.Exception
queryNames
in class BrokerFacadeSupport
java.lang.Exception
public java.lang.Object newProxyInstance(javax.management.ObjectName objectName, java.lang.Class interfaceClass, boolean notificationBroadcaster) throws java.lang.Exception
newProxyInstance
in class BrokerFacadeSupport
java.lang.Exception
Copyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.