Class RepairedState
- java.lang.Object
-
- org.apache.cassandra.repair.consistent.RepairedState
-
public class RepairedState extends java.lang.Object
Tracks the repaired state of token ranges per table, and is effectively an in memory representation of the on-disk local incremental repair state. The main purpose of this class is to provide metrics via nodetool repair_admin. To make sure those metrics are accurate, it also determines when a completed IR session can be deleted, which is explained in a bit more detail in LocalSessions#cleanup, by the call to isSuperseded.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RepairedState.Section
static class
RepairedState.Stats
-
Constructor Summary
Constructors Constructor Description RepairedState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(java.util.Collection<Range<Token>> ranges, long repairedAt)
void
addAll(java.util.List<org.apache.cassandra.repair.consistent.RepairedState.Level> newLevels)
RepairedState.Stats
getRepairedStats(java.util.Collection<Range<Token>> ranges)
long
minRepairedAt(java.util.Collection<Range<Token>> ranges)
-
-
-
Method Detail
-
addAll
public void addAll(java.util.List<org.apache.cassandra.repair.consistent.RepairedState.Level> newLevels)
-
getRepairedStats
public RepairedState.Stats getRepairedStats(java.util.Collection<Range<Token>> ranges)
-
-