|
||||||||||
| 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 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
|
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. |
|
| Methods inherited from class org.apache.activemq.web.BrokerFacadeSupport |
|---|
getConnection, getConnections, getConnections, getConnector, getConnectors, getConsumersOnConnection, getDestinationByName, getDurableTopicSubscribers, getInactiveDurableTopicSubscribers, getJobScheduler, getNetworkConnectors, getQueue, getQueueConsumers, getQueues, getScheduledJobs, 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(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.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 null
java.io.IOException
javax.management.MalformedObjectNameException
public void purgeQueue(ActiveMQDestination destination)
throws java.lang.Exception
BrokerFacade
java.lang.Exceptionpublic 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 BrokerFacadeSupportjava.lang.Exception
public java.lang.Object newProxyInstance(javax.management.ObjectName objectName,
java.lang.Class interfaceClass,
boolean notificationBroadcaster)
throws java.lang.Exception
newProxyInstance in class BrokerFacadeSupportjava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||