|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.web.BrokerFacadeSupport
org.apache.activemq.web.RemoteJMXBrokerFacade
public class RemoteJMXBrokerFacade
A BrokerFacade
which uses a JMX-Connection to communicate with a
broker
Constructor Summary | |
---|---|
RemoteJMXBrokerFacade()
|
Method Summary | ||
---|---|---|
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
|
getManagedObjects(ObjectName[] names,
Class<T> type)
|
|
ManagementContext |
getManagementContext()
|
|
protected MBeanServerConnection |
getMBeanServerConnection()
|
|
protected boolean |
isConnectionActive(JMXConnector connector)
|
|
void |
purgeQueue(ActiveMQDestination destination)
Purges the given destination |
|
void |
setBrokerName(String brokerName)
|
|
void |
setConfiguration(WebConsoleConfiguration configuration)
|
|
void |
shutdown()
Shutdown this facade aka close any open connection. |
Methods inherited from class org.apache.activemq.web.BrokerFacadeSupport |
---|
getConnection, getConnections, getConnections, getConnector, getConnectors, getConsumersOnConnection, getDestinationByName, getDurableTopicSubscribers, getNetworkConnectors, getQueue, getQueueConsumers, getQueues, getTopic, getTopics |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemoteJMXBrokerFacade()
Method Detail |
---|
public void setBrokerName(String brokerName)
public WebConsoleConfiguration getConfiguration()
public void setConfiguration(WebConsoleConfiguration configuration)
public void shutdown()
public BrokerViewMBean getBrokerAdmin() throws Exception
BrokerFacade
null
Exception
public String getBrokerName() throws Exception, MalformedObjectNameException
BrokerFacade
null
Exception
MalformedObjectNameException
protected MBeanServerConnection getMBeanServerConnection() throws Exception
Exception
protected boolean isConnectionActive(JMXConnector connector)
protected JMXConnector createConnection()
protected void closeConnection()
protected Set<ObjectName> findBrokers(MBeanServerConnection connection) throws IOException, MalformedObjectNameException
connection
- not null
IOException
MalformedObjectNameException
public void purgeQueue(ActiveMQDestination destination) throws Exception
BrokerFacade
Exception
public ManagementContext getManagementContext()
getManagementContext
in class BrokerFacadeSupport
protected <T> Collection<T> getManagedObjects(ObjectName[] names, Class<T> type)
getManagedObjects
in class BrokerFacadeSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |