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.
|
annotationsclone, finalize, getClass, notify, notifyAll, wait, wait, waitannotationspublic 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()
Regionpublic java.lang.String name()
Regionpublic Region.Type type()
Regionpublic java.util.List<java.util.Set<NodeId>> masters()
Regionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object