|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
| Method Summary | |
boolean |
addDestination(java.lang.String name,
boolean queue)
Add a new destination to the database. |
boolean |
addDurableConsumer(java.lang.String topic,
java.lang.String consumer)
Add the specified durable consumer |
boolean |
addMessage(MessageImpl message)
Add a new message to the database. |
boolean |
addMessageHandle(PersistentMessageHandle handle)
Add the specified persistent message handle. |
boolean |
checkDestination(java.lang.String name)
Determine if a particular destination name exists |
boolean |
clearDB()
Clear everthing (all messages, handles, destinations, etc.) out of the persistent manager's storage. |
boolean |
clearMessages()
Clear all messages and message handles out of the persistent manager's storage. |
void |
closePersistentStore()
Close persistentStore if open if open. |
boolean |
durableConsumerExists(java.lang.String name)
Check if the durable consumer exists |
java.util.Enumeration |
getAllDestinations()
Get a list of all destinations stored in the database |
java.util.HashMap |
getAllDurableConsumers()
Return a dictionary of all registered durable consumers. |
int |
getDurableConsumerMessageCount(java.lang.String destination,
java.lang.String name)
Return the number of unsent message for the specified durable consumer. |
java.util.Enumeration |
getDurableConsumers(java.lang.String topic)
Get an enumerated list of all durable consumers for the specified JmsTopic destination |
MessageImpl |
getMessage(java.lang.String id)
Get a message from the persistence store. |
java.util.Vector |
getMessageHandles(JmsDestination destination,
java.lang.String name)
Get all the persistent message handles for the specified destination and consumer name. |
java.util.Vector |
getMessages(PersistentMessageHandle handle)
Get at least the next message given the specified persistent handle. |
java.util.Vector |
getNonExpiredMessages(JmsDestination destination)
Retrieve a list of unexpired MessageHandle objects, for the
specified destination. |
int |
getQueueMessageCount(java.lang.String name)
Get the number of unsent messages for a the specified queue |
java.util.Vector |
getUnprocessedMessages()
Return a list of unprocessed messages. |
int |
purgeMessages()
Purge all processed messages from the database. |
boolean |
removeDestination(java.lang.String destination)
Remove the destination with the specified name and all registered consumers from the database. |
boolean |
removeDurableConsumer(java.lang.String consumer)
Remove the durable consumer for the specified topic. |
int |
removeExpiredMessageHandles(java.lang.String name)
Remove any expired message handles associated with the specified destination. |
int |
removeExpiredMessages()
Remove all expired messages and associated references from the database. |
boolean |
removeMessage(java.lang.String id)
Remove the message with the specified identity from the database |
boolean |
removeMessageHandle(PersistentMessageHandle handle)
Remove the specified persistent message handle. |
void |
setupPersistentStore(PersistenceManagerMetaData metadata)
Constructs a persistent store using the specified configuration information. |
boolean |
updateMessage(MessageImpl message)
Update this message in the database |
boolean |
updateMessageHandle(PersistentMessageHandle handle)
Update the specified persistent message handle. |
| Method Detail |
public void setupPersistentStore(PersistenceManagerMetaData metadata)
throws FailedToCreateStoreException
metadata - - database configuration informationFailedToCreateStoreException - Cannot create the persistent store.public void closePersistentStore()
public boolean addMessage(MessageImpl message)
throws PersistenceException
MessageImpl - the new message to add
public boolean updateMessage(MessageImpl message)
throws PersistenceException
MessageImpl - the new message to update
public boolean removeMessage(java.lang.String id)
throws PersistenceException
name - - the identity of the message to remove.
public int removeExpiredMessages()
throws PersistenceException
public java.util.Vector getNonExpiredMessages(JmsDestination destination)
throws PersistenceException
MessageHandle objects, for the
specified destination.destination - - the destination in question
public MessageImpl getMessage(java.lang.String id)
throws PersistenceException
String - The id of the message to search for
public java.util.Vector getMessages(PersistentMessageHandle handle)
throws PersistenceException
handle - - the persistent handle to resolve
public java.util.Vector getUnprocessedMessages()
throws PersistenceException
public boolean addMessageHandle(PersistentMessageHandle handle)
throws PersistenceException
handle - - the persistent handle to add
public boolean updateMessageHandle(PersistentMessageHandle handle)
throws PersistenceException
handle - - the persistent handle to update
public int removeExpiredMessageHandles(java.lang.String name)
throws PersistenceException
name - - the name of the destination for which expired handles should be removed
public boolean removeMessageHandle(PersistentMessageHandle handle)
throws PersistenceException
handle - - the persistent handle to remove
public java.util.Vector getMessageHandles(JmsDestination destination,
java.lang.String name)
throws PersistenceException
The returned messages reference unacked or unsent messages
NEED A STRATEGY WHEN WE HAVE LOTS OF MESSAGE HANDLES
destination - - the destination to referencename - - the consumer name
public boolean addDurableConsumer(java.lang.String topic,
java.lang.String consumer)
throws PersistenceException
topic - - the name of the topicname - - the name of the consumer
public boolean removeDurableConsumer(java.lang.String consumer)
throws PersistenceException
consumer - - the consumer name
public boolean durableConsumerExists(java.lang.String name)
throws PersistenceException
name - - durable consumer name
public java.util.Enumeration getDurableConsumers(java.lang.String topic)
throws PersistenceException
topic - - the topic to query
public java.util.HashMap getAllDurableConsumers()
throws PersistenceException
public boolean addDestination(java.lang.String name,
boolean queue)
throws PersistenceException
name - - the destination namequeue - - true if it pertains to a queue
public boolean removeDestination(java.lang.String destination)
throws PersistenceException
destination - - the name of the destination
public boolean checkDestination(java.lang.String name)
throws PersistenceException
name - - the name to query
public java.util.Enumeration getAllDestinations()
throws PersistenceException
public int getQueueMessageCount(java.lang.String name)
throws PersistenceException
name - - the name of the queue
public int getDurableConsumerMessageCount(java.lang.String destination,
java.lang.String name)
throws PersistenceException
destination - - the destination namename - - the name of the durable subscriber
public int purgeMessages()
throws PersistenceException
public boolean clearDB()
throws FailedToCreateStoreException
public boolean clearMessages()
throws FailedToCreateStoreException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||