|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.util.store.AbstractObjectStore<T>
org.mule.util.store.QueuePersistenceObjectStore<T>
public class QueuePersistenceObjectStore<T extends Serializable>
This is an ObjectStore implementation that is to be used to persist
messages on Mule's internal queues. Note that this is a specialized implementation
of the ObjectStore interface which hard-codes the location of the
persistence folder to $MULE_HOME/.mule/queuestore.
This implementation uses Java serialization to implement persistence.
| Field Summary | |
|---|---|
static String |
DEFAULT_QUEUE_STORE
The default queueStore directory for persistence |
| Fields inherited from class org.mule.util.store.AbstractObjectStore |
|---|
logger |
| Constructor Summary | |
|---|---|
QueuePersistenceObjectStore()
Default constructor for Spring. |
|
QueuePersistenceObjectStore(MuleContext context)
|
|
| Method Summary | |
|---|---|
List<Serializable> |
allKeys()
|
void |
close()
Close the underlying store. |
protected List<Serializable> |
collectAllKeys()
|
protected void |
createStoreDirectory(File directory)
|
protected File |
createStoreFile(Serializable key)
|
protected void |
deleteStoreFile(File file)
|
protected T |
deserialize(File file)
|
protected boolean |
doContains(Serializable key)
|
protected T |
doRemove(Serializable key)
|
protected T |
doRetrieve(Serializable key)
|
protected void |
doStore(Serializable key,
T value)
|
protected void |
ensureStoreDirectoryExists(File outputFile)
|
boolean |
isPersistent()
Is this store persistent? |
protected void |
listStoredFiles(File directory,
List<Serializable> keys)
|
void |
open()
Open the underlying store. |
protected void |
serialize(T value,
File outputFile)
|
void |
setMuleContext(MuleContext context)
|
| Methods inherited from class org.mule.util.store.AbstractObjectStore |
|---|
contains, remove, retrieve, store |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.mule.api.store.ObjectStore |
|---|
contains, remove, retrieve, store |
| Field Detail |
|---|
public static final String DEFAULT_QUEUE_STORE
| Constructor Detail |
|---|
public QueuePersistenceObjectStore()
public QueuePersistenceObjectStore(MuleContext context)
| Method Detail |
|---|
public boolean isPersistent()
isPersistent in interface ObjectStore<T extends Serializable>
public void open()
throws ObjectStoreException
ListableObjectStore
open in interface ListableObjectStore<T extends Serializable>ObjectStoreException - if an exception occurred while opening the underlying store.
protected void createStoreDirectory(File directory)
throws ObjectStoreException
ObjectStoreException
public void close()
throws ObjectStoreException
ListableObjectStore
close in interface ListableObjectStore<T extends Serializable>ObjectStoreException - if an exception occurred while closing the underlying store.
public List<Serializable> allKeys()
throws ObjectStoreException
allKeys in interface ListableObjectStore<T extends Serializable>ObjectStoreException - if an exception occurred while collecting the list of all keys.
protected List<Serializable> collectAllKeys()
throws ObjectStoreException
ObjectStoreException
protected void listStoredFiles(File directory,
List<Serializable> keys)
throws IOException,
ClassNotFoundException
IOException
ClassNotFoundException
protected boolean doContains(Serializable key)
throws ObjectStoreException
doContains in class AbstractObjectStore<T extends Serializable>ObjectStoreException
protected void doStore(Serializable key,
T value)
throws ObjectStoreException
doStore in class AbstractObjectStore<T extends Serializable>ObjectStoreException
protected void ensureStoreDirectoryExists(File outputFile)
throws ObjectStoreException
ObjectStoreException
protected void serialize(T value,
File outputFile)
throws ObjectStoreException
ObjectStoreException
protected T doRetrieve(Serializable key)
throws ObjectStoreException
doRetrieve in class AbstractObjectStore<T extends Serializable>ObjectStoreException
protected File createStoreFile(Serializable key)
throws ObjectStoreException
ObjectStoreException
protected T deserialize(File file)
throws ObjectStoreException
ObjectStoreException
protected T doRemove(Serializable key)
throws ObjectStoreException
doRemove in class AbstractObjectStore<T extends Serializable>ObjectStoreException
protected void deleteStoreFile(File file)
throws ObjectStoreException
ObjectStoreExceptionpublic void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAware
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||