Class 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.
    • Constructor Detail

      • RepairedState

        public RepairedState()
    • Method Detail

      • add

        public void add​(java.util.Collection<Range<Token>> ranges,
                        long repairedAt)
      • addAll

        public void addAll​(java.util.List<org.apache.cassandra.repair.consistent.RepairedState.Level> newLevels)
      • minRepairedAt

        public long minRepairedAt​(java.util.Collection<Range<Token>> ranges)