org.jboss.cache.invocation
Class RemoteCacheInvocationDelegate

java.lang.Object
  extended by org.jboss.cache.invocation.AbstractInvocationDelegate
      extended by org.jboss.cache.invocation.CacheInvocationDelegate
          extended by org.jboss.cache.invocation.RemoteCacheInvocationDelegate
All Implemented Interfaces:
Cache, CacheSPI

public class RemoteCacheInvocationDelegate
extends CacheInvocationDelegate

A sublcass of CacheInvocationDelegate, used by remote instances to invoke methods on current cache.

Since:
2.1.0
Author:
Manik Surtani (manik@jboss.org)

Field Summary
 
Fields inherited from class org.jboss.cache.invocation.AbstractInvocationDelegate
cache, configuration, interceptorChain, invocationContextContainer, log, originLocal
 
Constructor Summary
RemoteCacheInvocationDelegate()
           
 
Method Summary
 void _replicate(List<MethodCall> methodCalls)
          Replicates a list of method calls.
 Object _replicate(MethodCall methodCall)
           
 void announceBuddyPoolName(org.jgroups.Address address, String buddyPoolName)
           
 void assignToBuddyGroup(BuddyGroup group, Map<Fqn,byte[]> state)
           
 void block()
           
 List clusteredGet(MethodCall methodCall, Boolean searchBackupSubtrees)
          A 'clustered get' call, called from a remote ClusteredCacheLoader.
 void dataGravitationCleanup(Fqn primary, Fqn backup)
           
 void removeFromBuddyGroup(String groupName)
           
 void unblock()
           
 
Methods inherited from class org.jboss.cache.invocation.CacheInvocationDelegate
addCacheListener, addCacheListener, addInterceptor, addInterceptor, clearData, clearData, create, destroy, evict, evict, exists, exists, get, get, getBuddyManager, getCacheListeners, getCacheListeners, getCacheLoaderManager, getCacheStatus, getClusterName, getConfiguration, getCurrentTransaction, getCurrentTransaction, getData, getDelegationTarget, getChildrenNames, getChildrenNames, getInterceptorChain, getInternalFqns, getInvocationContext, getKeys, getKeys, getLocalAddress, getMarshaller, getMembers, getNode, getNode, getNotifier, getNumberOfAttributes, getNumberOfLocksHeld, getNumberOfNodes, getRegion, getRegionManager, getRoot, getRPCManager, getStateTransferManager, getTransactionManager, getTransactionTable, getVersion, gravitateData, move, move, peek, peek, put, put, put, put, putForExternalRead, remove, remove, removeCacheListener, removeCacheListener, removeInterceptor, removeInterceptor, removeNode, removeNode, removeRegion, setInvocationContext, start, stop, toString
 
Methods inherited from class org.jboss.cache.invocation.AbstractInvocationDelegate
assertIsConstructed, invoke, invoke
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoteCacheInvocationDelegate

public RemoteCacheInvocationDelegate()
Method Detail

assignToBuddyGroup

public void assignToBuddyGroup(BuddyGroup group,
                               Map<Fqn,byte[]> state)
                        throws Exception
Throws:
Exception

removeFromBuddyGroup

public void removeFromBuddyGroup(String groupName)
                          throws BuddyNotInitException
Throws:
BuddyNotInitException

announceBuddyPoolName

public void announceBuddyPoolName(org.jgroups.Address address,
                                  String buddyPoolName)

dataGravitationCleanup

public void dataGravitationCleanup(Fqn primary,
                                   Fqn backup)
                            throws Exception
Throws:
Exception

_replicate

public Object _replicate(MethodCall methodCall)
                  throws Throwable
Throws:
Throwable

_replicate

public void _replicate(List<MethodCall> methodCalls)
                throws Throwable
Replicates a list of method calls.

Throws:
Throwable

block

public void block()

unblock

public void unblock()

clusteredGet

public List clusteredGet(MethodCall methodCall,
                         Boolean searchBackupSubtrees)
A 'clustered get' call, called from a remote ClusteredCacheLoader.

Returns:
a List containing 2 elements: (true or false) and a value (Object). If buddy replication is used one further element is added - an Fqn of the backup subtree in which this node may be found.


Copyright © 2008 JBoss, a division of Red Hat. All Rights Reserved.