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
BackupReceiver
implementation 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<Object,Object> cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleStateTransferControl(XSiteStateTransferControlCommand command)
It handles the state transfer control from a remote site.void
handleStateTransferState(XSiteStatePushCommand cmd)
It handles the state transfer state from a remote site.-
Methods inherited from class org.infinispan.xsite.BaseBackupReceiver
assertAllowInvocation, getCache, handleRemoteCommand, newStatePushCommand
-
-
-
-
Method Detail
-
handleStateTransferControl
public void handleStateTransferControl(XSiteStateTransferControlCommand command) throws Exception
Description copied from interface:BackupReceiver
It 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:
Exception
-
handleStateTransferState
public void handleStateTransferState(XSiteStatePushCommand cmd) throws Exception
Description copied from interface:BackupReceiver
It 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:
Exception
-
-