Class Replacement

java.lang.Object
org.apache.cassandra.config.Replacement

public final class Replacement extends Object
Holder for replacements to support backward compatibility between old and new names and types of configuration parameters (CASSANDRA-15234)
  • Field Details

    • parent

      public final Class<?> parent
      Currently we use Config class
    • oldName

      public final String oldName
      Old name of the configuration parameter
    • oldType

      public final Class<?> oldType
      Old type of the configuration parameter
    • newName

      public final String newName
      New name used for the configuration parameter
    • converter

      public final Converters converter
      Converter to be used according to the old default unit which was provided as a suffix of the configuration parameter
    • deprecated

      public final boolean deprecated
  • Constructor Details

  • Method Details

    • toProperty

      public org.yaml.snakeyaml.introspector.Property toProperty(org.yaml.snakeyaml.introspector.Property newProperty)
    • isValueFormatReplacement

      public boolean isValueFormatReplacement()