Package org.infinispan.xsite
Class BaseBackupReceiver
- java.lang.Object
-
- org.infinispan.xsite.BaseBackupReceiver
-
- All Implemented Interfaces:
BackupReceiver
- Direct Known Subclasses:
ClusteredCacheBackupReceiver,LocalCacheBackupReceiver
public abstract class BaseBackupReceiver extends java.lang.Object implements BackupReceiver
Common implementation logic forBackupReceiver- Since:
- 7.1
- Author:
- Mircea Markus, Pedro Ruivo
-
-
Field Summary
Fields Modifier and Type Field Description protected AdvancedCache<java.lang.Object,java.lang.Object>cacheprotected ByteStringcacheNameprotected TimeServicetimeService
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseBackupReceiver(Cache<java.lang.Object,java.lang.Object> cache)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidassertAllowInvocation()CachegetCache()java.lang.ObjecthandleRemoteCommand(org.infinispan.commands.VisitableCommand command)protected static XSiteStatePushCommandnewStatePushCommand(AdvancedCache<?,?> cache, java.util.List<XSiteState> stateList)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.xsite.BackupReceiver
handleStateTransferControl, handleStateTransferState
-
-
-
-
Field Detail
-
cache
protected final AdvancedCache<java.lang.Object,java.lang.Object> cache
-
cacheName
protected final ByteString cacheName
-
timeService
protected final TimeService timeService
-
-
Constructor Detail
-
BaseBackupReceiver
protected BaseBackupReceiver(Cache<java.lang.Object,java.lang.Object> cache)
-
-
Method Detail
-
newStatePushCommand
protected static XSiteStatePushCommand newStatePushCommand(AdvancedCache<?,?> cache, java.util.List<XSiteState> stateList)
-
getCache
public final Cache getCache()
- Specified by:
getCachein interfaceBackupReceiver
-
handleRemoteCommand
public final java.lang.Object handleRemoteCommand(org.infinispan.commands.VisitableCommand command) throws java.lang.Throwable- Specified by:
handleRemoteCommandin interfaceBackupReceiver- Throws:
java.lang.Throwable
-
assertAllowInvocation
protected final void assertAllowInvocation()
-
-