|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jms.server.AdminConnection
A connection is created for every adminclient connecting to the JmsServer.
AdminConnectionManager
Constructor Summary | |
protected |
AdminConnection(Configuration config,
AuthenticationMgr authenticator,
DestinationManager destinations,
ConsumerManager consumers,
DatabaseService database,
Services services)
Construct a new AdminConnection . |
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. |
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. |
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()
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 |
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 |
Constructor Detail |
protected AdminConnection(Configuration config, AuthenticationMgr authenticator, DestinationManager destinations, ConsumerManager consumers, DatabaseService database, Services services)
AdminConnection
.config
- the configurationauthenticator
- the authentication managerdestinations
- the destination managerdatabase
- the database serviceservices
- the servicesMethod Detail |
public void close()
public int getDurableConsumerMessageCount(java.lang.String topic, java.lang.String name)
topic
- name of the topicname
- consumer namepublic int getQueueMessageCount(java.lang.String queue)
queue
- name of the queuepublic 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)
name
- 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)
name
- destination to destroypublic boolean destinationExists(java.lang.String name)
name
- - the name of the destination to checkpublic void stopServer()
public int purgeMessages()
public boolean addUser(java.lang.String username, java.lang.String password)
username
- the users namepassword
- the users passwordtrue
if the user is added otherwise
false
public boolean changePassword(java.lang.String username, java.lang.String password)
username
- the users namepassword
- the users passwordtrue
if the password is changed otherwise
false
public boolean removeUser(java.lang.String username)
username
- the users nametrue
if the user is removed otherwise
false
public java.util.Vector getAllUsers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |