Enum 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.
    • Enum Constant Detail

      • 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.
      • 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
      • 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.
      • 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
      • 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.
      • 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.
      • 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
      • ORG_APACHE_CASSANDRA_DISABLE_MBEAN_REGISTRATION

        public static final CassandraRelevantProperties ORG_APACHE_CASSANDRA_DISABLE_MBEAN_REGISTRATION
      • 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
      • IS_DISABLED_MBEAN_REGISTRATION

        public static final CassandraRelevantProperties IS_DISABLED_MBEAN_REGISTRATION
        This property indicates whether disable_mbean_registration is true
      • MBEAN_REGISTRATION_CLASS

        public static final CassandraRelevantProperties MBEAN_REGISTRATION_CLASS
        what class to use for mbean registeration
      • SCHEMA_PULL_INTERVAL_MS

        public static final CassandraRelevantProperties SCHEMA_PULL_INTERVAL_MS
        Defines how often schema definitions are pulled from the other nodes
      • SCHEMA_PULL_BACKOFF_DELAY_MS

        public static final CassandraRelevantProperties SCHEMA_PULL_BACKOFF_DELAY_MS
        Minimum delay after a failed pull request before it is reattempted. It prevents reattempting failed requests immediately as it is high chance they will fail anyway. It is better to wait a bit instead of flooding logs and wasting resources.
    • 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 name
        java.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.
      • 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.
      • 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.
      • 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.
      • 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
      • isPresent

        public boolean isPresent()
        Returns:
        whether a system property is present or not.