|
||||||||||
| 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)
|
|
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. |
|
| Methods inherited from class org.apache.activemq.web.BrokerFacadeSupport |
|---|
getConnection, getConnections, getConnections, getConnector, getConnectors, getConsumersOnConnection, getDestinationByName, getDurableTopicSubscribers, getInactiveDurableTopicSubscribers, getJobScheduler, getNetworkBridges, getNetworkConnectors, getQueue, getQueueConsumers, getQueues, getScheduledJobs, getTopic, getTopics, isJobSchedulerStarted |
| 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
Exceptionprotected 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
Exceptionpublic ManagementContext getManagementContext()
getManagementContext in class BrokerFacadeSupport
protected <T> Collection<T> getManagedObjects(ObjectName[] names,
Class<T> type)
getManagedObjects in class BrokerFacadeSupport
public Set queryNames(ObjectName name,
QueryExp query)
throws Exception
queryNames in class BrokerFacadeSupportException
public Object newProxyInstance(ObjectName objectName,
Class interfaceClass,
boolean notificationBroadcaster)
throws Exception
newProxyInstance in class BrokerFacadeSupportException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||