Package org.infinispan.xsite
Class NoOpBackupSender
- java.lang.Object
-
- org.infinispan.xsite.NoOpBackupSender
-
- All Implemented Interfaces:
BackupSender
public class NoOpBackupSender extends java.lang.Object implements BackupSender
A no-op implementation ofBackupSender
.This class is used when cross-site replication is disabled.
- Since:
- 10.0
- Author:
- Pedro Ruivo
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.infinispan.xsite.BackupSender
BackupSender.BringSiteOnlineResponse, BackupSender.TakeSiteOfflineResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InvocationStage
backupCommit(org.infinispan.commands.tx.CommitCommand command, javax.transaction.Transaction transaction)
InvocationStage
backupPrepare(org.infinispan.commands.tx.PrepareCommand command, org.infinispan.transaction.impl.AbstractCacheTransaction cacheTransaction, javax.transaction.Transaction transaction)
Prepares a transaction on the remote site.InvocationStage
backupRollback(org.infinispan.commands.tx.RollbackCommand command, javax.transaction.Transaction transaction)
InvocationStage
backupWrite(org.infinispan.commands.write.WriteCommand command, org.infinispan.commands.VisitableCommand originalCommand)
BackupSender.BringSiteOnlineResponse
bringSiteOnline(java.lang.String siteName)
Brings a site with the given name back online.static NoOpBackupSender
getInstance()
OfflineStatus
getOfflineStatus(java.lang.String siteName)
java.util.Map<java.lang.String,java.lang.Boolean>
status()
Returns a Map having as entries the site names and as value Boolean.TRUE if the site is online and Boolean.FALSE if it is offline.BackupSender.TakeSiteOfflineResponse
takeSiteOffline(java.lang.String siteName)
java.lang.String
toString()
-
-
-
Method Detail
-
getInstance
public static NoOpBackupSender getInstance()
-
backupPrepare
public InvocationStage backupPrepare(org.infinispan.commands.tx.PrepareCommand command, org.infinispan.transaction.impl.AbstractCacheTransaction cacheTransaction, javax.transaction.Transaction transaction)
Description copied from interface:BackupSender
Prepares a transaction on the remote site.- Specified by:
backupPrepare
in interfaceBackupSender
-
backupWrite
public InvocationStage backupWrite(org.infinispan.commands.write.WriteCommand command, org.infinispan.commands.VisitableCommand originalCommand)
- Specified by:
backupWrite
in interfaceBackupSender
-
backupCommit
public InvocationStage backupCommit(org.infinispan.commands.tx.CommitCommand command, javax.transaction.Transaction transaction)
- Specified by:
backupCommit
in interfaceBackupSender
-
backupRollback
public InvocationStage backupRollback(org.infinispan.commands.tx.RollbackCommand command, javax.transaction.Transaction transaction)
- Specified by:
backupRollback
in interfaceBackupSender
-
getOfflineStatus
public OfflineStatus getOfflineStatus(java.lang.String siteName)
- Specified by:
getOfflineStatus
in interfaceBackupSender
-
status
public java.util.Map<java.lang.String,java.lang.Boolean> status()
Description copied from interface:BackupSender
Returns a Map having as entries the site names and as value Boolean.TRUE if the site is online and Boolean.FALSE if it is offline.- Specified by:
status
in interfaceBackupSender
-
bringSiteOnline
public BackupSender.BringSiteOnlineResponse bringSiteOnline(java.lang.String siteName)
Description copied from interface:BackupSender
Brings a site with the given name back online.- Specified by:
bringSiteOnline
in interfaceBackupSender
-
takeSiteOffline
public BackupSender.TakeSiteOfflineResponse takeSiteOffline(java.lang.String siteName)
- Specified by:
takeSiteOffline
in interfaceBackupSender
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-