|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AdminConnection
This specifies all the administration methods that can be used to control the JMS server. The control logic is all at the org.exolab.jms.server package level.
Method Summary | |
---|---|
boolean |
addDestination(java.lang.String destination,
java.lang.Boolean queue)
Add a specific destination with the specified name |
boolean |
addDurableConsumer(java.lang.String topic,
java.lang.String name)
Add a durable consumer for the specified name |
boolean |
addUser(java.lang.String username,
java.lang.String password)
Add a user with the specified name |
boolean |
changePassword(java.lang.String username,
java.lang.String password)
Change password for the specified user |
boolean |
destinationExists(java.lang.String name)
Determine if the specified destination exists |
boolean |
durableConsumerExists(java.lang.String name)
Check if the specified durable consumer exists |
java.util.Vector |
getAllDestinations()
Return a list of all registered destinations. |
java.util.Vector |
getAllUsers()
Return a list of all registered users. |
int |
getDurableConsumerMessageCount(java.lang.String topic,
java.lang.String name)
Return the number of outstanding messages for a particular destination. |
java.util.Vector |
getDurableConsumers(java.lang.String destination)
Return the collection of durable consumer names for a particular topic destination. |
int |
getQueueMessageCount(java.lang.String queue)
Return the number of outstanding messages for a particular queue. |
boolean |
isConnected(java.lang.String name)
Check to see if the given consumer is currently connected |
int |
purgeMessages()
Deprecated. no replacement |
boolean |
removeDestination(java.lang.String name)
Destroy the specified destination and all associated messsages and consumers. |
boolean |
removeDurableConsumer(java.lang.String name)
Remove the specified durable consumer |
boolean |
removeUser(java.lang.String username)
Remove the specified user |
void |
stopServer()
Terminate the JMS Server. |
boolean |
unregisterConsumer(java.lang.String name)
De-activate an active persistent consumer. |
Method Detail |
---|
boolean addDurableConsumer(java.lang.String topic, java.lang.String name) throws javax.jms.JMSException
topic
- name of the destinationname
- name of the consumer
javax.jms.JMSException
boolean durableConsumerExists(java.lang.String name) throws javax.jms.JMSException
name
- durable consumer to query
javax.jms.JMSException
boolean removeDurableConsumer(java.lang.String name) throws javax.jms.JMSException
name
- name of the consumer
javax.jms.JMSException
boolean isConnected(java.lang.String name) throws javax.jms.JMSException
name
- the name of the onsumer.
true
if the consumer is connected
javax.jms.JMSException
boolean unregisterConsumer(java.lang.String name) throws javax.jms.JMSException
name
- name of the consumer
javax.jms.JMSException
boolean addDestination(java.lang.String destination, java.lang.Boolean queue) throws javax.jms.JMSException
name
- destination namequeue
- whether it is queue or a topic
javax.jms.JMSException
boolean removeDestination(java.lang.String name) throws javax.jms.JMSException
destination
- destination to destroy
javax.jms.JMSException
boolean destinationExists(java.lang.String name) throws javax.jms.JMSException
name
- - the destination to check
javax.jms.JMSException
void stopServer() throws javax.jms.JMSException
javax.jms.JMSException
int purgeMessages() throws javax.jms.JMSException
javax.jms.JMSException
boolean addUser(java.lang.String username, java.lang.String password) throws javax.jms.JMSException
username
- the users namepassword
- the users password
true
if the user is added
otherwise false
javax.jms.JMSException
boolean changePassword(java.lang.String username, java.lang.String password) throws javax.jms.JMSException
username
- the users namepassword
- the users password
true
if the password is changed
otherwise false
javax.jms.JMSException
boolean removeUser(java.lang.String username) throws javax.jms.JMSException
username
- the users name
true
if the user is removed otherwise
false
javax.jms.JMSException
int getDurableConsumerMessageCount(java.lang.String topic, java.lang.String name) throws javax.jms.JMSException
topic
- name of the topicname
- durable consumer name
javax.jms.JMSException
- on errorint getQueueMessageCount(java.lang.String queue) throws javax.jms.JMSException
queue
- the queue name
javax.jms.JMSException
- on errorjava.util.Vector getDurableConsumers(java.lang.String destination) throws javax.jms.JMSException
destination
- the destination name
javax.jms.JMSException
- on errorjava.util.Vector getAllDestinations() throws javax.jms.JMSException
javax.jms.JMSException
- on errorjava.util.Vector getAllUsers() throws javax.jms.JMSException
javax.jms.JMSException
- on error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |