|
|||||||||
| 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
|
+--jrun.jms.core.server.rmi.RmiJmsAdminServer
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 |
| Fields inherited from interface jrun.jms.core.server.rmi.RemoteJmsAdminServerIfc |
Name |
| Constructor Summary | |
RmiJmsAdminServer()
The default constructor simply calls the base class' default constructor. |
|
RmiJmsAdminServer(int port)
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 |
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. |
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 |
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 RmiJmsAdminServer(int port)
throws java.rmi.RemoteException
RemotException -
public RmiJmsAdminServer()
throws java.rmi.RemoteException
RemotException - | Method Detail |
public boolean addDurableConsumer(java.lang.String topic,
java.lang.String name)
throws java.rmi.RemoteException
RemoteJmsAdminServerIfcaddDurableConsumer in interface RemoteJmsAdminServerIfcjrun.jms.core.server.rmi.RemoteJmsAdminServerIfctopic - name of the destinationname - name of the consumerjava.rmi.RemoteException -
public boolean removeDurableConsumer(java.lang.String name)
throws java.rmi.RemoteException
RemoteJmsAdminServerIfcremoveDurableConsumer in interface RemoteJmsAdminServerIfcjrun.jms.core.server.rmi.RemoteJmsAdminServerIfcname - name of the consumerjava.rmi.RemoteException -
public boolean durableConsumerExists(java.lang.String name)
throws java.rmi.RemoteException
RemoteJmsAdminServerIfcdurableConsumerExists in interface RemoteJmsAdminServerIfcjrun.jms.core.server.rmi.RemoteJmsAdminServerIfcname - name of the consumerjava.rmi.RemoteException -
public boolean unregisterConsumer(java.lang.String name)
throws java.rmi.RemoteException
RemoteJmsAdminServerIfcunregisterConsumer in interface RemoteJmsAdminServerIfcjrun.jms.core.server.rmi.RemoteJmsAdminServerIfcname - name of the consumerjava.rmi.RemoteException -
public boolean isConnected(java.lang.String name)
throws java.rmi.RemoteException
RemoteJmsAdminServerIfcisConnected in interface RemoteJmsAdminServerIfcjrun.jms.core.server.rmi.RemoteJmsAdminServerIfcname - The name of the onsumer.java.rmi.RemoteException -
public java.util.Vector getAllDestinations()
throws java.rmi.RemoteException
RemoteJmsAdminServerIfcgetAllDestinations in interface RemoteJmsAdminServerIfcjrun.jms.core.server.rmi.RemoteJmsAdminServerIfcjava.rmi.RemoteException -
public boolean addDestination(java.lang.String destination,
java.lang.Boolean queue)
throws java.rmi.RemoteException
RemoteJmsAdminServerIfcaddDestination in interface RemoteJmsAdminServerIfcjrun.jms.core.server.rmi.RemoteJmsAdminServerIfcname - destination namequeue - whether it is queue or a topicjava.rmi.RemoteException -
public int getDurableConsumerMessageCount(java.lang.String topic,
java.lang.String name)
throws java.rmi.RemoteException
RemoteJmsAdminServerIfcgetDurableConsumerMessageCount in interface RemoteJmsAdminServerIfcjrun.jms.core.server.rmi.RemoteJmsAdminServerIfctopic - name of the topicname - durable consumer namejava.rmi.RemoteException -
public int getQueueMessageCount(java.lang.String queue)
throws java.rmi.RemoteException
RemoteJmsAdminServerIfcgetQueueMessageCount in interface RemoteJmsAdminServerIfcjrun.jms.core.server.rmi.RemoteJmsAdminServerIfcqueue - the queue namejava.rmi.RemoteException -
public java.util.Vector getDurableConsumers(java.lang.String topic)
throws java.rmi.RemoteException
RemoteJmsAdminServerIfcgetDurableConsumers in interface RemoteJmsAdminServerIfcjrun.jms.core.server.rmi.RemoteJmsAdminServerIfctopic - the topic namejava.rmi.RemoteException -
public boolean removeDestination(java.lang.String name)
throws java.rmi.RemoteException
RemoteJmsAdminServerIfcremoveDestination in interface RemoteJmsAdminServerIfcjrun.jms.core.server.rmi.RemoteJmsAdminServerIfcdestination - destination to destroyjava.rmi.RemoteException -
public int purgeMessages()
throws java.rmi.RemoteException
RemoteJmsAdminServerIfcpurgeMessages in interface RemoteJmsAdminServerIfcjrun.jms.core.server.rmi.RemoteJmsAdminServerIfcjava.rmi.RemoteException -
public void stopServer()
throws java.rmi.RemoteException
RemoteJmsAdminServerIfcstopServer in interface RemoteJmsAdminServerIfc
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||