|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.broker.jmx.BrokerView
public class BrokerView
Constructor Summary | |
---|---|
BrokerView(BrokerService brokerService,
ManagedRegionBroker managedBroker)
|
Method Summary | |
---|---|
void |
addQueue(String name)
Adds a Queue destination to the broker. |
void |
addTopic(String name)
Adds a Topic destination to the broker. |
protected static ConnectionContext |
createAdminConnectionContext(Broker broker)
Factory method to create the new administration connection context object. |
ObjectName |
createDurableSubscriber(String clientId,
String subscriberName,
String topicName,
String selector)
Creates a new durable topic subscriber |
void |
destroyDurableSubscriber(String clientId,
String subscriberName)
Destroys a durable subscriber |
void |
gc()
The Broker will fush it's caches so that the garbage collector can recalaim more memory. |
ManagedRegionBroker |
getBroker()
|
String |
getBrokerId()
|
static ConnectionContext |
getConnectionContext(Broker broker)
Returns the broker's administration connection context used for configuring the broker at startup |
ObjectName[] |
getDurableTopicSubscribers()
|
ObjectName[] |
getInactiveDurableTopicSubscribers()
|
long |
getMemoryLimit()
|
int |
getMemoryPercentageUsed()
|
ObjectName[] |
getQueues()
|
ObjectName[] |
getQueueSubscribers()
|
ObjectName[] |
getTemporaryQueues()
|
ObjectName[] |
getTemporaryQueueSubscribers()
|
ObjectName[] |
getTemporaryTopics()
|
ObjectName[] |
getTemporaryTopicSubscribers()
|
ObjectName[] |
getTopics()
|
ObjectName[] |
getTopicSubscribers()
|
long |
getTotalConsumerCount()
|
long |
getTotalDequeueCount()
|
long |
getTotalEnqueueCount()
|
long |
getTotalMessageCount()
|
long |
getTotalMessagesCached()
|
void |
removeQueue(String name)
Removes a Queue destination from the broker. |
void |
removeTopic(String name)
Removes a Topic destination from the broker. |
void |
resetStatistics()
|
void |
setMemoryLimit(long limit)
|
void |
start()
|
void |
stop()
Stop the broker and all it's components. |
void |
terminateJVM(int exitCode)
Shuts down the JVM. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BrokerView(BrokerService brokerService, ManagedRegionBroker managedBroker) throws Exception
Exception
Method Detail |
---|
public ManagedRegionBroker getBroker()
public String getBrokerId()
getBrokerId
in interface BrokerViewMBean
public void gc() throws Exception
BrokerViewMBean
gc
in interface BrokerViewMBean
Exception
public void start() throws Exception
start
in interface Service
Exception
public void stop() throws Exception
BrokerViewMBean
stop
in interface BrokerViewMBean
stop
in interface Service
Exception
public long getTotalEnqueueCount()
getTotalEnqueueCount
in interface BrokerViewMBean
public long getTotalDequeueCount()
getTotalDequeueCount
in interface BrokerViewMBean
public long getTotalConsumerCount()
getTotalConsumerCount
in interface BrokerViewMBean
public long getTotalMessageCount()
getTotalMessageCount
in interface BrokerViewMBean
public long getTotalMessagesCached()
public int getMemoryPercentageUsed()
getMemoryPercentageUsed
in interface BrokerViewMBean
public long getMemoryLimit()
getMemoryLimit
in interface BrokerViewMBean
public void setMemoryLimit(long limit)
setMemoryLimit
in interface BrokerViewMBean
public void resetStatistics()
resetStatistics
in interface BrokerViewMBean
public void terminateJVM(int exitCode)
BrokerViewMBean
terminateJVM
in interface BrokerViewMBean
exitCode
- the exit code that will be reported by the JVM process when it exits.public ObjectName[] getTopics()
getTopics
in interface BrokerViewMBean
public ObjectName[] getQueues()
getQueues
in interface BrokerViewMBean
public ObjectName[] getTemporaryTopics()
getTemporaryTopics
in interface BrokerViewMBean
public ObjectName[] getTemporaryQueues()
getTemporaryQueues
in interface BrokerViewMBean
public ObjectName[] getTopicSubscribers()
getTopicSubscribers
in interface BrokerViewMBean
public ObjectName[] getDurableTopicSubscribers()
getDurableTopicSubscribers
in interface BrokerViewMBean
public ObjectName[] getQueueSubscribers()
getQueueSubscribers
in interface BrokerViewMBean
public ObjectName[] getTemporaryTopicSubscribers()
getTemporaryTopicSubscribers
in interface BrokerViewMBean
public ObjectName[] getTemporaryQueueSubscribers()
getTemporaryQueueSubscribers
in interface BrokerViewMBean
public ObjectName[] getInactiveDurableTopicSubscribers()
getInactiveDurableTopicSubscribers
in interface BrokerViewMBean
public void addTopic(String name) throws Exception
BrokerViewMBean
addTopic
in interface BrokerViewMBean
name
- The name of the Topic
Exception
public void addQueue(String name) throws Exception
BrokerViewMBean
addQueue
in interface BrokerViewMBean
name
- The name of the Queue
Exception
public void removeTopic(String name) throws Exception
BrokerViewMBean
removeTopic
in interface BrokerViewMBean
name
- The name of the Topic
Exception
public void removeQueue(String name) throws Exception
BrokerViewMBean
removeQueue
in interface BrokerViewMBean
name
- The name of the Queue
Exception
public ObjectName createDurableSubscriber(String clientId, String subscriberName, String topicName, String selector) throws Exception
BrokerViewMBean
createDurableSubscriber
in interface BrokerViewMBean
clientId
- the JMS client IDsubscriberName
- the durable subscriber nametopicName
- the name of the topic to subscribe toselector
- a selector or null
Exception
public void destroyDurableSubscriber(String clientId, String subscriberName) throws Exception
BrokerViewMBean
destroyDurableSubscriber
in interface BrokerViewMBean
clientId
- the JMS client IDsubscriberName
- the durable subscriber name
Exception
public static ConnectionContext getConnectionContext(Broker broker)
protected static ConnectionContext createAdminConnectionContext(Broker broker)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |