|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.web.BrokerFacadeSupport
public abstract class BrokerFacadeSupport
A useful base class for an implementation of BrokerFacade
Constructor Summary | |
---|---|
BrokerFacadeSupport()
|
Method Summary | ||
---|---|---|
ConnectionViewMBean |
getConnection(String connectionName)
A specific connection to the broker. |
|
Collection<ConnectionViewMBean> |
getConnections()
All connections to all transport connectors of the broker. |
|
Collection<String> |
getConnections(String connectorName)
The names of all connections to a specific transport connectors of the broker. |
|
ConnectorViewMBean |
getConnector(String name)
A transport connectors. |
|
Collection<String> |
getConnectors()
The names of all transport connectors of the broker (f.e. |
|
Collection<SubscriptionViewMBean> |
getConsumersOnConnection(String connectionName)
Returns all consumers of a connection. |
|
protected DestinationViewMBean |
getDestinationByName(Collection<? extends DestinationViewMBean> collection,
String name)
|
|
Collection<DurableSubscriptionViewMBean> |
getDurableTopicSubscribers()
All durable subscribers to topics of the broker. |
|
protected
|
getManagedObjects(ObjectName[] names,
Class<T> type)
|
|
abstract ManagementContext |
getManagementContext()
|
|
Collection<NetworkConnectorViewMBean> |
getNetworkConnectors()
The brokers network connectors. |
|
QueueViewMBean |
getQueue(String name)
Get the view of the queue with the specified name. |
|
Collection<SubscriptionViewMBean> |
getQueueConsumers(String queueName)
All active consumers of a queue. |
|
Collection<QueueViewMBean> |
getQueues()
All queues known to the broker. |
|
TopicViewMBean |
getTopic(String name)
Get the view of the topic with the specified name. |
|
Collection<TopicViewMBean> |
getTopics()
All topics known to the broker. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.activemq.web.BrokerFacade |
---|
getBrokerAdmin, getBrokerName, purgeQueue |
Constructor Detail |
---|
public BrokerFacadeSupport()
Method Detail |
---|
public abstract ManagementContext getManagementContext()
public Collection<QueueViewMBean> getQueues() throws Exception
BrokerFacade
getQueues
in interface BrokerFacade
null
Exception
public Collection<TopicViewMBean> getTopics() throws Exception
BrokerFacade
getTopics
in interface BrokerFacade
null
Exception
public Collection<DurableSubscriptionViewMBean> getDurableTopicSubscribers() throws Exception
BrokerFacade
getDurableTopicSubscribers
in interface BrokerFacade
null
Exception
public QueueViewMBean getQueue(String name) throws Exception
BrokerFacade
getQueue
in interface BrokerFacade
name
- not null
null
if no queue with this name exists
Exception
public TopicViewMBean getTopic(String name) throws Exception
BrokerFacade
getTopic
in interface BrokerFacade
name
- not null
null
if no topic with this name exists
Exception
protected DestinationViewMBean getDestinationByName(Collection<? extends DestinationViewMBean> collection, String name)
protected <T> Collection<T> getManagedObjects(ObjectName[] names, Class<T> type)
public Collection<ConnectionViewMBean> getConnections() throws Exception
BrokerFacade
getConnections
in interface BrokerFacade
null
Exception
public Collection<String> getConnections(String connectorName) throws Exception
BrokerFacade
getConnections
in interface BrokerFacade
connectorName
- not null
null
Exception
BrokerFacade.getConnection(String)
public ConnectionViewMBean getConnection(String connectionName) throws Exception
BrokerFacade
getConnection
in interface BrokerFacade
connectionName
- the name of the connection, not null
null
Exception
public Collection<String> getConnectors() throws Exception
BrokerFacade
getConnectors
in interface BrokerFacade
null
Exception
public ConnectorViewMBean getConnector(String name) throws Exception
BrokerFacade
getConnector
in interface BrokerFacade
name
- name of the connector (f.e. openwire)
null
if not found
Exception
public Collection<NetworkConnectorViewMBean> getNetworkConnectors() throws Exception
BrokerFacade
getNetworkConnectors
in interface BrokerFacade
null
Exception
public Collection<SubscriptionViewMBean> getQueueConsumers(String queueName) throws Exception
BrokerFacade
getQueueConsumers
in interface BrokerFacade
queueName
- the name of the queue, not null
null
Exception
public Collection<SubscriptionViewMBean> getConsumersOnConnection(String connectionName) throws Exception
BrokerFacade
getConsumersOnConnection
in interface BrokerFacade
connectionName
- the name of the connection, not null
null
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |