|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.jms.server.AdminConnection
public class AdminConnection
A connection is created for every adminclient connecting to the JmsServer.
AdminConnectionManager
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 the specified durable consumer to the database |
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 |
void |
close()
Close the admin connection |
boolean |
destinationExists(java.lang.String name)
Check whether the specified destination exists |
boolean |
durableConsumerExists(java.lang.String name)
Check if the 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. |
java.lang.String |
getClientId()
Returns the client identifier |
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. |
java.lang.String |
getIdentifierId()
Returns the identifier |
int |
getQueueMessageCount(java.lang.String queue)
First use the destination manager to return the number of persistent and non-persistent messages in a queue |
boolean |
isConnected(java.lang.String name)
Check to see if the given consumer is currently connected to the OpenJMSServer. |
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 consumer attached to the specified destination and with the passed in name |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.String getClientId()
public java.lang.String getIdentifierId()
public void close()
public int getDurableConsumerMessageCount(java.lang.String topic, java.lang.String name)
topic
- name of the topicname
- consumer name
public int getQueueMessageCount(java.lang.String queue)
queue
- name of the queue
public boolean addDurableConsumer(java.lang.String topic, java.lang.String name)
topic
- name of the destinationname
- name of the consumer
public boolean removeDurableConsumer(java.lang.String name)
name
- name of the consumer
public boolean durableConsumerExists(java.lang.String name)
name
- name of the durable conusmer
public java.util.Vector getDurableConsumers(java.lang.String topic)
topic
- the topic name
public boolean unregisterConsumer(java.lang.String name)
name
- name of the consumer
public 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 topic
public boolean removeDestination(java.lang.String name)
name
- destination to destroy
public boolean destinationExists(java.lang.String name)
name
- - the name of the destination to check
public void stopServer()
public int purgeMessages()
public boolean addUser(java.lang.String username, java.lang.String password)
username
- the users namepassword
- the users password
true
if the user is added
otherwise false
public boolean changePassword(java.lang.String username, java.lang.String password)
username
- the users namepassword
- the users password
true
if the password is changed
otherwise false
public boolean removeUser(java.lang.String username)
username
- the users name
true
if the user is removed
otherwise false
public java.util.Vector getAllUsers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |