Class DataResurrectionCheck

  • All Implemented Interfaces:
    StartupCheck

    public class DataResurrectionCheck
    extends java.lang.Object
    implements StartupCheck
    • Field Detail

      • HEARTBEAT_FILE_CONFIG_PROPERTY

        public static final java.lang.String HEARTBEAT_FILE_CONFIG_PROPERTY
        See Also:
        Constant Field Values
      • EXCLUDED_KEYSPACES_CONFIG_PROPERTY

        public static final java.lang.String EXCLUDED_KEYSPACES_CONFIG_PROPERTY
        See Also:
        Constant Field Values
      • EXCLUDED_TABLES_CONFIG_PROPERTY

        public static final java.lang.String EXCLUDED_TABLES_CONFIG_PROPERTY
        See Also:
        Constant Field Values
      • DEFAULT_HEARTBEAT_FILE

        public static final java.lang.String DEFAULT_HEARTBEAT_FILE
        See Also:
        Constant Field Values
    • Constructor Detail

      • DataResurrectionCheck

        public DataResurrectionCheck()
    • Method Detail

      • execute

        public void execute​(StartupChecksOptions options)
                     throws StartupException
        Description copied from interface: StartupCheck
        Run some test to determine whether the system is safe to be started In the case where a test determines it is not safe to proceed, the test should log a message regarding the reason for the failure and ideally the steps required to remedy the problem.
        Specified by:
        execute in interface StartupCheck
        Parameters:
        options - all options from descriptor
        Throws:
        StartupException - if the test determines that the environement or system is not in a safe state to startup
      • postAction

        public void postAction​(StartupChecksOptions options)
        Description copied from interface: StartupCheck
        Post-hook after all startup checks succeeded.
        Specified by:
        postAction in interface StartupCheck
        Parameters:
        options - startup check options from descriptor
      • getExcludedKeyspaces

        public java.util.Set<java.lang.String> getExcludedKeyspaces​(java.util.Map<java.lang.String,​java.lang.Object> config)
      • getExcludedTables

        public java.util.Set<Pair<java.lang.String,​java.lang.String>> getExcludedTables​(java.util.Map<java.lang.String,​java.lang.Object> config)