Interface BackupSender

  • All Known Implementing Classes:
    BackupSenderImpl, NoOpBackupSender

    public interface BackupSender
    Component responsible with sending backup data to remote sites. The send operation is executed async, it's up to the caller to wait on the returned BackupResponse in the case it wants an sync call.
    Since:
    5.2
    Author:
    Mircea Markus
    See Also:
    BackupResponse
    • Method Detail

      • backupPrepare

        InvocationStage backupPrepare​(org.infinispan.commands.tx.PrepareCommand command,
                                      org.infinispan.transaction.impl.AbstractCacheTransaction cacheTransaction,
                                      javax.transaction.Transaction transaction)
                               throws java.lang.Exception
        Prepares a transaction on the remote site.
        Throws:
        java.lang.Exception
      • backupCommit

        InvocationStage backupCommit​(org.infinispan.commands.tx.CommitCommand command,
                                     javax.transaction.Transaction transaction)
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • backupRollback

        InvocationStage backupRollback​(org.infinispan.commands.tx.RollbackCommand command,
                                       javax.transaction.Transaction transaction)
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • backupWrite

        InvocationStage backupWrite​(org.infinispan.commands.write.WriteCommand command,
                                    org.infinispan.commands.VisitableCommand originalCommand)
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getOfflineStatus

        OfflineStatus getOfflineStatus​(java.lang.String siteName)
      • status

        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.