Interface SidecarDownMonitor


  • public interface SidecarDownMonitor
    This interface provides information about the health of other Sidecar instances. CDC attempts to read from all replicas and is slowed by retrying requests on Sidecar instances that are already known to be DOWN, therefore we skip DOWN instances and only retry when they are known to be healthy again via some asynchronous mechanism.
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      void hintDown​(org.apache.cassandra.spark.data.partitioner.CassandraInstance instance)
      Pass a hint down to the implementation that the CassandraInstance might be DOWN.
      boolean isDown​(org.apache.cassandra.spark.data.partitioner.CassandraInstance instance)  
      default boolean isUp​(org.apache.cassandra.spark.data.partitioner.CassandraInstance instance)  
    • Method Detail

      • isUp

        default boolean isUp​(org.apache.cassandra.spark.data.partitioner.CassandraInstance instance)
        Parameters:
        instance - the CassandraInstance
        Returns:
        true if the CassandraInstance is known to be not DOWN.
      • isDown

        boolean isDown​(org.apache.cassandra.spark.data.partitioner.CassandraInstance instance)
        Parameters:
        instance - the CassandraInstance
        Returns:
        true if the CassandraInstance is known to be DOWN.
      • hintDown

        void hintDown​(org.apache.cassandra.spark.data.partitioner.CassandraInstance instance)
        Pass a hint down to the implementation that the CassandraInstance might be DOWN. It is up to the implementation to take this as canonical or take further action to detect the health.
        Parameters:
        instance - the CassandraInstance