Class SystemDistributedKeyspace


  • public final class SystemDistributedKeyspace
    extends java.lang.Object
    • Field Detail

      • GENERATION

        public static final long GENERATION
        Generation is used as a timestamp for automatic table creation on startup. If you make any changes to the tables below, make sure to increment the generation and document your change here. gen 0: original definition in 2.2 gen 1: (pre-)add options column to parent_repair_history in 3.0, 3.11 gen 2: (pre-)add coordinator_port and participants_v2 columns to repair_history in 3.0, 3.11, 4.0 gen 3: gc_grace_seconds raised from 0 to 10 days in CASSANDRA-12954 in 3.11.0 gen 4: compression chunk length reduced to 16KiB, memtable_flush_period_in_ms now unset on all tables in 4.0 gen 5: add ttl and TWCS to repair_history tables gen 6: add denylist table
        See Also:
        Constant Field Values
      • PARENT_REPAIR_HISTORY

        public static final java.lang.String PARENT_REPAIR_HISTORY
        See Also:
        Constant Field Values
      • VIEW_BUILD_STATUS

        public static final java.lang.String VIEW_BUILD_STATUS
        See Also:
        Constant Field Values
      • PARTITION_DENYLIST_TABLE

        public static final java.lang.String PARTITION_DENYLIST_TABLE
        See Also:
        Constant Field Values
      • TABLE_NAMES

        public static final java.util.Set<java.lang.String> TABLE_NAMES
      • PartitionDenylistTable

        public static final TableMetadata PartitionDenylistTable
    • Method Detail

      • startParentRepair

        public static void startParentRepair​(TimeUUID parent_id,
                                             java.lang.String keyspaceName,
                                             java.lang.String[] cfnames,
                                             RepairOption options)
      • failParentRepair

        public static void failParentRepair​(TimeUUID parent_id,
                                            java.lang.Throwable t)
      • successfulParentRepair

        public static void successfulParentRepair​(TimeUUID parent_id,
                                                  java.util.Collection<Range<Token>> successfulRanges)
      • startRepairs

        public static void startRepairs​(TimeUUID id,
                                        TimeUUID parent_id,
                                        java.lang.String keyspaceName,
                                        java.lang.String[] cfnames,
                                        CommonRange commonRange)
      • failRepairs

        public static void failRepairs​(TimeUUID id,
                                       java.lang.String keyspaceName,
                                       java.lang.String[] cfnames,
                                       java.lang.Throwable t)
      • successfulRepairJob

        public static void successfulRepairJob​(TimeUUID id,
                                               java.lang.String keyspaceName,
                                               java.lang.String cfname)
      • failedRepairJob

        public static void failedRepairJob​(TimeUUID id,
                                           java.lang.String keyspaceName,
                                           java.lang.String cfname,
                                           java.lang.Throwable t)
      • startViewBuild

        public static void startViewBuild​(java.lang.String keyspace,
                                          java.lang.String view,
                                          java.util.UUID hostId)
      • successfulViewBuild

        public static void successfulViewBuild​(java.lang.String keyspace,
                                               java.lang.String view,
                                               java.util.UUID hostId)
      • viewStatus

        public static java.util.Map<java.util.UUID,​java.lang.String> viewStatus​(java.lang.String keyspace,
                                                                                      java.lang.String view)
      • setViewRemoved

        public static void setViewRemoved​(java.lang.String keyspaceName,
                                          java.lang.String viewName)