public class ConfigValidation extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ConfigValidation.BooleanValidator |
static class |
ConfigValidation.DoubleValidator |
static class |
ConfigValidation.ImpersonationAclUserEntryValidator
Validates an entry for ImpersonationAclUser
|
static class |
ConfigValidation.ImplementsClassValidator |
static class |
ConfigValidation.IntegerValidator
Validates a Integer.
|
static class |
ConfigValidation.KryoRegValidator
Validates Kryo Registration
|
static class |
ConfigValidation.ListEntryCustomValidator
Validates each entry in a list against a list of custom Validators
Each validator in the list of validators must inherit or be an instance of Validator class
|
static class |
ConfigValidation.ListEntryTypeValidator
Validates each entry in a list
|
static class |
ConfigValidation.MapEntryCustomValidator
validates each key and each value against the respective arrays of validators
|
static class |
ConfigValidation.MapEntryTypeValidator
validates each key and value in a map of a certain type
|
static class |
ConfigValidation.MapOfStringToMapOfStringToObjectValidator |
static class |
ConfigValidation.MetricRegistryValidator |
static class |
ConfigValidation.NoDuplicateInListValidator
validates a list of has no duplicates
|
static class |
ConfigValidation.NotNullValidator
Validates if an object is not null
|
static class |
ConfigValidation.NumberValidator |
static class |
ConfigValidation.PacemakerAuthTypeValidator |
static class |
ConfigValidation.PositiveNumberValidator
Validates a positive number
|
static class |
ConfigValidation.PowerOf2Validator
Validates if a number is a power of 2
|
static class |
ConfigValidation.SimpleTypeValidator
Validates basic types
|
static class |
ConfigValidation.StringOrStringListValidator
Validates a String or a list of Strings
|
static class |
ConfigValidation.StringValidator |
static class |
ConfigValidation.UserResourcePoolEntryValidator |
static class |
ConfigValidation.Validator |
Constructor and Description |
---|
ConfigValidation() |
Modifier and Type | Method and Description |
---|---|
static void |
validateField(Field field,
Map conf)
Validates a field given field.
|
static void |
validateField(String fieldName,
Map conf)
Validates a field given field name as string uses Config.java as the default config class
|
static void |
validateField(String fieldName,
Map conf,
Class configClass)
Validates a field given field name as string
|
static void |
validateFields(Map conf)
Validate all confs in map
|
static void |
validateFields(Map conf,
Class configClass)
Validate all confs in map
|
public static void validateField(String fieldName, Map conf)
fieldName
- provided as a stringconf
- map of confspublic static void validateField(String fieldName, Map conf, Class configClass)
fieldName
- provided as a stringconf
- map of confsconfigClass
- config classpublic static void validateField(Field field, Map conf)
field
- field that needs to be validatedconf
- map of confspublic static void validateFields(Map conf)
conf
- map of configsCopyright © 2016 The Apache Software Foundation. All Rights Reserved.