Package org.apache.accumulo.core.conf
Class ConfigSanityCheck
- java.lang.Object
-
- org.apache.accumulo.core.conf.ConfigSanityCheck
-
public class ConfigSanityCheck extends Object
A utility class for validatingAccumuloConfiguration
instances.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConfigSanityCheck.SanityCheckException
The exception thrown whenvalidate(Iterable)
fails.
-
Constructor Summary
Constructors Constructor Description ConfigSanityCheck()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
validate(Iterable<Map.Entry<String,String>> entries)
Validates the given configuration entries.
-
-
-
Method Detail
-
validate
public static void validate(Iterable<Map.Entry<String,String>> entries)
Validates the given configuration entries. A valid configuration contains only valid properties (i.e., defined or otherwise valid) that are not prefixes and whose values are formatted correctly for their property types. A valid configuration also contains a value for propertyProperty.INSTANCE_ZK_TIMEOUT
within a valid range.- Parameters:
entries
- iterable through configuration keys and values- Throws:
ConfigSanityCheck.SanityCheckException
- if a fatal configuration error is found
-
-