Interface FailureDetector

    • Method Detail

      • init

        void init​(org.apache.pinot.spi.env.PinotConfiguration config,
                  org.apache.pinot.common.metrics.BrokerMetrics brokerMetrics)
        Initializes the failure detector.
      • start

        void start()
        Starts the failure detector. Listeners should be registered before starting the failure detector.
      • notifyQuerySubmitted

        void notifyQuerySubmitted​(QueryResponse queryResponse)
        Notifies the failure detector that a query is submitted.
      • notifyQueryFinished

        void notifyQueryFinished​(QueryResponse queryResponse)
        Notifies the failure detector that a query is finished (COMPLETED, FAILED or TIMED_OUT).
      • markServerHealthy

        void markServerHealthy​(String instanceId)
        Marks a server as healthy.
      • markServerUnhealthy

        void markServerUnhealthy​(String instanceId)
        Marks a server as unhealthy.
      • getUnhealthyServers

        Set<String> getUnhealthyServers()
        Returns all the unhealthy servers.
      • stop

        void stop()
        Stops the failure detector.