|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.exolab.jms.administration.net.JmsAdminConnectionImpl
This class is repsonsible for an admin connection to the server
AdminConnectionFactory| Constructor Summary | |
JmsAdminConnectionImpl(java.lang.String url,
java.lang.String username,
java.lang.String password)
Construct a new JmsAdminConnectionImpl |
|
| 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 the passed in 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 |
void |
close()
Close the connection. |
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 topic)
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 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 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JmsAdminConnectionImpl(java.lang.String url,
java.lang.String username,
java.lang.String password)
throws javax.jms.JMSException
JmsAdminConnectionImplurl - the server URIusername - the client's usernamepassword - the client's password| Method Detail |
public boolean addDurableConsumer(java.lang.String topic,
java.lang.String name)
throws javax.jms.JMSException
JmsAdminServerIfcaddDurableConsumer in interface JmsAdminServerIfcorg.exolab.jms.administration.JmsAdminServerIfctopic - name of the destinationname - name of the consumerjavax.jms.JMSException -
public boolean removeDurableConsumer(java.lang.String name)
throws javax.jms.JMSException
JmsAdminServerIfcremoveDurableConsumer in interface JmsAdminServerIfcorg.exolab.jms.administration.JmsAdminServerIfcname - name of the consumerjavax.jms.JMSException -
public boolean durableConsumerExists(java.lang.String name)
throws javax.jms.JMSException
JmsAdminServerIfcdurableConsumerExists in interface JmsAdminServerIfcorg.exolab.jms.administration.JmsAdminServerIfcname - durable consumer to queryjavax.jms.JMSException -
public java.util.Vector getDurableConsumers(java.lang.String topic)
throws javax.jms.JMSException
JmsAdminServerIfcgetDurableConsumers in interface JmsAdminServerIfcorg.exolab.jms.administration.JmsAdminServerIfctopic - the topic namejavax.jms.JMSException -
public boolean unregisterConsumer(java.lang.String name)
throws javax.jms.JMSException
JmsAdminServerIfcunregisterConsumer in interface JmsAdminServerIfcorg.exolab.jms.administration.JmsAdminServerIfcname - name of the consumerjavax.jms.JMSException -
public boolean isConnected(java.lang.String name)
throws javax.jms.JMSException
JmsAdminServerIfcisConnected in interface JmsAdminServerIfcorg.exolab.jms.administration.JmsAdminServerIfcname - The name of the onsumer.javax.jms.JMSException -
public boolean addDestination(java.lang.String destination,
java.lang.Boolean queue)
throws javax.jms.JMSException
JmsAdminServerIfcaddDestination in interface JmsAdminServerIfcorg.exolab.jms.administration.JmsAdminServerIfcname - destination namequeue - whether it is queue or a topicjavax.jms.JMSException -
public boolean removeDestination(java.lang.String name)
throws javax.jms.JMSException
JmsAdminServerIfcremoveDestination in interface JmsAdminServerIfcorg.exolab.jms.administration.JmsAdminServerIfcdestination - destination to destroyjavax.jms.JMSException -
public boolean destinationExists(java.lang.String name)
throws javax.jms.JMSException
JmsAdminServerIfcdestinationExists in interface JmsAdminServerIfcorg.exolab.jms.administration.JmsAdminServerIfcname - - the destination to checkjavax.jms.JMSException -
public java.util.Vector getAllDestinations()
throws javax.jms.JMSException
JmsAdminServerIfcgetAllDestinations in interface JmsAdminServerIfcorg.exolab.jms.administration.JmsAdminServerIfcjavax.jms.Destination instancesjavax.jms.JMSException -
public int getDurableConsumerMessageCount(java.lang.String topic,
java.lang.String name)
throws javax.jms.JMSException
JmsAdminServerIfcgetDurableConsumerMessageCount in interface JmsAdminServerIfcorg.exolab.jms.administration.JmsAdminServerIfctopic - name of the topicname - durable consumer namejavax.jms.JMSException -
public int getQueueMessageCount(java.lang.String queue)
throws javax.jms.JMSException
JmsAdminServerIfcgetQueueMessageCount in interface JmsAdminServerIfcorg.exolab.jms.administration.JmsAdminServerIfcqueue - the queue namejavax.jms.JMSException -
public int purgeMessages()
throws javax.jms.JMSException
JmsAdminServerIfcpurgeMessages in interface JmsAdminServerIfcorg.exolab.jms.administration.JmsAdminServerIfcjavax.jms.JMSException -
public void stopServer()
throws javax.jms.JMSException
JmsAdminServerIfcstopServer in interface JmsAdminServerIfcorg.exolab.jms.administration.AdminConnectionjavax.jms.JMSException - public void close()
JmsAdminServerIfcclose in interface JmsAdminServerIfc
public boolean addUser(java.lang.String username,
java.lang.String password)
throws javax.jms.JMSException
JmsAdminServerIfcaddUser in interface JmsAdminServerIfcorg.exolab.jms.administration.JmsAdminServerIfcusername - the users namepassword - the users passwordtrue if the user is added
otherwise false
public java.util.Vector getAllUsers()
throws javax.jms.JMSException
JmsAdminServerIfcgetAllUsers in interface JmsAdminServerIfcorg.exolab.jms.administration.JmsAdminServerIfcjavax.jms.JMSException -
public boolean removeUser(java.lang.String username)
throws javax.jms.JMSException
JmsAdminServerIfcremoveUser in interface JmsAdminServerIfcorg.exolab.jms.administration.JmsAdminServerIfcusername - the users nametrue if the user is removed
otherwise false
public boolean changePassword(java.lang.String username,
java.lang.String password)
throws javax.jms.JMSException
JmsAdminServerIfcchangePassword in interface JmsAdminServerIfcorg.exolab.jms.administration.JmsAdminServerIfcusername - the users namepassword - the users passwordtrue if the password is changed
otherwise false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||