public final class DefaultRegion extends AbstractAnnotated implements Region
Region.Type
Constructor and Description |
---|
DefaultRegion(RegionId id,
java.lang.String name,
Region.Type type,
Annotations annots,
java.util.List<java.util.Set<NodeId>> masters)
Creates a region using the supplied information.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
RegionId |
id()
Returns the unique identifier of the region.
|
java.util.List<java.util.Set<NodeId>> |
masters()
Returns the list of master node sets.
|
java.lang.String |
name()
Returns the friendly region name that can be used for display purposes.
|
java.lang.String |
toString() |
Region.Type |
type()
Returns the region type.
|
annotations
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
annotations
public DefaultRegion(RegionId id, java.lang.String name, Region.Type type, Annotations annots, java.util.List<java.util.Set<NodeId>> masters)
id
- region identifiername
- friendly nametype
- region typeannots
- annotationsmasters
- list of sets of cluster node identifiers; in order of mastershippublic RegionId id()
Region
public java.lang.String name()
Region
public Region.Type type()
Region
public java.util.List<java.util.Set<NodeId>> masters()
Region
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object