|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jrun.jms.core.messagemgr.DestinationManager
| Method Summary | |
void |
collectGarbage()
Perform any garbage collection on this resource. |
boolean |
createAdministeredDestination(JmsDestination dest)
Create an administered destination using the specified destination. |
void |
createDestination(JmsDestination destination)
Create a non-administered destination and cache it. |
DestinationCache |
createDestinationCache(JmsDestination dest)
Create a destination of the specified type. |
void |
deleteAdministeredDestination(JmsDestination dest)
Remove the corresponding administered destination from persistent store, from transient memory and from the jndi context. |
JmsDestination |
destinationFromString(java.lang.String name)
Return the JmsDestination corresponding to the specified destination name |
java.util.Iterator |
destinationNames()
Return a list of destination names currently supported by the destination manager. |
java.util.Iterator |
destinations()
Return a list of DestinationCache objects that are currently
active and in memory. |
void |
destroy()
Destroy this manager. |
void |
destroyDestinationCache(DestinationCache cache)
Delete the specfied destination |
void |
destroyDestinationCache(JmsDestination dest)
Delete the specfied destination |
void |
destroyDestinationCache(java.lang.String name)
Deprecated. use destroyDestination(JmsDestination) instead |
DestinationCache |
getDestinationCache(JmsDestination dest)
Return the destination cache associated with the dest object |
DestinationCache |
getDestinationCache(MessageImpl message)
Return the DestinationCache for this message. |
DestinationCache |
getDestinationCache(java.lang.String dest)
Return the destination object associated with destination |
int |
getGarbageCollectionEvent()
Returns garbage collection event type |
protected Logger |
getLogger()
Return a reference to the logger |
boolean |
hasDestinationCache(JmsDestination dest)
Check if the specified destination exists. |
static DestinationManager |
instance()
Return the singleton destination manager, which is created during the initialiation process. |
boolean |
messageAdded(JmsDestination destination,
MessageImpl message)
This method is called when the #MessageManager adds a message
for this destination to the cache |
void |
messageRemoved(JmsDestination destination,
MessageImpl message)
This method is called when the #MessageManager removes a
message from the cache. |
boolean |
persistentMessageAdded(JmsDestination destination,
MessageImpl message)
This event is called when the MessageMgr adds a persistent
message to the cache. |
void |
persistentMessageRemoved(JmsDestination destination,
MessageImpl message)
This event is called when a message is removed from the DestinationCache. |
void |
registerConfiguredAdministeredDestinations()
This method will create the administered destinations specified in the configuration. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static DestinationManager instance()
public DestinationCache createDestinationCache(JmsDestination dest)
dest - - the destination to createpublic void destroyDestinationCache(DestinationCache cache)
cahe - - the destination to destroypublic void destroyDestinationCache(java.lang.String name)
name - - destination namepublic void destroyDestinationCache(JmsDestination dest)
dest - - the destination to destroypublic JmsDestination destinationFromString(java.lang.String name)
name - - destination namepublic DestinationCache getDestinationCache(JmsDestination dest)
dest - - the destinationpublic DestinationCache getDestinationCache(java.lang.String dest)
dest - - the name of the destinationpublic DestinationCache getDestinationCache(MessageImpl message)
DestinationCache for this message.message - - the message to querypublic boolean hasDestinationCache(JmsDestination dest)
dest - - destination to checkpublic void createDestination(JmsDestination destination)
destination - - the destination to create
public boolean createAdministeredDestination(JmsDestination dest)
throws javax.jms.JMSException
dest - - the destination
public void deleteAdministeredDestination(JmsDestination dest)
throws javax.jms.JMSException
dest - - the destination to removepublic java.util.Iterator destinationNames()
JmsDestination objectspublic java.util.Iterator destinations()
DestinationCache objects that are currently
active and in memory. This will return a list of all destination
types (temporary. transient, administered}.public void registerConfiguredAdministeredDestinations()
public boolean messageAdded(JmsDestination destination,
MessageImpl message)
MessageManagerEventListener#MessageManager adds a message
for this destination to the cachemessageAdded in interface MessageManagerEventListenerjrun.jms.core.messagemgr.MessageManagerEventListenerdestination - - the message's destinationmessage - - message added to cache
public void messageRemoved(JmsDestination destination,
MessageImpl message)
MessageManagerEventListener#MessageManager removes a
message from the cache.messageRemoved in interface MessageManagerEventListenerjrun.jms.core.messagemgr.MessageManagerEventListenerdestination - - the message's destinationmessage - - message removed from cache
public boolean persistentMessageAdded(JmsDestination destination,
MessageImpl message)
throws PersistenceException
MessageManagerEventListenerMessageMgr adds a persistent
message to the cache.persistentMessageAdded in interface MessageManagerEventListenerjrun.jms.core.messagemgr.MessageManagerEventListenerdestination - - the message's destinationmessage - - message added to cachePersistenceException - - if there is a persistence related problem
public void persistentMessageRemoved(JmsDestination destination,
MessageImpl message)
throws PersistenceException
MessageManagerEventListenerpersistentMessageRemoved in interface MessageManagerEventListenerjrun.jms.core.messagemgr.MessageManagerEventListenermessage - - message to remove from cachedestination - - the message's destinationPersistenceException - - if there is a persistence related problempublic int getGarbageCollectionEvent()
GarbageCollectablegetGarbageCollectionEvent in interface GarbageCollectablepublic void collectGarbage()
GarbageCollectablecollectGarbage in interface GarbageCollectableprotected Logger getLogger()
public void destroy()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||