public class JmxTemplateBrokerFacade extends java.lang.Object implements BrokerFacade
Constructor and Description |
---|
JmxTemplateBrokerFacade(JmxTemplateSupport template) |
Modifier and Type | Method and Description |
---|---|
<T> T |
execute(BrokerFacadeCallback<T> callback)
Executes a JMX operation on a BrokerFacade
|
BrokerViewFacade |
getBrokerAdmin()
Admin view of the broker.
|
java.lang.String |
getBrokerName()
The name of the active broker (f.e.
|
BrokerFacade[] |
getBrokers()
Returns all the available brokers.
|
ConnectionViewFacade |
getConnection(java.lang.String connectionName)
A specific connection to the broker.
|
java.util.Collection<ConnectionViewFacade> |
getConnections()
All connections to all transport connectors of the broker.
|
java.util.Collection<java.lang.String> |
getConnections(java.lang.String connectorName)
The names of all connections to a specific transport connectors of the
broker.
|
ConnectorViewFacade |
getConnector(java.lang.String name)
A transport connectors.
|
java.util.Collection<java.lang.String> |
getConnectors()
The names of all transport connectors of the broker (f.e.
|
java.util.Collection<SubscriptionViewFacade> |
getConsumersOnConnection(java.lang.String connectionName)
Returns all consumers of a connection.
|
java.util.Collection<DurableSubscriptionViewFacade> |
getDurableTopicSubscribers()
Active durable subscribers to topics of the broker.
|
java.lang.String |
getId() |
java.util.Collection<DurableSubscriptionViewFacade> |
getInactiveDurableTopicSubscribers()
Inactive durable subscribers to topics of the broker.
|
JobSchedulerViewFacade |
getJobScheduler()
Get the JobScheduler MBean
|
java.util.Collection<NetworkBridgeViewFacade> |
getNetworkBridges()
The brokers network bridges.
|
java.util.Collection<NetworkConnectorViewFacade> |
getNetworkConnectors()
The brokers network connectors.
|
QueueViewFacade |
getQueue(java.lang.String name)
Get the view of the queue with the specified name.
|
java.util.Collection<SubscriptionViewFacade> |
getQueueConsumers(java.lang.String queueName)
All active consumers of a queue.
|
java.util.Collection<ProducerViewFacade> |
getQueueProducers(java.lang.String queueName)
Returns the producers available on the given queue
|
java.util.Collection<QueueViewFacade> |
getQueues()
All queues known to the broker.
|
java.util.Collection<JobFacade> |
getScheduledJobs()
Get the JobScheduler MBean
|
TopicViewFacade |
getTopic(java.lang.String name)
Get the view of the topic with the specified name.
|
java.util.Collection<SubscriptionViewFacade> |
getTopicConsumers(java.lang.String topicName)
Returns the consumers available on the given topic
|
java.util.Collection<DurableSubscriptionViewFacade> |
getTopicDurableConsumers(java.lang.String topicName)
Returns the durable consumers available on the given topic
|
java.util.Collection<ProducerViewFacade> |
getTopicProducers(java.lang.String topicName)
Returns the producers available on the given topic
|
java.util.Collection<TopicViewFacade> |
getTopics()
All topics known to the broker.
|
boolean |
isJobSchedulerStarted() |
void |
purgeQueue(org.apache.activemq.command.ActiveMQDestination destination)
Purges the given destination
|
public JmxTemplateBrokerFacade(JmxTemplateSupport template)
public <T> T execute(BrokerFacadeCallback<T> callback)
public java.lang.String getId() throws java.lang.Exception
getId
in interface BrokerFacade
java.lang.Exception
public BrokerFacade[] getBrokers() throws java.lang.Exception
BrokerFacade
getBrokers
in interface BrokerFacade
null
java.lang.Exception
public BrokerViewFacade getBrokerAdmin() throws java.lang.Exception
BrokerFacade
getBrokerAdmin
in interface BrokerFacade
null
java.lang.Exception
public java.lang.String getBrokerName() throws java.lang.Exception
BrokerFacade
getBrokerName
in interface BrokerFacade
null
java.lang.Exception
public java.util.Collection<QueueViewFacade> getQueues() throws java.lang.Exception
BrokerFacade
getQueues
in interface BrokerFacade
null
java.lang.Exception
public java.util.Collection<TopicViewFacade> getTopics() throws java.lang.Exception
BrokerFacade
getTopics
in interface BrokerFacade
null
java.lang.Exception
public java.util.Collection<SubscriptionViewFacade> getQueueConsumers(java.lang.String queueName) throws java.lang.Exception
BrokerFacade
getQueueConsumers
in interface BrokerFacade
queueName
- the name of the queue, not null
null
java.lang.Exception
public java.util.Collection<SubscriptionViewFacade> getTopicConsumers(java.lang.String topicName) throws java.lang.Exception
BrokerFacade
getTopicConsumers
in interface BrokerFacade
java.lang.Exception
public java.util.Collection<DurableSubscriptionViewFacade> getTopicDurableConsumers(java.lang.String topicName) throws java.lang.Exception
BrokerFacade
getTopicDurableConsumers
in interface BrokerFacade
java.lang.Exception
public java.util.Collection<DurableSubscriptionViewFacade> getDurableTopicSubscribers() throws java.lang.Exception
BrokerFacade
getDurableTopicSubscribers
in interface BrokerFacade
null
java.lang.Exception
public java.util.Collection<DurableSubscriptionViewFacade> getInactiveDurableTopicSubscribers() throws java.lang.Exception
BrokerFacade
getInactiveDurableTopicSubscribers
in interface BrokerFacade
null
java.lang.Exception
public java.util.Collection<ProducerViewFacade> getQueueProducers(java.lang.String queueName) throws java.lang.Exception
BrokerFacade
getQueueProducers
in interface BrokerFacade
java.lang.Exception
public java.util.Collection<ProducerViewFacade> getTopicProducers(java.lang.String topicName) throws java.lang.Exception
BrokerFacade
getTopicProducers
in interface BrokerFacade
java.lang.Exception
public java.util.Collection<java.lang.String> getConnectors() throws java.lang.Exception
BrokerFacade
getConnectors
in interface BrokerFacade
null
java.lang.Exception
public ConnectorViewFacade getConnector(java.lang.String name) throws java.lang.Exception
BrokerFacade
getConnector
in interface BrokerFacade
name
- name of the connector (f.e. openwire)null
if not foundjava.lang.Exception
public java.util.Collection<ConnectionViewFacade> getConnections() throws java.lang.Exception
BrokerFacade
getConnections
in interface BrokerFacade
null
java.lang.Exception
public java.util.Collection<java.lang.String> getConnections(java.lang.String connectorName) throws java.lang.Exception
BrokerFacade
getConnections
in interface BrokerFacade
connectorName
- not null
null
java.lang.Exception
BrokerFacade.getConnection(String)
public ConnectionViewFacade getConnection(java.lang.String connectionName) throws java.lang.Exception
BrokerFacade
getConnection
in interface BrokerFacade
connectionName
- the name of the connection, not null
null
java.lang.Exception
public java.util.Collection<SubscriptionViewFacade> getConsumersOnConnection(java.lang.String connectionName) throws java.lang.Exception
BrokerFacade
getConsumersOnConnection
in interface BrokerFacade
connectionName
- the name of the connection, not null
null
java.lang.Exception
public java.util.Collection<NetworkConnectorViewFacade> getNetworkConnectors() throws java.lang.Exception
BrokerFacade
getNetworkConnectors
in interface BrokerFacade
null
java.lang.Exception
public java.util.Collection<NetworkBridgeViewFacade> getNetworkBridges() throws java.lang.Exception
BrokerFacade
getNetworkBridges
in interface BrokerFacade
null
java.lang.Exception
public void purgeQueue(org.apache.activemq.command.ActiveMQDestination destination) throws java.lang.Exception
BrokerFacade
purgeQueue
in interface BrokerFacade
java.lang.Exception
public QueueViewFacade getQueue(java.lang.String name) throws java.lang.Exception
BrokerFacade
getQueue
in interface BrokerFacade
name
- not null
null
if no queue with this name existsjava.lang.Exception
public TopicViewFacade getTopic(java.lang.String name) throws java.lang.Exception
BrokerFacade
getTopic
in interface BrokerFacade
name
- not null
null
if no topic with this name existsjava.lang.Exception
public JobSchedulerViewFacade getJobScheduler() throws java.lang.Exception
BrokerFacade
getJobScheduler
in interface BrokerFacade
java.lang.Exception
public java.util.Collection<JobFacade> getScheduledJobs() throws java.lang.Exception
BrokerFacade
getScheduledJobs
in interface BrokerFacade
java.lang.Exception
public boolean isJobSchedulerStarted()
isJobSchedulerStarted
in interface BrokerFacade
Copyright © 2017 Red Hat. All Rights Reserved.