|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.cache.loader.AbstractCacheLoader
org.jboss.cache.loader.DelegatingCacheLoader
org.jboss.cache.loader.TcpDelegatingCacheLoader
public class TcpDelegatingCacheLoader
DelegatingCacheLoader implementation which delegates to a remote (not in the same VM) CacheImpl using TCP/IP for communication. Example configuration for connecting to a TcpCacheServer running at myHost:12345:
org.jboss.cache.loader.TcpDelegatingCacheLoader host=localhost port=2099
Field Summary |
---|
Fields inherited from class org.jboss.cache.loader.DelegatingCacheLoader |
---|
delegateExists, delegateGet, delegateGetChildrenNames, delegateGetKey, delegateLoadEntireState, delegatePut, delegatePutKeyVal, delegateRemove, delegateRemoveData, delegateRemoveKey, delegateStoreEntireState, putList |
Fields inherited from class org.jboss.cache.loader.AbstractCacheLoader |
---|
cache, regionManager |
Constructor Summary | |
---|---|
TcpDelegatingCacheLoader()
Default constructor. |
|
TcpDelegatingCacheLoader(java.lang.String host,
int port)
Allows programmatic configuration. |
Method Summary | |
---|---|
protected boolean |
delegateExists(Fqn name)
|
protected java.util.Map |
delegateGet(Fqn name)
|
protected java.util.Set |
delegateGetChildrenNames(Fqn fqn)
|
protected void |
delegateLoadEntireState(java.io.ObjectOutputStream os)
|
protected void |
delegateLoadState(Fqn subtree,
java.io.ObjectOutputStream os)
|
protected void |
delegatePut(Fqn name,
java.util.Map attributes)
|
protected java.lang.Object |
delegatePut(Fqn name,
java.lang.Object key,
java.lang.Object value)
|
protected void |
delegateRemove(Fqn name)
|
protected java.lang.Object |
delegateRemove(Fqn name,
java.lang.Object key)
|
protected void |
delegateRemoveData(Fqn name)
|
protected void |
delegateStoreEntireState(java.io.ObjectInputStream is)
|
protected void |
delegateStoreState(Fqn subtree,
java.io.ObjectInputStream is)
|
CacheLoaderConfig.IndividualCacheLoaderConfig |
getConfig()
Gets the configuration. |
void |
put(java.util.List<Modification> modifications)
Applies all modifications to the backend store. |
void |
setConfig(CacheLoaderConfig.IndividualCacheLoaderConfig base)
Allows configuration via XML config file. |
void |
start()
Lifecycle method, called when the cache loader is started. |
void |
stop()
Lifecycle method, called when the cache loader is stopped. |
Methods inherited from class org.jboss.cache.loader.DelegatingCacheLoader |
---|
commit, create, destroy, exists, get, getChildrenNames, loadEntireState, loadState, prepare, put, put, put, remove, remove, removeData, rollback, storeEntireState, storeState |
Methods inherited from class org.jboss.cache.loader.AbstractCacheLoader |
---|
getMarshaller, getNodeDataList, loadStateHelper, setCache, setRegionManager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TcpDelegatingCacheLoader()
public TcpDelegatingCacheLoader(java.lang.String host, int port)
host
- The host on which to look up the remote object.port
- The port on which to look up the remote object.Method Detail |
---|
public void setConfig(CacheLoaderConfig.IndividualCacheLoaderConfig base)
base
- May be an instance of the CacheLoaderConfig.IndividualCacheLoaderConfig
base
class, in which case the cache loader should use the
CacheLoaderConfig.IndividualCacheLoaderConfig.getProperties()
method to find configuration information. Alternatively,
may be a type-specific subclass of CacheLoaderConfig.IndividualCacheLoaderConfig
,
if there is one.CacheLoader.setConfig(org.jboss.cache.config.CacheLoaderConfig.IndividualCacheLoaderConfig)
public CacheLoaderConfig.IndividualCacheLoaderConfig getConfig()
CacheLoader
CacheLoaderConfig.IndividualCacheLoaderConfig
object.public void start() throws java.lang.Exception
CacheLoader
start
in interface CacheLoader
start
in class DelegatingCacheLoader
java.lang.Exception
public void stop()
CacheLoader
stop
in interface CacheLoader
stop
in class DelegatingCacheLoader
protected java.util.Set delegateGetChildrenNames(Fqn fqn) throws java.lang.Exception
delegateGetChildrenNames
in class DelegatingCacheLoader
java.lang.Exception
DelegatingCacheLoader.delegateGetChildrenNames(org.jboss.cache.Fqn)
protected java.util.Map delegateGet(Fqn name) throws java.lang.Exception
delegateGet
in class DelegatingCacheLoader
java.lang.Exception
DelegatingCacheLoader.delegateGet(org.jboss.cache.Fqn)
protected boolean delegateExists(Fqn name) throws java.lang.Exception
delegateExists
in class DelegatingCacheLoader
java.lang.Exception
DelegatingCacheLoader.delegateExists(org.jboss.cache.Fqn)
protected java.lang.Object delegatePut(Fqn name, java.lang.Object key, java.lang.Object value) throws java.lang.Exception
delegatePut
in class DelegatingCacheLoader
java.lang.Exception
DelegatingCacheLoader.delegatePut(org.jboss.cache.Fqn,Object,Object)
protected void delegatePut(Fqn name, java.util.Map attributes) throws java.lang.Exception
delegatePut
in class DelegatingCacheLoader
java.lang.Exception
DelegatingCacheLoader.delegatePut(org.jboss.cache.Fqn,java.util.Map)
public void put(java.util.List<Modification> modifications) throws java.lang.Exception
CacheLoader
put
in interface CacheLoader
put
in class AbstractCacheLoader
modifications
- A Listjava.lang.Exception
protected java.lang.Object delegateRemove(Fqn name, java.lang.Object key) throws java.lang.Exception
delegateRemove
in class DelegatingCacheLoader
java.lang.Exception
DelegatingCacheLoader.delegateRemove(org.jboss.cache.Fqn,Object)
protected void delegateRemove(Fqn name) throws java.lang.Exception
delegateRemove
in class DelegatingCacheLoader
java.lang.Exception
DelegatingCacheLoader.delegateRemove(org.jboss.cache.Fqn)
protected void delegateRemoveData(Fqn name) throws java.lang.Exception
delegateRemoveData
in class DelegatingCacheLoader
java.lang.Exception
DelegatingCacheLoader.delegateRemoveData(org.jboss.cache.Fqn)
protected void delegateLoadEntireState(java.io.ObjectOutputStream os) throws java.lang.Exception
delegateLoadEntireState
in class DelegatingCacheLoader
java.lang.Exception
protected void delegateLoadState(Fqn subtree, java.io.ObjectOutputStream os) throws java.lang.Exception
delegateLoadState
in class DelegatingCacheLoader
java.lang.Exception
protected void delegateStoreEntireState(java.io.ObjectInputStream is) throws java.lang.Exception
delegateStoreEntireState
in class DelegatingCacheLoader
java.lang.Exception
protected void delegateStoreState(Fqn subtree, java.io.ObjectInputStream is) throws java.lang.Exception
delegateStoreState
in class DelegatingCacheLoader
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |