mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-4237 - new jmx and web console - network connectors and bridges
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1430323 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0aa697605e
commit
351a339b0d
|
@ -166,7 +166,7 @@ public abstract class BrokerFacadeSupport implements BrokerFacade {
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public Collection<NetworkConnectorViewMBean> getNetworkConnectors() throws Exception {
|
public Collection<NetworkConnectorViewMBean> getNetworkConnectors() throws Exception {
|
||||||
String brokerName = getBrokerName();
|
String brokerName = getBrokerName();
|
||||||
ObjectName query = new ObjectName("org.apache.activemq:BrokerName=" + brokerName + ",Type=NetworkConnector,*");
|
ObjectName query = new ObjectName("org.apache.activemq:type=Broker,brokerName=" + brokerName + ",connector=networkConnectors,networkConnectorName=*");
|
||||||
Set<ObjectName> queryResult = queryNames(query, null);
|
Set<ObjectName> queryResult = queryNames(query, null);
|
||||||
return getManagedObjects(queryResult.toArray(new ObjectName[queryResult.size()]),
|
return getManagedObjects(queryResult.toArray(new ObjectName[queryResult.size()]),
|
||||||
NetworkConnectorViewMBean.class);
|
NetworkConnectorViewMBean.class);
|
||||||
|
@ -174,7 +174,7 @@ public abstract class BrokerFacadeSupport implements BrokerFacade {
|
||||||
|
|
||||||
public Collection<NetworkBridgeViewMBean> getNetworkBridges() throws Exception {
|
public Collection<NetworkBridgeViewMBean> getNetworkBridges() throws Exception {
|
||||||
String brokerName = getBrokerName();
|
String brokerName = getBrokerName();
|
||||||
ObjectName query = new ObjectName("org.apache.activemq:BrokerName=" + brokerName + ",Type=NetworkBridge,*");
|
ObjectName query = new ObjectName("org.apache.activemq:type=Broker,brokerName=" + brokerName + ",connector=networkConnectors,networkConnectorName=*,networkBridge=*");
|
||||||
Set<ObjectName> queryResult = queryNames(query, null);
|
Set<ObjectName> queryResult = queryNames(query, null);
|
||||||
return getManagedObjects(queryResult.toArray(new ObjectName[queryResult.size()]),
|
return getManagedObjects(queryResult.toArray(new ObjectName[queryResult.size()]),
|
||||||
NetworkBridgeViewMBean.class);
|
NetworkBridgeViewMBean.class);
|
||||||
|
|
Loading…
Reference in New Issue