|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--org.exolab.jms.server.rmi.RmiJmsAdminConnection
This class implements the RemoteJmsAdminServerIfc and simply delegates all the request to the JmsAdmin singleton instance.
Remote, Serialized Form| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| Constructor Summary | |
RmiJmsAdminConnection(AdminConnection connection)
The default constructor simply calls the base class' default constructor. |
|
| 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 consumer for the specified topic |
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 whether the destination with the specified name exists |
boolean |
durableConsumerExists(java.lang.String name)
Check if a durable consumer, with the specified name, already 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 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.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RmiJmsAdminConnection(AdminConnection connection)
throws java.rmi.RemoteException
connection - delegate connection objectjava.rmi.RemoteException - if the connection cannot be created| Method Detail |
public boolean addDurableConsumer(java.lang.String topic,
java.lang.String name)
throws java.rmi.RemoteException
RemoteJmsAdminConnectionIfcaddDurableConsumer in interface RemoteJmsAdminConnectionIfcorg.exolab.jms.server.rmi.RemoteJmsAdminConnectionIfctopic - name of the destinationname - name of the consumerjava.rmi.RemoteException - if the connection cannot be created
public boolean removeDurableConsumer(java.lang.String name)
throws java.rmi.RemoteException
RemoteJmsAdminConnectionIfcremoveDurableConsumer in interface RemoteJmsAdminConnectionIfcorg.exolab.jms.server.rmi.RemoteJmsAdminConnectionIfcname - name of the consumerjava.rmi.RemoteException - if the connection cannot be created
public boolean durableConsumerExists(java.lang.String name)
throws java.rmi.RemoteException
RemoteJmsAdminConnectionIfcdurableConsumerExists in interface RemoteJmsAdminConnectionIfcorg.exolab.jms.server.rmi.RemoteJmsAdminConnectionIfcname - name of the consumerjava.rmi.RemoteException - if the connection cannot be created
public boolean unregisterConsumer(java.lang.String name)
throws java.rmi.RemoteException
RemoteJmsAdminConnectionIfcunregisterConsumer in interface RemoteJmsAdminConnectionIfcorg.exolab.jms.server.rmi.RemoteJmsAdminConnectionIfcname - name of the consumerjava.rmi.RemoteException - if the connection cannot be created
public boolean isConnected(java.lang.String name)
throws java.rmi.RemoteException
RemoteJmsAdminConnectionIfcisConnected in interface RemoteJmsAdminConnectionIfcorg.exolab.jms.server.rmi.RemoteJmsAdminConnectionIfcname - The name of the onsumer.java.rmi.RemoteException - if the connection cannot be created
public java.util.Vector getAllDestinations()
throws java.rmi.RemoteException
RemoteJmsAdminConnectionIfcgetAllDestinations in interface RemoteJmsAdminConnectionIfcorg.exolab.jms.server.rmi.RemoteJmsAdminConnectionIfcjava.rmi.RemoteException - if the connection cannot be created
public boolean addDestination(java.lang.String destination,
java.lang.Boolean queue)
throws java.rmi.RemoteException
RemoteJmsAdminConnectionIfcaddDestination in interface RemoteJmsAdminConnectionIfcorg.exolab.jms.server.rmi.RemoteJmsAdminConnectionIfcdestination - destination namequeue - whether it is queue or a topicjava.rmi.RemoteException - if the connection cannot be created
public int getDurableConsumerMessageCount(java.lang.String topic,
java.lang.String name)
throws java.rmi.RemoteException
RemoteJmsAdminConnectionIfcgetDurableConsumerMessageCount in interface RemoteJmsAdminConnectionIfcorg.exolab.jms.server.rmi.RemoteJmsAdminConnectionIfctopic - name of the topicname - durable consumer namejava.rmi.RemoteException - if the connection cannot be created
public int getQueueMessageCount(java.lang.String queue)
throws java.rmi.RemoteException
RemoteJmsAdminConnectionIfcgetQueueMessageCount in interface RemoteJmsAdminConnectionIfcorg.exolab.jms.server.rmi.RemoteJmsAdminConnectionIfcqueue - the queue namejava.rmi.RemoteException - if the connection cannot be created
public java.util.Vector getDurableConsumers(java.lang.String topic)
throws java.rmi.RemoteException
RemoteJmsAdminConnectionIfcgetDurableConsumers in interface RemoteJmsAdminConnectionIfcorg.exolab.jms.server.rmi.RemoteJmsAdminConnectionIfcdestination - the destination namejava.rmi.RemoteException - if the connection cannot be created
public boolean removeDestination(java.lang.String name)
throws java.rmi.RemoteException
RemoteJmsAdminConnectionIfcremoveDestination in interface RemoteJmsAdminConnectionIfcorg.exolab.jms.server.rmi.RemoteJmsAdminConnectionIfcname - destination to destroyjava.rmi.RemoteException - if the connection cannot be created
public boolean destinationExists(java.lang.String name)
throws java.rmi.RemoteException
RemoteJmsAdminConnectionIfcdestinationExists in interface RemoteJmsAdminConnectionIfcorg.exolab.jms.server.rmi.RemoteJmsAdminConnectionIfcname - - the destination to checkjava.rmi.RemoteException - if the connection cannot be created
public int purgeMessages()
throws java.rmi.RemoteException
RemoteJmsAdminConnectionIfcpurgeMessages in interface RemoteJmsAdminConnectionIfcorg.exolab.jms.server.rmi.RemoteJmsAdminConnectionIfcjava.rmi.RemoteException - if the connection cannot be created
public void stopServer()
throws java.rmi.RemoteException
RemoteJmsAdminConnectionIfcstopServer in interface RemoteJmsAdminConnectionIfcorg.exolab.jms.server.rmi.RemoteJmsAdminConnectionIfcjava.rmi.RemoteException - if the connection cannot be created
public boolean addUser(java.lang.String username,
java.lang.String password)
throws java.rmi.RemoteException
RemoteJmsAdminConnectionIfcaddUser in interface RemoteJmsAdminConnectionIfcorg.exolab.jms.server.rmi.RemoteJmsAdminConnectionIfcusername - the users namepassword - the users passwordtrue if the user is added
otherwise falsejava.rmi.RemoteException - if the connection cannot be created
public boolean changePassword(java.lang.String username,
java.lang.String password)
throws java.rmi.RemoteException
RemoteJmsAdminConnectionIfcchangePassword in interface RemoteJmsAdminConnectionIfcorg.exolab.jms.server.rmi.RemoteJmsAdminConnectionIfcusername - the users namepassword - the users passwordtrue if the password is changed
otherwise falsejava.rmi.RemoteException - if the connection cannot be created
public boolean removeUser(java.lang.String username)
throws java.rmi.RemoteException
RemoteJmsAdminConnectionIfcremoveUser in interface RemoteJmsAdminConnectionIfcorg.exolab.jms.server.rmi.RemoteJmsAdminConnectionIfcusername - the users nametrue if the user is removed
otherwise falsejava.rmi.RemoteException - if the connection cannot be created
public java.util.Vector getAllUsers()
throws java.rmi.RemoteException
RemoteJmsAdminConnectionIfcgetAllUsers in interface RemoteJmsAdminConnectionIfcorg.exolab.jms.server.rmi.RemoteJmsAdminConnectionIfcjava.rmi.RemoteException - if the connection cannot be created
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||