Package org.apache.cassandra.config
Enum CassandraRelevantProperties
- java.lang.Object
-
- java.lang.Enum<CassandraRelevantProperties>
-
- org.apache.cassandra.config.CassandraRelevantProperties
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CassandraRelevantProperties>
public enum CassandraRelevantProperties extends java.lang.Enum<CassandraRelevantProperties>
A class that extracts system properties for the cassandra node it runs within.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCassandraRelevantProperties.PropertyConverter<T>
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLOW_DUPLICATE_CONFIG_KEYSIf we should allow having duplicate keys in the config file, default to true for legacy reasonsALLOW_NEW_OLD_CONFIG_KEYSIf we should allow having both new (post CASSANDRA-15234) and old config keys for the same config item in the yamlBATCH_COMMIT_LOG_SYNC_INTERVALBOOTSTRAP_SCHEMA_DELAY_MSWhen bootstraping how long to wait for schema versions to be seen.BOOTSTRAP_SKIP_SCHEMA_CHECKWhen bootstraping we wait for all schema versions found in gossip to be seen, and if not seen in time we fail the bootstrap; this property will avoid failing and allow bootstrap to continue if set to true.CASSANDRA_FOREGROUNDThe cassandra-foreground option will tell CassandraDaemon whether to close stdout/stderr, but it's up to us not to background.CASSANDRA_JMX_LOCAL_PORTCASSANDRA_JMX_REMOTE_PORTCassandra jmx remote and local portCASSANDRA_PID_FILECHECK_DATA_RESURRECTION_HEARTBEAT_PERIODCLOCK_GLOBALCLOCK_MONOTONIC_APPROXCLOCK_MONOTONIC_PRECISECOM_SUN_MANAGEMENT_JMXREMOTE_ACCESS_FILEThis property indicates the location for the access file.COM_SUN_MANAGEMENT_JMXREMOTE_AUTHENTICATEThis property indicates whether password authentication for remote monitoring is enabled.COM_SUN_MANAGEMENT_JMXREMOTE_PASSWORD_FILEThis property indicates the path to the password file - com.sun.management.jmxremote.password.fileCOM_SUN_MANAGEMENT_JMXREMOTE_PORTPort number to enable JMX RMI connections - com.sun.management.jmxremote.portCOM_SUN_MANAGEMENT_JMXREMOTE_RMI_PORTThe port number to which the RMI connector will be bound - com.sun.management.jmxremote.rmi.port.COM_SUN_MANAGEMENT_JMXREMOTE_SSLThis property indicates whether SSL is enabled for monitoring remotely.COM_SUN_MANAGEMENT_JMXREMOTE_SSL_ENABLED_CIPHER_SUITESA comma-delimited list of SSL/TLS cipher suites to enable.COM_SUN_MANAGEMENT_JMXREMOTE_SSL_ENABLED_PROTOCOLSA comma-delimited list of SSL/TLS protocol versions to enable.COM_SUN_MANAGEMENT_JMXREMOTE_SSL_NEED_CLIENT_AUTHThis property indicates whether SSL client authentication is enabled - com.sun.management.jmxremote.ssl.need.client.auth.CONFIG_ALLOW_SYSTEM_PROPERTIESCONSISTENT_DIRECTORY_LISTINGSDEFAULT_PROVIDE_OVERLAPPING_TOMBSTONESDETERMINISM_CONSISTENT_DIRECTORY_LISTINGSDETERMINISM_SSTABLE_COMPRESSION_DEFAULTDETERMINISM_UNSAFE_UUID_NODEDISABLE_GOSSIP_ENDPOINT_REMOVALDISABLE_SSTABLE_ACTIVITY_TRACKINGDISK_USAGE_MONITOR_INTERVAL_MSproperty for the rate of the scheduled task that monitors disk usageDISK_USAGE_NOTIFY_INTERVAL_MSproperty for the interval on which the repeated client warnings and diagnostic events about disk usage are ignoredDRAIN_EXECUTOR_TIMEOUT_MSWhen draining, how long to wait for mutating executors to shutdown.DTEST_IS_IN_JVM_DTESTThis property indicates if the code is running under the in-jvm dtest frameworkENABLE_NODELOCAL_QUERIESFAILED_BOOTSTRAP_TIMEOUTFAILURE_LOGGING_INTERVAL_SECONDSFILE_SYSTEM_CHECK_ENABLEDeprecated.FILE_SYSTEM_CHECK_OWNERSHIP_FILENAMEDeprecated.FILE_SYSTEM_CHECK_OWNERSHIP_TOKENDeprecated.FLUSH_LOCAL_SCHEMA_CHANGESFlush changes ofSchemaKeyspaceafter each schema modification.FORCE_LOAD_LOCAL_KEYSPACESUsed when running in Client mode and the system and schema keyspaces need to be initialized outside of their normal initialization pathGOSSIP_SETTLE_MIN_WAIT_MSDelay before checking if gossip is settled.GOSSIP_SETTLE_POLL_INTERVAL_MSInterval delay between checking gossip is settled.GOSSIP_SETTLE_POLL_SUCCESSES_REQUIREDNumber of polls without gossip state change to consider gossip as settled.GOSSIPER_QUARANTINE_DELAYGossip quarantine delay is used while evaluating membership changes and should only be changed with extreme care.GOSSIPER_SKIP_WAITING_TO_SETTLEIGNORE_DCDeprecated.IGNORE_MISSING_NATIVE_FILE_HINTSIGNORE_RACKDeprecated.IGNORED_SCHEMA_CHECK_ENDPOINTSIGNORED_SCHEMA_CHECK_VERSIONSIS_DISABLED_MBEAN_REGISTRATIONThis property indicates whether disable_mbean_registration is trueJAVA_CLASS_PATHJava class path.JAVA_HOMEJAVA_IO_TMPDIRIndicates the temporary directory used by the Java Virtual Machine (JVM) to create and store temporary files.JAVA_LIBRARY_PATHPath from which to load native libraries.JAVA_RMI_DGC_LEASE_VALUE_IN_JVM_DTESTControls the distributed garbage collector lease time for JMX objects.JAVA_RMI_SERVER_HOSTNAMEThe value of this property represents the host name string that should be associated with remote stubs for locally created remote objects, in order to allow clients to invoke methods on the remote object.JAVA_RMI_SERVER_RANDOM_IDIf this value is true, object identifiers for remote objects exported by this VM will be generated by using a cryptographically secure random number generator.JAVA_SECURITY_EGDJAVA_VERSIONJava Runtime Environment versionJAVA_VM_NAMEJava Virtual Machine implementation nameLIBJEMALLOCLINE_SEPARATORLine separator ("\n" on UNIX).LOG_DIRDirectory where Cassandra puts its logs, defaults to "." which is current directory.LOG_DIR_AUDITDirectory where Cassandra persists logs from audit logging.MBEAN_REGISTRATION_CLASSwhat class to use for mbean registerationMEMTABLE_OVERHEAD_COMPUTE_STEPSMEMTABLE_OVERHEAD_SIZEMIGRATION_DELAYMX4JADDRESSmx4jaddressMX4JPORTmx4jportNON_GRACEFUL_SHUTDOWNIf set,MessagingServiceis shutdown abrtuptly without waiting for anything.ORG_APACHE_CASSANDRA_CONF_CASSANDRA_RELEVANT_PROPERTIES_TESTORG_APACHE_CASSANDRA_DB_VIRTUAL_SYSTEM_PROPERTIES_TABLE_TESTORG_APACHE_CASSANDRA_DISABLE_MBEAN_REGISTRATIONOS_ARCHOperating system architecture.OS_NAMEOperating system name.PAXOS_EXECUTE_ON_SELFPAXOS_REPAIR_RETRY_TIMEOUT_IN_MSREPLACEMENT_ALLOW_EMPTYWhen doing a host replacement its possible that the gossip state is "empty" meaning that the endpoint is known but the current state isn't known.REQUIRED_BATCHLOG_REPLICA_COUNTNumber of replicas required to store batchlog for atomicity, only accepts values of 1 or 2.RING_DELAYROLE_PASSWORD_UPDATE_MIN_INTERVAL_MSHow often a role's password can be changedSCHEMA_PULL_INTERVAL_MSDefines how often schema definitions are pulled from the other nodesSHUTDOWN_ANNOUNCE_DELAY_IN_MSSKIP_OPTIMAL_STREAMING_CANDIDATES_CALCULATIONDo not try to calculate optimal streaming candidates.SNAPSHOT_CLEANUP_INITIAL_DELAY_SECONDSsnapshots ttl cleanup initial delay in secondsSNAPSHOT_CLEANUP_PERIOD_SECONDSsnapshots ttl cleanup period in secondsSNAPSHOT_MIN_ALLOWED_TTL_SECONDSminimum allowed TTL for snapshotsSUN_ARCH_DATA_MODELPlatform word size sun.arch.data.model.SUN_RMI_TRANSPORT_TCP_THREADKEEPALIVETIMEControls the JMX server threadpool keap-alive time.SYSTEM_AUTH_DEFAULT_RFSYSTEM_DISTRIBUTED_DEFAULT_RFSYSTEM_TRACES_DEFAULT_RFTEST_IGNORE_SIGARTEST_JVM_DTEST_DISABLE_SSLTEST_SIMULATOR_DEBUGTEST_SIMULATOR_DETERMINISM_CHECKTEST_SIMULATOR_LIVENESS_CHECKTEST_SIMULATOR_PRINT_ASMTEST_SIMULATOR_PRINT_ASM_TYPESUSE_NIX_RECURSIVE_DELETEWhen enabled, recursive directory deletion will be executed using a unix command `rm -rf` instead of traversing and removing individual files.USER_HOMEUser's home directory.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearValue()Clears the value set in the system property.<T> Tconvert(CassandraRelevantProperties.PropertyConverter<T> converter)booleangetBoolean()Gets the value of a system property as a boolean.booleangetBoolean(boolean overrideDefaultValue)Gets the value of a system property as a boolean.java.lang.StringgetDefaultValue()Returns default value.intgetInt()Gets the value of a system property as a int.intgetInt(int overrideDefaultValue)Gets the value of a system property as a int.java.lang.StringgetKey()longgetLong()Gets the value of a system property as a int.java.lang.StringgetString()Gets the value of the indicated system property.java.lang.StringgetString(java.lang.String overrideDefaultValue)Gets the value of a system property as a String.booleanisPresent()voidreset()Sets the property to its default value if a default value was specified.voidsetBoolean(boolean value)Sets the value into system properties.voidsetInt(int value)Sets the value into system properties.voidsetLong(long value)Sets the value into system properties.voidsetString(java.lang.String value)Sets the value into system properties.static CassandraRelevantPropertiesvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CassandraRelevantProperties[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JAVA_HOME
public static final CassandraRelevantProperties JAVA_HOME
-
CASSANDRA_PID_FILE
public static final CassandraRelevantProperties CASSANDRA_PID_FILE
-
JAVA_IO_TMPDIR
public static final CassandraRelevantProperties JAVA_IO_TMPDIR
Indicates the temporary directory used by the Java Virtual Machine (JVM) to create and store temporary files.
-
JAVA_LIBRARY_PATH
public static final CassandraRelevantProperties JAVA_LIBRARY_PATH
Path from which to load native libraries. Default is absolute path to lib directory.
-
JAVA_SECURITY_EGD
public static final CassandraRelevantProperties JAVA_SECURITY_EGD
-
JAVA_VERSION
public static final CassandraRelevantProperties JAVA_VERSION
Java Runtime Environment version
-
JAVA_VM_NAME
public static final CassandraRelevantProperties JAVA_VM_NAME
Java Virtual Machine implementation name
-
LINE_SEPARATOR
public static final CassandraRelevantProperties LINE_SEPARATOR
Line separator ("\n" on UNIX).
-
JAVA_CLASS_PATH
public static final CassandraRelevantProperties JAVA_CLASS_PATH
Java class path.
-
OS_ARCH
public static final CassandraRelevantProperties OS_ARCH
Operating system architecture.
-
OS_NAME
public static final CassandraRelevantProperties OS_NAME
Operating system name.
-
USER_HOME
public static final CassandraRelevantProperties USER_HOME
User's home directory.
-
SUN_ARCH_DATA_MODEL
public static final CassandraRelevantProperties SUN_ARCH_DATA_MODEL
Platform word size sun.arch.data.model. Examples: "32", "64", "unknown"
-
JAVA_RMI_SERVER_HOSTNAME
public static final CassandraRelevantProperties JAVA_RMI_SERVER_HOSTNAME
The value of this property represents the host name string that should be associated with remote stubs for locally created remote objects, in order to allow clients to invoke methods on the remote object.
-
JAVA_RMI_SERVER_RANDOM_ID
public static final CassandraRelevantProperties JAVA_RMI_SERVER_RANDOM_ID
If this value is true, object identifiers for remote objects exported by this VM will be generated by using a cryptographically secure random number generator. The default value is false.
-
COM_SUN_MANAGEMENT_JMXREMOTE_AUTHENTICATE
public static final CassandraRelevantProperties COM_SUN_MANAGEMENT_JMXREMOTE_AUTHENTICATE
This property indicates whether password authentication for remote monitoring is enabled. By default it is disabled - com.sun.management.jmxremote.authenticate
-
SUN_RMI_TRANSPORT_TCP_THREADKEEPALIVETIME
public static final CassandraRelevantProperties SUN_RMI_TRANSPORT_TCP_THREADKEEPALIVETIME
Controls the JMX server threadpool keap-alive time. Should only be set by in-jvm dtests.
-
JAVA_RMI_DGC_LEASE_VALUE_IN_JVM_DTEST
public static final CassandraRelevantProperties JAVA_RMI_DGC_LEASE_VALUE_IN_JVM_DTEST
Controls the distributed garbage collector lease time for JMX objects. Should only be set by in-jvm dtests.
-
COM_SUN_MANAGEMENT_JMXREMOTE_RMI_PORT
public static final CassandraRelevantProperties COM_SUN_MANAGEMENT_JMXREMOTE_RMI_PORT
The port number to which the RMI connector will be bound - com.sun.management.jmxremote.rmi.port. An Integer object that represents the value of the second argument is returned if there is no port specified, if the port does not have the correct numeric format, or if the specified name is empty or null.
-
CASSANDRA_JMX_REMOTE_PORT
public static final CassandraRelevantProperties CASSANDRA_JMX_REMOTE_PORT
Cassandra jmx remote and local port
-
CASSANDRA_JMX_LOCAL_PORT
public static final CassandraRelevantProperties CASSANDRA_JMX_LOCAL_PORT
-
COM_SUN_MANAGEMENT_JMXREMOTE_SSL
public static final CassandraRelevantProperties COM_SUN_MANAGEMENT_JMXREMOTE_SSL
This property indicates whether SSL is enabled for monitoring remotely. Default is set to false.
-
COM_SUN_MANAGEMENT_JMXREMOTE_SSL_NEED_CLIENT_AUTH
public static final CassandraRelevantProperties COM_SUN_MANAGEMENT_JMXREMOTE_SSL_NEED_CLIENT_AUTH
This property indicates whether SSL client authentication is enabled - com.sun.management.jmxremote.ssl.need.client.auth. Default is set to false.
-
COM_SUN_MANAGEMENT_JMXREMOTE_ACCESS_FILE
public static final CassandraRelevantProperties COM_SUN_MANAGEMENT_JMXREMOTE_ACCESS_FILE
This property indicates the location for the access file. If com.sun.management.jmxremote.authenticate is false, then this property and the password and access files, are ignored. Otherwise, the access file must exist and be in the valid format. If the access file is empty or nonexistent, then no access is allowed.
-
COM_SUN_MANAGEMENT_JMXREMOTE_PASSWORD_FILE
public static final CassandraRelevantProperties COM_SUN_MANAGEMENT_JMXREMOTE_PASSWORD_FILE
This property indicates the path to the password file - com.sun.management.jmxremote.password.file
-
COM_SUN_MANAGEMENT_JMXREMOTE_PORT
public static final CassandraRelevantProperties COM_SUN_MANAGEMENT_JMXREMOTE_PORT
Port number to enable JMX RMI connections - com.sun.management.jmxremote.port
-
COM_SUN_MANAGEMENT_JMXREMOTE_SSL_ENABLED_PROTOCOLS
public static final CassandraRelevantProperties COM_SUN_MANAGEMENT_JMXREMOTE_SSL_ENABLED_PROTOCOLS
A comma-delimited list of SSL/TLS protocol versions to enable. Used in conjunction with com.sun.management.jmxremote.ssl - com.sun.management.jmxremote.ssl.enabled.protocols
-
COM_SUN_MANAGEMENT_JMXREMOTE_SSL_ENABLED_CIPHER_SUITES
public static final CassandraRelevantProperties COM_SUN_MANAGEMENT_JMXREMOTE_SSL_ENABLED_CIPHER_SUITES
A comma-delimited list of SSL/TLS cipher suites to enable. Used in conjunction with com.sun.management.jmxremote.ssl - com.sun.management.jmxremote.ssl.enabled.cipher.suites
-
MX4JADDRESS
public static final CassandraRelevantProperties MX4JADDRESS
mx4jaddress
-
MX4JPORT
public static final CassandraRelevantProperties MX4JPORT
mx4jport
-
RING_DELAY
public static final CassandraRelevantProperties RING_DELAY
-
FAILED_BOOTSTRAP_TIMEOUT
public static final CassandraRelevantProperties FAILED_BOOTSTRAP_TIMEOUT
-
BOOTSTRAP_SKIP_SCHEMA_CHECK
public static final CassandraRelevantProperties BOOTSTRAP_SKIP_SCHEMA_CHECK
When bootstraping we wait for all schema versions found in gossip to be seen, and if not seen in time we fail the bootstrap; this property will avoid failing and allow bootstrap to continue if set to true.
-
BOOTSTRAP_SCHEMA_DELAY_MS
public static final CassandraRelevantProperties BOOTSTRAP_SCHEMA_DELAY_MS
When bootstraping how long to wait for schema versions to be seen.
-
DRAIN_EXECUTOR_TIMEOUT_MS
public static final CassandraRelevantProperties DRAIN_EXECUTOR_TIMEOUT_MS
When draining, how long to wait for mutating executors to shutdown.
-
GOSSIPER_QUARANTINE_DELAY
public static final CassandraRelevantProperties GOSSIPER_QUARANTINE_DELAY
Gossip quarantine delay is used while evaluating membership changes and should only be changed with extreme care.
-
GOSSIPER_SKIP_WAITING_TO_SETTLE
public static final CassandraRelevantProperties GOSSIPER_SKIP_WAITING_TO_SETTLE
-
IGNORED_SCHEMA_CHECK_VERSIONS
public static final CassandraRelevantProperties IGNORED_SCHEMA_CHECK_VERSIONS
-
IGNORED_SCHEMA_CHECK_ENDPOINTS
public static final CassandraRelevantProperties IGNORED_SCHEMA_CHECK_ENDPOINTS
-
SHUTDOWN_ANNOUNCE_DELAY_IN_MS
public static final CassandraRelevantProperties SHUTDOWN_ANNOUNCE_DELAY_IN_MS
-
REPLACEMENT_ALLOW_EMPTY
public static final CassandraRelevantProperties REPLACEMENT_ALLOW_EMPTY
When doing a host replacement its possible that the gossip state is "empty" meaning that the endpoint is known but the current state isn't known. If the host replacement is needed to repair this state, this property must be true.
-
LOG_DIR
public static final CassandraRelevantProperties LOG_DIR
Directory where Cassandra puts its logs, defaults to "." which is current directory.
-
LOG_DIR_AUDIT
public static final CassandraRelevantProperties LOG_DIR_AUDIT
Directory where Cassandra persists logs from audit logging. If this property is not set, the audit log framework will set it automatically toLOG_DIR+ "/audit".
-
CONSISTENT_DIRECTORY_LISTINGS
public static final CassandraRelevantProperties CONSISTENT_DIRECTORY_LISTINGS
-
CLOCK_GLOBAL
public static final CassandraRelevantProperties CLOCK_GLOBAL
-
CLOCK_MONOTONIC_APPROX
public static final CassandraRelevantProperties CLOCK_MONOTONIC_APPROX
-
CLOCK_MONOTONIC_PRECISE
public static final CassandraRelevantProperties CLOCK_MONOTONIC_PRECISE
-
ENABLE_NODELOCAL_QUERIES
public static final CassandraRelevantProperties ENABLE_NODELOCAL_QUERIES
-
CASSANDRA_FOREGROUND
public static final CassandraRelevantProperties CASSANDRA_FOREGROUND
The cassandra-foreground option will tell CassandraDaemon whether to close stdout/stderr, but it's up to us not to background. yes/null
-
DEFAULT_PROVIDE_OVERLAPPING_TOMBSTONES
public static final CassandraRelevantProperties DEFAULT_PROVIDE_OVERLAPPING_TOMBSTONES
-
ORG_APACHE_CASSANDRA_DISABLE_MBEAN_REGISTRATION
public static final CassandraRelevantProperties ORG_APACHE_CASSANDRA_DISABLE_MBEAN_REGISTRATION
-
IS_DISABLED_MBEAN_REGISTRATION
public static final CassandraRelevantProperties IS_DISABLED_MBEAN_REGISTRATION
This property indicates whether disable_mbean_registration is true
-
SNAPSHOT_CLEANUP_PERIOD_SECONDS
public static final CassandraRelevantProperties SNAPSHOT_CLEANUP_PERIOD_SECONDS
snapshots ttl cleanup period in seconds
-
SNAPSHOT_CLEANUP_INITIAL_DELAY_SECONDS
public static final CassandraRelevantProperties SNAPSHOT_CLEANUP_INITIAL_DELAY_SECONDS
snapshots ttl cleanup initial delay in seconds
-
SNAPSHOT_MIN_ALLOWED_TTL_SECONDS
public static final CassandraRelevantProperties SNAPSHOT_MIN_ALLOWED_TTL_SECONDS
minimum allowed TTL for snapshots
-
MBEAN_REGISTRATION_CLASS
public static final CassandraRelevantProperties MBEAN_REGISTRATION_CLASS
what class to use for mbean registeration
-
DTEST_IS_IN_JVM_DTEST
public static final CassandraRelevantProperties DTEST_IS_IN_JVM_DTEST
This property indicates if the code is running under the in-jvm dtest framework
-
BATCH_COMMIT_LOG_SYNC_INTERVAL
public static final CassandraRelevantProperties BATCH_COMMIT_LOG_SYNC_INTERVAL
-
SYSTEM_AUTH_DEFAULT_RF
public static final CassandraRelevantProperties SYSTEM_AUTH_DEFAULT_RF
-
SYSTEM_TRACES_DEFAULT_RF
public static final CassandraRelevantProperties SYSTEM_TRACES_DEFAULT_RF
-
SYSTEM_DISTRIBUTED_DEFAULT_RF
public static final CassandraRelevantProperties SYSTEM_DISTRIBUTED_DEFAULT_RF
-
MEMTABLE_OVERHEAD_SIZE
public static final CassandraRelevantProperties MEMTABLE_OVERHEAD_SIZE
-
MEMTABLE_OVERHEAD_COMPUTE_STEPS
public static final CassandraRelevantProperties MEMTABLE_OVERHEAD_COMPUTE_STEPS
-
MIGRATION_DELAY
public static final CassandraRelevantProperties MIGRATION_DELAY
-
SCHEMA_PULL_INTERVAL_MS
public static final CassandraRelevantProperties SCHEMA_PULL_INTERVAL_MS
Defines how often schema definitions are pulled from the other nodes
-
PAXOS_REPAIR_RETRY_TIMEOUT_IN_MS
public static final CassandraRelevantProperties PAXOS_REPAIR_RETRY_TIMEOUT_IN_MS
-
ALLOW_DUPLICATE_CONFIG_KEYS
public static final CassandraRelevantProperties ALLOW_DUPLICATE_CONFIG_KEYS
If we should allow having duplicate keys in the config file, default to true for legacy reasons
-
ALLOW_NEW_OLD_CONFIG_KEYS
public static final CassandraRelevantProperties ALLOW_NEW_OLD_CONFIG_KEYS
If we should allow having both new (post CASSANDRA-15234) and old config keys for the same config item in the yaml
-
LIBJEMALLOC
public static final CassandraRelevantProperties LIBJEMALLOC
-
IGNORE_DC
@Deprecated public static final CassandraRelevantProperties IGNORE_DC
Deprecated.
-
IGNORE_RACK
@Deprecated public static final CassandraRelevantProperties IGNORE_RACK
Deprecated.
-
FILE_SYSTEM_CHECK_ENABLE
@Deprecated public static final CassandraRelevantProperties FILE_SYSTEM_CHECK_ENABLE
Deprecated.
-
FILE_SYSTEM_CHECK_OWNERSHIP_FILENAME
@Deprecated public static final CassandraRelevantProperties FILE_SYSTEM_CHECK_OWNERSHIP_FILENAME
Deprecated.
-
FILE_SYSTEM_CHECK_OWNERSHIP_TOKEN
@Deprecated public static final CassandraRelevantProperties FILE_SYSTEM_CHECK_OWNERSHIP_TOKEN
Deprecated.
-
CHECK_DATA_RESURRECTION_HEARTBEAT_PERIOD
public static final CassandraRelevantProperties CHECK_DATA_RESURRECTION_HEARTBEAT_PERIOD
-
CONFIG_ALLOW_SYSTEM_PROPERTIES
public static final CassandraRelevantProperties CONFIG_ALLOW_SYSTEM_PROPERTIES
-
TEST_SIMULATOR_PRINT_ASM
public static final CassandraRelevantProperties TEST_SIMULATOR_PRINT_ASM
-
TEST_SIMULATOR_PRINT_ASM_TYPES
public static final CassandraRelevantProperties TEST_SIMULATOR_PRINT_ASM_TYPES
-
TEST_SIMULATOR_LIVENESS_CHECK
public static final CassandraRelevantProperties TEST_SIMULATOR_LIVENESS_CHECK
-
TEST_SIMULATOR_DEBUG
public static final CassandraRelevantProperties TEST_SIMULATOR_DEBUG
-
TEST_SIMULATOR_DETERMINISM_CHECK
public static final CassandraRelevantProperties TEST_SIMULATOR_DETERMINISM_CHECK
-
TEST_JVM_DTEST_DISABLE_SSL
public static final CassandraRelevantProperties TEST_JVM_DTEST_DISABLE_SSL
-
DETERMINISM_SSTABLE_COMPRESSION_DEFAULT
public static final CassandraRelevantProperties DETERMINISM_SSTABLE_COMPRESSION_DEFAULT
-
DETERMINISM_CONSISTENT_DIRECTORY_LISTINGS
public static final CassandraRelevantProperties DETERMINISM_CONSISTENT_DIRECTORY_LISTINGS
-
DETERMINISM_UNSAFE_UUID_NODE
public static final CassandraRelevantProperties DETERMINISM_UNSAFE_UUID_NODE
-
FAILURE_LOGGING_INTERVAL_SECONDS
public static final CassandraRelevantProperties FAILURE_LOGGING_INTERVAL_SECONDS
-
DISABLE_GOSSIP_ENDPOINT_REMOVAL
public static final CassandraRelevantProperties DISABLE_GOSSIP_ENDPOINT_REMOVAL
-
IGNORE_MISSING_NATIVE_FILE_HINTS
public static final CassandraRelevantProperties IGNORE_MISSING_NATIVE_FILE_HINTS
-
DISABLE_SSTABLE_ACTIVITY_TRACKING
public static final CassandraRelevantProperties DISABLE_SSTABLE_ACTIVITY_TRACKING
-
TEST_IGNORE_SIGAR
public static final CassandraRelevantProperties TEST_IGNORE_SIGAR
-
PAXOS_EXECUTE_ON_SELF
public static final CassandraRelevantProperties PAXOS_EXECUTE_ON_SELF
-
DISK_USAGE_MONITOR_INTERVAL_MS
public static final CassandraRelevantProperties DISK_USAGE_MONITOR_INTERVAL_MS
property for the rate of the scheduled task that monitors disk usage
-
DISK_USAGE_NOTIFY_INTERVAL_MS
public static final CassandraRelevantProperties DISK_USAGE_NOTIFY_INTERVAL_MS
property for the interval on which the repeated client warnings and diagnostic events about disk usage are ignored
-
ORG_APACHE_CASSANDRA_CONF_CASSANDRA_RELEVANT_PROPERTIES_TEST
public static final CassandraRelevantProperties ORG_APACHE_CASSANDRA_CONF_CASSANDRA_RELEVANT_PROPERTIES_TEST
-
ORG_APACHE_CASSANDRA_DB_VIRTUAL_SYSTEM_PROPERTIES_TABLE_TEST
public static final CassandraRelevantProperties ORG_APACHE_CASSANDRA_DB_VIRTUAL_SYSTEM_PROPERTIES_TABLE_TEST
-
FORCE_LOAD_LOCAL_KEYSPACES
public static final CassandraRelevantProperties FORCE_LOAD_LOCAL_KEYSPACES
Used when running in Client mode and the system and schema keyspaces need to be initialized outside of their normal initialization path
-
USE_NIX_RECURSIVE_DELETE
public static final CassandraRelevantProperties USE_NIX_RECURSIVE_DELETE
When enabled, recursive directory deletion will be executed using a unix command `rm -rf` instead of traversing and removing individual files. This is now used only tests, but eventually we will make it true by default.
-
NON_GRACEFUL_SHUTDOWN
public static final CassandraRelevantProperties NON_GRACEFUL_SHUTDOWN
If set,MessagingServiceis shutdown abrtuptly without waiting for anything. This is an optimization used in unit tests becuase we never restart a node there. The only node is stopoped when the JVM terminates. Therefore, we can use such optimization and not wait unnecessarily.
-
FLUSH_LOCAL_SCHEMA_CHANGES
public static final CassandraRelevantProperties FLUSH_LOCAL_SCHEMA_CHANGES
Flush changes ofSchemaKeyspaceafter each schema modification. In production, we always do that. However, tests which do not restart nodes may disable this functionality in order to run faster. Note that this is disabled for unit tests but if an individual test requires schema to be flushed, it can be also done manually for that particular case:flush(SchemaConstants.SCHEMA_KEYSPACE_NAME);.
-
GOSSIP_SETTLE_MIN_WAIT_MS
public static final CassandraRelevantProperties GOSSIP_SETTLE_MIN_WAIT_MS
Delay before checking if gossip is settled.
-
GOSSIP_SETTLE_POLL_INTERVAL_MS
public static final CassandraRelevantProperties GOSSIP_SETTLE_POLL_INTERVAL_MS
Interval delay between checking gossip is settled.
-
GOSSIP_SETTLE_POLL_SUCCESSES_REQUIRED
public static final CassandraRelevantProperties GOSSIP_SETTLE_POLL_SUCCESSES_REQUIRED
Number of polls without gossip state change to consider gossip as settled.
-
REQUIRED_BATCHLOG_REPLICA_COUNT
public static final CassandraRelevantProperties REQUIRED_BATCHLOG_REPLICA_COUNT
Number of replicas required to store batchlog for atomicity, only accepts values of 1 or 2.
-
SKIP_OPTIMAL_STREAMING_CANDIDATES_CALCULATION
public static final CassandraRelevantProperties SKIP_OPTIMAL_STREAMING_CANDIDATES_CALCULATION
Do not try to calculate optimal streaming candidates. This can take a lot of time in some configs specially with vnodes.
-
ROLE_PASSWORD_UPDATE_MIN_INTERVAL_MS
public static final CassandraRelevantProperties ROLE_PASSWORD_UPDATE_MIN_INTERVAL_MS
How often a role's password can be changed
-
-
Method Detail
-
values
public static CassandraRelevantProperties[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CassandraRelevantProperties c : CassandraRelevantProperties.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CassandraRelevantProperties valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getKey
public java.lang.String getKey()
-
getString
public java.lang.String getString()
Gets the value of the indicated system property.- Returns:
- system property value if it exists, defaultValue otherwise.
-
getDefaultValue
public java.lang.String getDefaultValue()
Returns default value.- Returns:
- default value, if any, otherwise null.
-
reset
public void reset()
Sets the property to its default value if a default value was specified. Remove the property otherwise.
-
getString
public java.lang.String getString(java.lang.String overrideDefaultValue)
Gets the value of a system property as a String.- Returns:
- system property String value if it exists, overrideDefaultValue otherwise.
-
convert
public <T> T convert(CassandraRelevantProperties.PropertyConverter<T> converter)
-
setString
public void setString(java.lang.String value)
Sets the value into system properties.- Parameters:
value- to set
-
getBoolean
public boolean getBoolean()
Gets the value of a system property as a boolean.- Returns:
- system property boolean value if it exists, false otherwise().
-
getBoolean
public boolean getBoolean(boolean overrideDefaultValue)
Gets the value of a system property as a boolean.- Returns:
- system property boolean value if it exists, overrideDefaultValue otherwise.
-
clearValue
public void clearValue()
Clears the value set in the system property.
-
setBoolean
public void setBoolean(boolean value)
Sets the value into system properties.- Parameters:
value- to set
-
getInt
public int getInt()
Gets the value of a system property as a int.- Returns:
- system property int value if it exists, defaultValue otherwise.
-
getLong
public long getLong()
Gets the value of a system property as a int.- Returns:
- system property int value if it exists, defaultValue otherwise.
-
getInt
public int getInt(int overrideDefaultValue)
Gets the value of a system property as a int.- Returns:
- system property int value if it exists, overrideDefaultValue otherwise.
-
setInt
public void setInt(int value)
Sets the value into system properties.- Parameters:
value- to set
-
setLong
public void setLong(long value)
Sets the value into system properties.- Parameters:
value- to set
-
isPresent
public boolean isPresent()
- Returns:
- whether a system property is present or not.
-
-