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 JMXConnector |
createConnection() |
protected Set<ObjectName> |
findBrokers(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.
|
String |
getBrokerName()
The name of the active broker (f.e.
|
WebConsoleConfiguration |
getConfiguration() |
protected <T> Collection<T> |
getManagedObjects(ObjectName[] names,
Class<T> type) |
ManagementContext |
getManagementContext() |
protected MBeanServerConnection |
getMBeanServerConnection() |
protected boolean |
isConnectionActive(JMXConnector connector) |
Object |
newProxyInstance(ObjectName objectName,
Class interfaceClass,
boolean notificationBroadcaster) |
void |
purgeQueue(ActiveMQDestination destination)
Purges the given destination
|
Set |
queryNames(ObjectName name,
QueryExp query) |
void |
setBrokerName(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, isJobSchedulerStartedpublic RemoteJMXBrokerFacade()
public void setBrokerName(String brokerName)
public WebConsoleConfiguration getConfiguration()
public void setConfiguration(WebConsoleConfiguration configuration)
public void shutdown()
public BrokerViewMBean getBrokerAdmin() throws Exception
BrokerFacadenullExceptionpublic String getBrokerName() throws Exception, MalformedObjectNameException
BrokerFacadenullExceptionMalformedObjectNameExceptionprotected MBeanServerConnection getMBeanServerConnection() throws Exception
Exceptionprotected boolean isConnectionActive(JMXConnector connector)
protected JMXConnector createConnection()
protected void closeConnection()
protected Set<ObjectName> findBrokers(MBeanServerConnection connection) throws IOException, MalformedObjectNameException
connection - not nullIOExceptionMalformedObjectNameExceptionpublic void purgeQueue(ActiveMQDestination destination) throws Exception
BrokerFacadeExceptionpublic ManagementContext getManagementContext()
getManagementContext in class BrokerFacadeSupportprotected <T> Collection<T> getManagedObjects(ObjectName[] names, Class<T> type)
getManagedObjects in class BrokerFacadeSupportpublic Set queryNames(ObjectName name, QueryExp query) throws Exception
queryNames in class BrokerFacadeSupportExceptionpublic Object newProxyInstance(ObjectName objectName, Class interfaceClass, boolean notificationBroadcaster) throws Exception
newProxyInstance in class BrokerFacadeSupportExceptionCopyright © 2005–2016 FuseSource, Corp.. All rights reserved.