|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jrun.jms.core.server.JmsAdmin
This class contains the logic to perform administrative functions on the JMS server. It is a singleton and accessible through the JmsAdmin.instance class method.
No state is maintained by class instances
Remote| Method Summary | |
boolean |
addDestination(java.lang.String name,
java.lang.Boolean queue)
Add an administered destination with the specified name |
boolean |
addDurableConsumer(java.lang.String topic,
java.lang.String name)
Add a durable consumer for the specified name the passed in name |
boolean |
durableConsumerExists(java.lang.String name)
Check if the durable consumer exists. |
java.util.Vector |
getAllDestinations()
Return a list of all registered destinations. |
int |
getDurableConsumerMessageCount(java.lang.String topic,
java.lang.String name)
Return the number of messages for a durable consumer. |
java.util.Vector |
getDurableConsumers(java.lang.String topic)
Return the collection of durable consumer names for a particular topic destination. |
protected Logger |
getLogger()
Return a reference to the logger |
protected PersistentAdapter |
getPersistentAdapter()
Return a reference to the PersistentAdapter instance |
int |
getQueueMessageCount(java.lang.String queue)
Return the number of messages for a queue |
static JmsAdmin |
instance()
Class method which returns the singleton instance of the JmsAdmin class |
boolean |
isConnected(java.lang.String name)
Check to see if the given consumer is currently connected to the OpenJMSServer. |
int |
purgeMessages()
Purge all processed messages from the database |
boolean |
removeDestination(java.lang.String name)
Destroy the specified destination and all associated messsages and consumers. |
boolean |
removeDurableConsumer(java.lang.String name)
Remove the consumer attached to the specified destination and with the passed in name |
boolean |
unregisterConsumer(java.lang.String name)
De-Activate an active persistent consumer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static JmsAdmin instance()
public int getDurableConsumerMessageCount(java.lang.String topic,
java.lang.String name)
topic - name of the topicname - consumer namejava.rmi.RemoteException - public int getQueueMessageCount(java.lang.String queue)
queue - name of the queuejava.rmi.RemoteException -
public boolean addDurableConsumer(java.lang.String topic,
java.lang.String name)
topic - name of the destinationname - name of the consumerpublic boolean removeDurableConsumer(java.lang.String name)
topic - name of the destinationname - name of the consumerpublic boolean durableConsumerExists(java.lang.String name)
name - name of the durable conusmerpublic java.util.Vector getDurableConsumers(java.lang.String topic)
topic - the topic namepublic boolean unregisterConsumer(java.lang.String name)
name - name of the consumerpublic boolean isConnected(java.lang.String name)
name - The name of the onsumer.public java.util.Vector getAllDestinations()
public boolean addDestination(java.lang.String name,
java.lang.Boolean queue)
name - destination namequeue - whether it is queue or a topicpublic boolean removeDestination(java.lang.String name)
destination - destination to destroypublic int purgeMessages()
protected Logger getLogger()
protected PersistentAdapter getPersistentAdapter()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||