org.apache.activemq.broker.jmx
Interface BrokerViewMBean

All Superinterfaces:
Service
All Known Implementing Classes:
BrokerView

public interface BrokerViewMBean
extends Service


Method Summary
 void addQueue(String name)
          Adds a Queue destination to the broker.
 void addTopic(String name)
          Adds a Topic destination to the broker.
 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.
 String getBrokerId()
           
 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()
           
 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 stop()
          Stop the broker and all it's components.
 void terminateJVM(int exitCode)
          Shuts down the JVM.
 
Methods inherited from interface org.apache.activemq.Service
start
 

Method Detail

getBrokerId

String getBrokerId()
Returns:
The unique id of the broker.

gc

void gc()
        throws Exception
The Broker will fush it's caches so that the garbage collector can recalaim more memory.

Throws:
Exception

resetStatistics

void resetStatistics()

getTotalEnqueueCount

long getTotalEnqueueCount()

getTotalDequeueCount

long getTotalDequeueCount()

getTotalConsumerCount

long getTotalConsumerCount()

getTotalMessageCount

long getTotalMessageCount()

getMemoryPercentageUsed

int getMemoryPercentageUsed()

getMemoryLimit

long getMemoryLimit()

setMemoryLimit

void setMemoryLimit(long limit)

terminateJVM

void terminateJVM(int exitCode)
Shuts down the JVM.

Parameters:
exitCode - the exit code that will be reported by the JVM process when it exits.

stop

void stop()
          throws Exception
Stop the broker and all it's components.

Specified by:
stop in interface Service
Throws:
Exception

getTopics

ObjectName[] getTopics()

getQueues

ObjectName[] getQueues()

getTemporaryTopics

ObjectName[] getTemporaryTopics()

getTemporaryQueues

ObjectName[] getTemporaryQueues()

getTopicSubscribers

ObjectName[] getTopicSubscribers()

getDurableTopicSubscribers

ObjectName[] getDurableTopicSubscribers()

getInactiveDurableTopicSubscribers

ObjectName[] getInactiveDurableTopicSubscribers()

getQueueSubscribers

ObjectName[] getQueueSubscribers()

getTemporaryTopicSubscribers

ObjectName[] getTemporaryTopicSubscribers()

getTemporaryQueueSubscribers

ObjectName[] getTemporaryQueueSubscribers()

addTopic

void addTopic(String name)
              throws Exception
Adds a Topic destination to the broker.

Parameters:
name - The name of the Topic
Throws:
Exception

addQueue

void addQueue(String name)
              throws Exception
Adds a Queue destination to the broker.

Parameters:
name - The name of the Queue
Throws:
Exception

removeTopic

void removeTopic(String name)
                 throws Exception
Removes a Topic destination from the broker.

Parameters:
name - The name of the Topic
Throws:
Exception

removeQueue

void removeQueue(String name)
                 throws Exception
Removes a Queue destination from the broker.

Parameters:
name - The name of the Queue
Throws:
Exception

createDurableSubscriber

ObjectName createDurableSubscriber(String clientId,
                                   String subscriberName,
                                   String topicName,
                                   String selector)
                                   throws Exception
Creates a new durable topic subscriber

Parameters:
clientId - the JMS client ID
subscriberName - the durable subscriber name
topicName - the name of the topic to subscribe to
selector - a selector or null
Returns:
the object name of the MBean registered in JMX
Throws:
Exception

destroyDurableSubscriber

void destroyDurableSubscriber(String clientId,
                              String subscriberName)
                              throws Exception
Destroys a durable subscriber

Parameters:
clientId - the JMS client ID
subscriberName - the durable subscriber name
Throws:
Exception


Copyright © 2011 Apache Software Foundation. All Rights Reserved.