Package org.apache.cassandra.cdc.sidecar
Interface SidecarDownMonitor
-
public interface SidecarDownMonitorThis 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.
-
-
Field Summary
Fields Modifier and Type Field Description static SidecarDownMonitorSTUB
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidhintDown(org.apache.cassandra.spark.data.partitioner.CassandraInstance instance)Pass a hint down to the implementation that the CassandraInstance might be DOWN.booleanisDown(org.apache.cassandra.spark.data.partitioner.CassandraInstance instance)default booleanisUp(org.apache.cassandra.spark.data.partitioner.CassandraInstance instance)
-
-
-
Field Detail
-
STUB
static final SidecarDownMonitor STUB
-
-
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
-
-