Package alluxio.wire
Class InconsistentProperty
- java.lang.Object
-
- alluxio.wire.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 Summary
Constructors Modifier Constructor Description InconsistentProperty()
Creates a new instance ofInconsistentProperty
.protected
InconsistentProperty(alluxio.grpc.InconsistentProperty inconsistentProperty)
Creates a new instance ofInconsistentProperty
from proto representation.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
static InconsistentProperty
fromProto(alluxio.grpc.InconsistentProperty inconsistentProperty)
Creates a new instance ofInconsistentProperty
from proto representation.java.lang.String
getName()
java.util.Map<java.util.Optional<java.lang.String>,java.util.List<java.lang.String>>
getValues()
int
hashCode()
InconsistentProperty
setName(java.lang.String name)
InconsistentProperty
setValues(java.util.Map<java.util.Optional<java.lang.String>,java.util.List<java.lang.String>> values)
alluxio.grpc.InconsistentProperty
toProto()
java.lang.String
toString()
-
-
-
Constructor Detail
-
InconsistentProperty
public InconsistentProperty()
Creates a new instance ofInconsistentProperty
.
-
InconsistentProperty
protected InconsistentProperty(alluxio.grpc.InconsistentProperty inconsistentProperty)
Creates a new instance ofInconsistentProperty
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.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 ofInconsistentProperty
from proto representation.- Parameters:
inconsistentProperty
- the proto representation of an inconsistent property- Returns:
- the instance
-
-