|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.cache.loader.DelegatingCacheLoader (src)
org.jboss.cache.loader.RmiDelegatingCacheLoader
DelegatingCacheLoader implementation which delegates to a remote (not in the same VM) TreeCache using the Java RMI mechanism. If configured via an XML configuration file, the remote TreeCache delegated to is this cacheloader's cache's coordinator. If configured programmatically, this cacheloader may delegate to any remote cache that has been appropriately bound. This CacheLoader expects three configuration properties: host, port and bindName. If the host propety is not specified, it defaults to localhost; if the port property is not specified, it defaults to 1098; if the bindName property is not specified, it defaults to the cacheloader's cache's cluster name.
Constructor Summary | |
RmiDelegatingCacheLoader()
Default constructor. |
|
RmiDelegatingCacheLoader(TreeCache (src) cache,
java.lang.String host,
int port,
java.lang.String bindName)
Allows programmatic configuration. |
Method Summary | |
protected boolean |
delegateExists(Fqn (src) name)
|
protected Node (src) |
delegateGet(Fqn (src) name)
|
protected java.lang.Object |
delegateGet(Fqn (src) name,
java.lang.Object key)
|
protected java.util.Set |
delegateGetChildrenNames(Fqn (src) fqn)
|
byte[] |
delegateLoadEntireState()
|
protected void |
delegatePut(Fqn (src) name,
java.util.Map attributes)
|
protected java.lang.Object |
delegatePut(Fqn (src) name,
java.lang.Object key,
java.lang.Object value)
|
protected void |
delegateRemove(Fqn (src) name)
|
protected java.lang.Object |
delegateRemove(Fqn (src) name,
java.lang.Object key)
|
protected void |
delegateRemoveData(Fqn (src) name)
|
void |
delegateStoreEntireState(byte[] state)
|
void |
setCache(TreeCache (src) cache)
Allows configuration via XML config file. |
void |
setConfig(java.util.Properties props)
Allows configuration via XML config file. |
Methods inherited from class org.jboss.cache.loader.DelegatingCacheLoader (src) |
commit, create, destroy, exists, get, get, getChildrenNames, loadEntireState, prepare, put, put, put, put, remove, remove, removeData, rollback, start, stop, storeEntireState |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RmiDelegatingCacheLoader()
public RmiDelegatingCacheLoader(TreeCache (src) cache, java.lang.String host, int port, java.lang.String bindName)
cache
- The cache that the cacheloader will acting on behalf of.host
- The host on which to look up the remote object.port
- The port on which to look up the remote object.bindName
- The name to which the remote object is bound.Method Detail |
public void setConfig(java.util.Properties props)
setConfig
in interface CacheLoader (src)
setConfig
in class DelegatingCacheLoader (src)
DelegatingCacheLoader.setConfig(java.util.Properties)
public void setCache(TreeCache (src) cache)
setCache
in interface CacheLoader (src)
setCache
in class DelegatingCacheLoader (src)
DelegatingCacheLoader.setCache(org.jboss.cache.TreeCache)
protected java.util.Set delegateGetChildrenNames(Fqn (src) fqn) throws java.lang.Exception
delegateGetChildrenNames
in class DelegatingCacheLoader (src)
java.lang.Exception
DelegatingCacheLoader.delegateGetChildrenNames(org.jboss.cache.Fqn)
protected java.lang.Object delegateGet(Fqn (src) name, java.lang.Object key) throws java.lang.Exception
delegateGet
in class DelegatingCacheLoader (src)
java.lang.Exception
DelegatingCacheLoader.delegateGet(org.jboss.cache.Fqn, java.lang.Object)
protected Node (src) delegateGet(Fqn (src) name) throws java.lang.Exception
delegateGet
in class DelegatingCacheLoader (src)
java.lang.Exception
DelegatingCacheLoader.delegateGet(org.jboss.cache.Fqn)
protected boolean delegateExists(Fqn (src) name) throws java.lang.Exception
delegateExists
in class DelegatingCacheLoader (src)
java.lang.Exception
DelegatingCacheLoader.delegateExists(org.jboss.cache.Fqn)
protected java.lang.Object delegatePut(Fqn (src) name, java.lang.Object key, java.lang.Object value) throws java.lang.Exception
delegatePut
in class DelegatingCacheLoader (src)
java.lang.Exception
DelegatingCacheLoader.delegatePut(org.jboss.cache.Fqn, java.lang.Object, java.lang.Object)
protected void delegatePut(Fqn (src) name, java.util.Map attributes) throws java.lang.Exception
delegatePut
in class DelegatingCacheLoader (src)
java.lang.Exception
DelegatingCacheLoader.delegatePut(org.jboss.cache.Fqn, java.util.Map)
protected java.lang.Object delegateRemove(Fqn (src) name, java.lang.Object key) throws java.lang.Exception
delegateRemove
in class DelegatingCacheLoader (src)
java.lang.Exception
DelegatingCacheLoader.delegateRemove(org.jboss.cache.Fqn, java.lang.Object)
protected void delegateRemove(Fqn (src) name) throws java.lang.Exception
delegateRemove
in class DelegatingCacheLoader (src)
java.lang.Exception
DelegatingCacheLoader.delegateRemove(org.jboss.cache.Fqn)
protected void delegateRemoveData(Fqn (src) name) throws java.lang.Exception
delegateRemoveData
in class DelegatingCacheLoader (src)
java.lang.Exception
DelegatingCacheLoader.delegateRemoveData(org.jboss.cache.Fqn)
public byte[] delegateLoadEntireState() throws java.lang.Exception
delegateLoadEntireState
in class DelegatingCacheLoader (src)
java.lang.Exception
DelegatingCacheLoader.delegateLoadEntireState()
public void delegateStoreEntireState(byte[] state) throws java.lang.Exception
delegateStoreEntireState
in class DelegatingCacheLoader (src)
java.lang.Exception
DelegatingCacheLoader.delegateStoreEntireState(byte[])
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |