Class CassandraTopologyMonitor
- java.lang.Object
-
- org.apache.cassandra.spark.bulkwriter.cloudstorage.CassandraTopologyMonitor
-
public class CassandraTopologyMonitor extends java.lang.ObjectA monitor that check whether the cassandra topology has changed. On topology change, the write produced by the job is no longer accurate. It should fail as soon as change is detected.
-
-
Constructor Summary
Constructors Constructor Description CassandraTopologyMonitor(ClusterInfo clusterInfo, java.util.function.Consumer<CancelJobEvent> onCancelJob)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenRangeMapping<RingInstance>initialTopology()voidshutdownNow()Attempts to stop all tasks; we do not wait here as it is only called on job termination
-
-
-
Constructor Detail
-
CassandraTopologyMonitor
public CassandraTopologyMonitor(ClusterInfo clusterInfo, java.util.function.Consumer<CancelJobEvent> onCancelJob)
-
-
Method Detail
-
shutdownNow
public void shutdownNow()
Attempts to stop all tasks; we do not wait here as it is only called on job termination
-
initialTopology
public TokenRangeMapping<RingInstance> initialTopology()
- Returns:
- the initial topology retrieved
-
-