Interface LedgerAuditorManager

    • Method Detail

      • tryToBecomeAuditor

        void tryToBecomeAuditor​(java.lang.String bookieId,
                                java.util.function.Consumer<LedgerAuditorManager.AuditorEvent> listener)
                         throws java.io.IOException,
                                java.lang.InterruptedException
        Try to become the auditor. If there's already another auditor, it will wait until this current instance has become the auditor.
        Parameters:
        bookieId - the identifier for current bookie
        listener - listener that will receive AuditorEvent notifications
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • getCurrentAuditor

        BookieId getCurrentAuditor()
                            throws java.io.IOException,
                                   java.lang.InterruptedException
        Return the information regarding the current auditor.
        Returns:
        Throws:
        java.io.IOException
        java.lang.InterruptedException