|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jms.tools.admin.AbstractAdminConnection
The abstract class all AbstractAdminConnection objects must inherit from. Currently there are only two object types. OfflineConnection, for objects that directly connect to and use the persistency mechanism, and OnlineConnection objects that connect to an OpenJMSServer for all their requests.
OfflineConnection
,
OnlineConnection
Field Summary | |
protected static AbstractAdminConnection |
_instance
|
Constructor Summary | |
AbstractAdminConnection()
|
Method Summary | |
abstract boolean |
addDestination(java.lang.String destination,
boolean isQueue)
Add a specific destination with the specified name |
abstract boolean |
addDurableConsumer(java.lang.String topic,
java.lang.String name)
Add a durable consumer for the specified name the passed in name |
abstract boolean |
addUser(java.lang.String username,
java.lang.String password)
Adds a new User to the DB. |
abstract boolean |
changePassword(java.lang.String username,
java.lang.String password)
Change the password for this user |
abstract void |
close()
Close the connection. |
abstract boolean |
durableConsumerExists(java.lang.String name)
Check if the durable consumer exists. |
abstract java.util.Enumeration |
getAllDestinations()
Return a list of all registered destinations. |
abstract java.util.Enumeration |
getAllUsers()
List all users in the DB |
abstract int |
getDurableConsumerMessageCount(java.lang.String topic,
java.lang.String name)
Return the number of outstanding messages for a particular destination. |
abstract java.util.Enumeration |
getDurableConsumers(java.lang.String destination)
Return the collection of durable consumer names for a particular topic destination. |
abstract int |
getQueueMessageCount(java.lang.String queue)
Return the number of outstanding messages for a particular queue. |
static AbstractAdminConnection |
instance()
Returns the one and only instance of the connection object. |
abstract boolean |
isConnected(java.lang.String name)
Check to see if the given consumer is currently connected to the OpenJMSServer. |
abstract int |
purgeMessages()
Purge all processed messages from the database. |
abstract boolean |
removeDestination(java.lang.String name)
Destroy the specified destination and all associated messsages and consumers. |
abstract boolean |
removeDurableConsumer(java.lang.String name)
Remove the consumer with the specified name |
abstract boolean |
removeUser(java.lang.String username)
Remove a user from the DB. |
abstract void |
stopServer()
Terminate the JMS Server. |
abstract 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 |
Field Detail |
protected static AbstractAdminConnection _instance
Constructor Detail |
public AbstractAdminConnection()
Method Detail |
public static AbstractAdminConnection instance()
public abstract int getDurableConsumerMessageCount(java.lang.String topic, java.lang.String name)
topic
- name of the topicname
- durable consumer namepublic abstract int getQueueMessageCount(java.lang.String queue)
queue
- the queue namepublic abstract boolean addDurableConsumer(java.lang.String topic, java.lang.String name)
topic
- name of the destinationname
- name of the consumerpublic abstract boolean removeDurableConsumer(java.lang.String name)
name
- name of the consumerpublic abstract java.util.Enumeration getDurableConsumers(java.lang.String destination)
topic
- the topic namepublic abstract boolean durableConsumerExists(java.lang.String name)
name
- name of the durable conusmerpublic abstract boolean unregisterConsumer(java.lang.String name)
name
- name of the consumerpublic abstract boolean isConnected(java.lang.String name)
name
- The name of the onsumer.public abstract java.util.Enumeration getAllDestinations()
public abstract boolean addDestination(java.lang.String destination, boolean isQueue)
name
- destination namequeue
- whether it is queue or a topicpublic abstract boolean removeDestination(java.lang.String name)
destination
- destination to destroypublic abstract void stopServer()
public abstract int purgeMessages()
public abstract void close()
public abstract 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 abstract 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 abstract boolean removeUser(java.lang.String username)
username
- the users nametrue
if the user is removed
otherwise false
public abstract java.util.Enumeration getAllUsers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |