|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
| Fields inherited from interface jrunx.kernel.Service |
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED |
| Method Summary | |
void |
add(MessageImpl message)
Add a message to the message manager for the specified destination. |
void |
addDestination(JmsDestination destination)
Create the specified Destination. |
void |
addEventListener(JmsDestination destination,
MessageManagerEventListener listener)
Add a message listener for a specific destination to be informed when messages, for the destination are added or removed from the queue. |
boolean |
exists(JmsDestination destination)
Return true if the specified destination exists. |
java.util.Iterator |
getConsumers(JmsDestination destination)
Returns an iterator of active consumers registered to a given destination |
java.util.Iterator |
getDestinations()
Returns a list of active destinations |
javax.jms.Message |
getMessage(MessageHandle handle)
Resolve the message for the specified handle. |
int |
getOutstanding(JmsDestination destination)
Returns the number of outstanding messages for this destination. |
boolean |
hasMessages(ConsumerEndpoint consumer)
Returns true if there are any messages for the specified consumer |
void |
removeDestination(JmsDestination destination)
Remove this destination and all attached consumers. |
void |
removeEventListener(JmsDestination destination,
MessageManagerEventListener listener)
Remove the listener for the specified destination. |
javax.jms.Message |
removeMessage(MessageId id)
Remove the specified message from the system. |
JmsDestination |
resolve(java.lang.String name)
Resolves a destination given its name |
ConsumerEndpoint |
resolveConsumer(JmsDestination destination,
java.lang.String id)
Resolves a consumer given its destination and an identity. |
| Methods inherited from interface jrunx.kernel.ServicePartitionMBean |
addService, addService, iterator, removeService, removeService |
| Methods inherited from interface jrunx.kernel.ServiceMBean |
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind |
| Methods inherited from interface jrunx.kernel.Service |
destroy, getStatus, init, start, stop, updateStatus |
| Methods inherited from interface jrun.jms.core.util.QueueWorker |
execute |
| Methods inherited from interface jrun.jms.core.gc.GarbageCollectable |
collectGarbage, getGarbageCollectionEvent |
| Method Detail |
public void addDestination(JmsDestination destination)
throws javax.jms.JMSException
Destination. The destination is a container
for messages and consumers. Consumers listen for messages posted on a
particular desitnation.
This can be called multiple times without any side effects. If the destination is null then it throws a JMSException
destination - - create this destinationJMSException - - if the params is null
public void removeDestination(JmsDestination destination)
throws javax.jms.JMSException
destination - - the destination to removeJMSException - public boolean exists(JmsDestination destination)
destination - - destination to checkpublic java.util.Iterator getDestinations()
public void add(MessageImpl message)
throws javax.jms.JMSException
If the destination, specified in the message, dos not exist then create it. destinations
message - the message to addJMSException - if the message cannot be added
public int getOutstanding(JmsDestination destination)
throws javax.jms.JMSException
JMSException
exception will be raised.destination - - the destination to queryJMSException - - if destination is null or of type JMSQueue
public boolean hasMessages(ConsumerEndpoint consumer)
throws javax.jms.JMSException
consumer - - the consumer to checkJMSException - - if the consumer can't be checked
public void addEventListener(JmsDestination destination,
MessageManagerEventListener listener)
If a listener is already registered for a particuler destination then it fails silently.
destination - - what messgaes to listen forlistener - - a JmsMessageListener instance
public java.util.Iterator getConsumers(JmsDestination destination)
throws javax.jms.JMSException
Consumer objects.JMSException - public javax.jms.Message getMessage(MessageHandle handle)
PersistentMessageHandle then we need to also attempt to
resolve it from the persistent store.id - - message identity
public void removeEventListener(JmsDestination destination,
MessageManagerEventListener listener)
destination - - destination that it listens forlistener - - listener for that destination.public javax.jms.Message removeMessage(MessageId id)
id - - identity of the message
public ConsumerEndpoint resolveConsumer(JmsDestination destination,
java.lang.String id)
destination - the destinationname - the name of the consumerpublic JmsDestination resolve(java.lang.String name)
name - the name of the destination
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||