|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExtendedCacheLoader
Extends the CacheLoader
interface by adding methods to support
serialized transfer of a portion of a cache tree.
NOTE: The methods in this interface will be merged into
CacheLoader
in JBossCache 1.3.
Method Summary | |
---|---|
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 |
storeState(byte[] state,
Fqn subtree)
Store the given portion of the cache tree's state in secondary storage. |
Methods inherited from interface org.jboss.cache.loader.CacheLoader |
---|
commit, exists, get, getChildrenNames, loadEntireState, prepare, put, put, put, remove, remove, removeData, rollback, setCache, setConfig, storeEntireState |
Methods inherited from interface org.jboss.system.Service |
---|
create, destroy, start, stop |
Method Detail |
---|
byte[] loadState(Fqn subtree) throws java.lang.Exception
storeState(byte[], Fqn)
.
subtree
- Fqn naming the root (i.e. highest level parent) node of
the subtree for which state is requested.
java.lang.Exception
TreeCache.activateRegion(String)
void storeState(byte[] state, Fqn subtree) throws java.lang.Exception
state
- the state to storesubtree
- Fqn naming the root (i.e. highest level parent) node of
the subtree included in state
.
java.lang.Exception
void setRegionManager(RegionManager manager)
RegionManager
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.
manager
- the region manager to use, or null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |