Package org.infinispan.xsite
Class ClusteredCacheBackupReceiver
- java.lang.Object
-
- org.infinispan.xsite.BaseBackupReceiver
-
- org.infinispan.xsite.ClusteredCacheBackupReceiver
-
- All Implemented Interfaces:
BackupReceiver
public class ClusteredCacheBackupReceiver extends BaseBackupReceiver
BackupReceiverimplementation for clustered caches.- Since:
- 7.1
- Author:
- Pedro Ruivo
-
-
Field Summary
-
Fields inherited from class org.infinispan.xsite.BaseBackupReceiver
cache, cacheName, timeService
-
-
Constructor Summary
Constructors Constructor Description ClusteredCacheBackupReceiver(Cache<java.lang.Object,java.lang.Object> cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleStateTransferControl(XSiteStateTransferControlCommand command)It handles the state transfer control from a remote site.voidhandleStateTransferState(XSiteStatePushCommand cmd)It handles the state transfer state from a remote site.-
Methods inherited from class org.infinispan.xsite.BaseBackupReceiver
assertAllowInvocation, getCache, handleRemoteCommand, newStatePushCommand
-
-
-
-
Constructor Detail
-
ClusteredCacheBackupReceiver
public ClusteredCacheBackupReceiver(Cache<java.lang.Object,java.lang.Object> cache)
-
-
Method Detail
-
handleStateTransferControl
public void handleStateTransferControl(XSiteStateTransferControlCommand command) throws java.lang.Exception
Description copied from interface:BackupReceiverIt handles the state transfer control from a remote site. The control command must be broadcast to the entire cluster in which the cache exists.- Throws:
java.lang.Exception
-
handleStateTransferState
public void handleStateTransferState(XSiteStatePushCommand cmd) throws java.lang.Exception
Description copied from interface:BackupReceiverIt handles the state transfer state from a remote site. It is possible to have a single node applying the state or forward the state to respective primary owners.- Throws:
java.lang.Exception
-
-