|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.jboss.cache.loader.FileCacheLoader
|
+--org.jboss.cache.loader.FileExtendedCacheLoader
A FileExtendedCacheLoader.
| Field Summary |
| Fields inherited from class org.jboss.cache.loader.FileCacheLoader |
DATA, DIR_SUFFIX |
| Constructor Summary | |
FileExtendedCacheLoader()
Create a new FileExtendedCacheLoader. |
|
| Method Summary | |
byte[] |
loadEntireState()
Overrides the superclass method
by taking advantage of any special classloader registered for the
root node. |
byte[] |
loadState(Fqn subtree)
Fetch a portion of the state for this cache from secondary storage (disk, DB) and return it as a byte buffer. |
void |
setRegionManager(RegionManager manager)
Sets the RegionManager this object should use to manage
marshalling/unmarshalling of different regions using different
classloaders. |
void |
storeEntireState(byte[] state)
Overrides the superclass method
by taking advantage of any special classloader registered for the
root node. |
void |
storeState(byte[] state,
Fqn subtree)
Store the given portion of the cache tree's state in secondary storage. |
| Methods inherited from class org.jboss.cache.loader.FileCacheLoader |
commit, create, destroy, exists, get, get, getChildrenNames, loadAttributes, loadStateFromFilessystem, prepare, put, put, put, put, remove, remove, removeData, rollback, setCache, setConfig, start, stop, storeAttributes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.cache.loader.CacheLoader |
commit, exists, get, get, getChildrenNames, prepare, put, put, put, remove, remove, removeData, rollback, setCache, setConfig |
| Methods inherited from interface org.jboss.system.Service |
create, destroy, start, stop |
| Constructor Detail |
public FileExtendedCacheLoader()
| Method Detail |
public byte[] loadState(Fqn subtree)
throws java.lang.Exception
ExtendedCacheLoaderExtendedCacheLoader.storeState(byte[], Fqn).
loadState in interface ExtendedCacheLoadersubtree - Fqn naming the root (i.e. highest level parent) node of
the subtree for which state is requested.
java.lang.ExceptionTreeCache.activateRegion(String)
public void storeState(byte[] state,
Fqn subtree)
throws java.lang.Exception
ExtendedCacheLoader
storeState in interface ExtendedCacheLoaderstate - the state to storesubtree - Fqn naming the root (i.e. highest level parent) node of
the subtree included in state.
java.lang.Exceptionpublic void setRegionManager(RegionManager manager)
ExtendedCacheLoaderRegionManager this object should use to manage
marshalling/unmarshalling of different regions using different
classloaders.
NOTE: This method is only intended to be used
by the TreeCache instance this cache loader is
associated with.
setRegionManager in interface ExtendedCacheLoadermanager - the region manager to use, or null.
public byte[] loadEntireState()
throws java.lang.Exception
superclass method
by taking advantage of any special classloader registered for the
root node.
loadEntireState in interface CacheLoaderloadEntireState in class FileCacheLoaderjava.lang.Exception
public void storeEntireState(byte[] state)
throws java.lang.Exception
superclass method
by taking advantage of any special classloader registered for the
root node.
storeEntireState in interface CacheLoaderstoreEntireState in class FileCacheLoaderstate -
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||