Package org.apache.cassandra.service
Class DataResurrectionCheck
- java.lang.Object
-
- org.apache.cassandra.service.DataResurrectionCheck
-
- All Implemented Interfaces:
StartupCheck
public class DataResurrectionCheck extends java.lang.Object implements StartupCheck
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DataResurrectionCheck.Heartbeat
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_HEARTBEAT_FILE
static java.lang.String
EXCLUDED_KEYSPACES_CONFIG_PROPERTY
static java.lang.String
EXCLUDED_TABLES_CONFIG_PROPERTY
static java.lang.String
HEARTBEAT_FILE_CONFIG_PROPERTY
-
Constructor Summary
Constructors Constructor Description DataResurrectionCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(StartupChecksOptions options)
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.java.util.Set<java.lang.String>
getExcludedKeyspaces(java.util.Map<java.lang.String,java.lang.Object> config)
java.util.Set<Pair<java.lang.String,java.lang.String>>
getExcludedTables(java.util.Map<java.lang.String,java.lang.Object> config)
StartupChecks.StartupCheckType
getStartupCheckType()
void
postAction(StartupChecksOptions options)
Post-hook after all startup checks succeeded.
-
-
-
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
-
-
Method Detail
-
getStartupCheckType
public StartupChecks.StartupCheckType getStartupCheckType()
- Specified by:
getStartupCheckType
in interfaceStartupCheck
- Returns:
- type of this startup check for configuration retrieval
-
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 interfaceStartupCheck
- 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 interfaceStartupCheck
- 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)
-
-