Package alluxio.conf
Enum PropertyKey.ConsistencyCheckLevel
- java.lang.Object
-
- java.lang.Enum<PropertyKey.ConsistencyCheckLevel>
-
- alluxio.conf.PropertyKey.ConsistencyCheckLevel
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PropertyKey.ConsistencyCheckLevel>
- Enclosing class:
- PropertyKey
public static enum PropertyKey.ConsistencyCheckLevel extends java.lang.Enum<PropertyKey.ConsistencyCheckLevel>
The consistency check level to apply to a certain property key. User can run "alluxio validateEnv all cluster.conf.consistent" to validate the consistency of configuration properties within the cluster. The command reads all Alluxio properties on each node of the cluster and shows error or warning for properties that have inconsistent values among the nodes. For example, it would show error if the Alluxio property for aws secret access key has some value on a master node and a different value on one of the worker nodes.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PropertyKey.ConsistencyCheckLevel
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PropertyKey.ConsistencyCheckLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IGNORE
public static final PropertyKey.ConsistencyCheckLevel IGNORE
Do not check consistency of property value. This should be set if the property is not required to have same value among the nodes (e.g. worker hostname).
-
WARN
public static final PropertyKey.ConsistencyCheckLevel WARN
Check consistency of property value, show warning of inconsistent values. This should be set if the property is recommended to have same value among the nodes, although having different values does not cause immediate issues(e.g. alluxio home folder location, timeout value for connecting to a worker).
-
ENFORCE
public static final PropertyKey.ConsistencyCheckLevel ENFORCE
Check consistency of property value, show error of inconsistent values. This should be set if the property is required to have same value among the nodes (e.g. AWS credentials, journal location).
-
-
Method Detail
-
values
public static PropertyKey.ConsistencyCheckLevel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PropertyKey.ConsistencyCheckLevel c : PropertyKey.ConsistencyCheckLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PropertyKey.ConsistencyCheckLevel valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-