Package org.apache.cassandra.config
Class Replacement
java.lang.Object
org.apache.cassandra.config.Replacement
Holder for replacements to support backward compatibility between old and new names and types
of configuration parameters (CASSANDRA-15234)
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ConvertersConverter to be used according to the old default unit which was provided as a suffix of the configuration parameterfinal booleanfinal StringNew name used for the configuration parameterfinal StringOld name of the configuration parameterfinal Class<?>Old type of the configuration parameterfinal Class<?>Currently we use Config class -
Constructor Summary
ConstructorsConstructorDescriptionReplacement(Class<?> parent, String oldName, Class<?> oldType, String newName, Converters converter, boolean deprecated) -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.yaml.snakeyaml.introspector.PropertytoProperty(org.yaml.snakeyaml.introspector.Property newProperty)
-
Field Details
-
parent
Currently we use Config class -
oldName
Old name of the configuration parameter -
oldType
Old type of the configuration parameter -
newName
New name used for the configuration parameter -
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
-
Replacement
public Replacement(Class<?> parent, String oldName, Class<?> oldType, String newName, Converters converter, boolean deprecated)
-
-
Method Details
-
toProperty
public org.yaml.snakeyaml.introspector.Property toProperty(org.yaml.snakeyaml.introspector.Property newProperty) -
isValueFormatReplacement
public boolean isValueFormatReplacement()
-