Package alluxio.wire

Class InconsistentProperty


  • public final class InconsistentProperty
    extends java.lang.Object
    Records a property that is required or recommended to be consistent but is not within its scope. For example, the ConsistencyCheckLevel of key A is ENFORCE and its Scope is MASTER, so this property is required to be consistent in all master nodes. The ConsistencyCheckLevel of key B is WARN and its Scope is SERVER, so this property is recommended to be consistent in all master and worker nodes.
    • Constructor Detail

      • InconsistentProperty

        public InconsistentProperty()
        Creates a new instance of InconsistentProperty.
      • InconsistentProperty

        protected InconsistentProperty​(alluxio.grpc.InconsistentProperty inconsistentProperty)
        Creates a new instance of InconsistentProperty from proto representation.
        Parameters:
        inconsistentProperty - the proto inconsistent property
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns:
        the name of this property
      • getValues

        public java.util.Map<java.util.Optional<java.lang.String>,​java.util.List<java.lang.String>> getValues()
        Returns:
        the values of this property
      • setName

        public InconsistentProperty setName​(java.lang.String name)
        Parameters:
        name - the property name
        Returns:
        the inconsistent property
      • setValues

        public InconsistentProperty setValues​(java.util.Map<java.util.Optional<java.lang.String>,​java.util.List<java.lang.String>> values)
        Parameters:
        values - the values to use
        Returns:
        the inconsistent property
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toProto

        public alluxio.grpc.InconsistentProperty toProto()
        Returns:
        an inconsistent property of proto construct
      • fromProto

        public static InconsistentProperty fromProto​(alluxio.grpc.InconsistentProperty inconsistentProperty)
        Creates a new instance of InconsistentProperty from proto representation.
        Parameters:
        inconsistentProperty - the proto representation of an inconsistent property
        Returns:
        the instance