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