Package org.apache.cassandra.config
Class Replacement
- java.lang.Object
-
- org.apache.cassandra.config.Replacement
-
public final class Replacement extends java.lang.Object
Holder for replacements to support backward compatibility between old and new names and types of configuration parameters (CASSANDRA-15234)
-
-
Field Summary
Fields Modifier and Type Field Description Converters
converter
Converter to be used according to the old default unit which was provided as a suffix of the configuration parameterboolean
deprecated
java.lang.String
newName
New name used for the configuration parameterjava.lang.String
oldName
Old name of the configuration parameterjava.lang.Class<?>
oldType
Old type of the configuration parameterjava.lang.Class<?>
parent
Currently we use Config class
-
Constructor Summary
Constructors Constructor Description Replacement(java.lang.Class<?> parent, java.lang.String oldName, java.lang.Class<?> oldType, java.lang.String newName, Converters converter, boolean deprecated)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isValueFormatReplacement()
org.yaml.snakeyaml.introspector.Property
toProperty(org.yaml.snakeyaml.introspector.Property newProperty)
-
-
-
Field Detail
-
parent
public final java.lang.Class<?> parent
Currently we use Config class
-
oldName
public final java.lang.String oldName
Old name of the configuration parameter
-
oldType
public final java.lang.Class<?> oldType
Old type of the configuration parameter
-
newName
public final java.lang.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 Detail
-
Replacement
public Replacement(java.lang.Class<?> parent, java.lang.String oldName, java.lang.Class<?> oldType, java.lang.String newName, Converters converter, boolean deprecated)
-
-