public class RemoteJMXBrokerFacade extends BrokerFacadeSupport
BrokerFacade which uses a JMX-Connection to communicate with a
broker| Constructor 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, getQueue, getQueueConsumers, getQueues, getScheduledJobs, getTopic, getTopics, isJobSchedulerStartedpublic void setBrokerName(java.lang.String brokerName)
public WebConsoleConfiguration getConfiguration()
public void setConfiguration(WebConsoleConfiguration configuration)
public void shutdown()
public BrokerViewMBean getBrokerAdmin() throws java.lang.Exception
BrokerFacadenulljava.lang.Exceptionpublic java.lang.String getBrokerName()
throws java.lang.Exception,
javax.management.MalformedObjectNameException
BrokerFacadenulljava.lang.Exceptionjavax.management.MalformedObjectNameExceptionprotected javax.management.MBeanServerConnection getMBeanServerConnection()
throws java.lang.Exception
java.lang.Exceptionprotected 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 nulljava.io.IOExceptionjavax.management.MalformedObjectNameExceptionpublic void purgeQueue(ActiveMQDestination destination) throws java.lang.Exception
BrokerFacadejava.lang.Exceptionpublic ManagementContext getManagementContext()
getManagementContext in class BrokerFacadeSupportprotected <T> java.util.Collection<T> getManagedObjects(javax.management.ObjectName[] names,
java.lang.Class<T> type)
getManagedObjects in class BrokerFacadeSupportpublic java.util.Set queryNames(javax.management.ObjectName name,
javax.management.QueryExp query)
throws java.lang.Exception
queryNames in class BrokerFacadeSupportjava.lang.Exceptionpublic java.lang.Object newProxyInstance(javax.management.ObjectName objectName,
java.lang.Class interfaceClass,
boolean notificationBroadcaster)
throws java.lang.Exception
newProxyInstance in class BrokerFacadeSupportjava.lang.ExceptionCopyright © 2005-2013 Red Hat, Inc.. All Rights Reserved.