Class AggregateBackupResponse

  • All Implemented Interfaces:
    BackupResponse

    public class AggregateBackupResponse
    extends java.lang.Object
    implements BackupResponse
    Since:
    5.2
    Author:
    Mircea Markus
    • Method Detail

      • waitForBackupToFinish

        public void waitForBackupToFinish()
                                   throws java.lang.Exception
        Specified by:
        waitForBackupToFinish in interface BackupResponse
        Throws:
        java.lang.Exception
      • getFailedBackups

        public java.util.Map<java.lang.String,​java.lang.Throwable> getFailedBackups()
        Specified by:
        getFailedBackups in interface BackupResponse
      • getCommunicationErrors

        public java.util.Set<java.lang.String> getCommunicationErrors()
        Description copied from interface: BackupResponse
        Returns the list of sites where the backups failed due to a bridge communication error (as opposed to an error caused by Infinispan, e.g. due to a lock acquisition timeout).
        Specified by:
        getCommunicationErrors in interface BackupResponse
      • getSendTimeMillis

        public long getSendTimeMillis()
        Description copied from interface: BackupResponse
        Return the time in millis when this operation was initiated.
        Specified by:
        getSendTimeMillis in interface BackupResponse
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • notifyFinish

        public void notifyFinish​(java.util.function.LongConsumer timeElapsedConsumer)
        Description copied from interface: BackupResponse
        Registers a listener that is notified when the cross-site request is finished.

        The parameter is the time spent in the network in milliseconds.

        Specified by:
        notifyFinish in interface BackupResponse
        Parameters:
        timeElapsedConsumer - The Consumer to be invoke.
      • isSync

        public boolean isSync​(java.lang.String siteName)
        Specified by:
        isSync in interface BackupResponse
        Returns:
        true if the request for the remote site is synchronous.