Class AuditorTask

    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • runTask

        protected abstract void runTask()
      • publishSuspectedLedgersAsync

        protected java.util.concurrent.CompletableFuture<?> publishSuspectedLedgersAsync​(java.util.Collection<java.lang.String> missingBookies,
                                                                                         java.util.Set<java.lang.Long> ledgers)
      • getAvailableBookies

        protected java.util.List<java.lang.String> getAvailableBookies()
                                                                throws BKException
        Throws:
        BKException
      • getBookKeeper

        BookKeeper getBookKeeper​(ServerConfiguration conf)
                          throws java.io.IOException,
                                 java.lang.InterruptedException
        Get BookKeeper client according to configuration.
        Parameters:
        conf -
        Returns:
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • getBookKeeperAdmin

        BookKeeperAdmin getBookKeeperAdmin​(BookKeeper bookKeeper)
        Get BookKeeper admin according to bookKeeper client.
        Parameters:
        bookKeeper -
        Returns:
      • submitShutdownTask

        protected void submitShutdownTask()
      • shutdown

        public abstract void shutdown()
      • hasBookieCheckTask

        protected boolean hasBookieCheckTask()