Interface BackupSender

  • All Known Implementing Classes:
    BackupSenderImpl

    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

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

        void processResponses​(BackupResponse backupResponse,
                              org.infinispan.commands.VisitableCommand command)
                       throws java.lang.Throwable
        Processes the responses of a backup command. It might throw an exception in the case the replication to the remote site fail, based on the configured CustomFailurePolicy.
        Throws:
        java.lang.Throwable
      • backupWrite

        BackupResponse backupWrite​(org.infinispan.commands.write.WriteCommand command)
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • backupCommit

        BackupResponse backupCommit​(org.infinispan.commands.tx.CommitCommand command)
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • backupRollback

        BackupResponse backupRollback​(org.infinispan.commands.tx.RollbackCommand command)
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • processResponses

        void processResponses​(BackupResponse backupResponse,
                              org.infinispan.commands.VisitableCommand command,
                              javax.transaction.Transaction transaction)
                       throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • 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.