Class Topology.Location
java.lang.Object
org.forgerock.opendj.server.leaderbasedreplication.Topology.Location
- Enclosing class:
Topology
Represents the location of a replica.
A location is defined as a hierarchical list of labels separated by the "." character. The leftmost label is the top of the hierarchy, and each subsequent label represents a nested level. This hierarchy can be visualized as a tree structure with branches and parent/child relationships. For example, the locations "US.EAST.ZONE_A", "US.EAST.ZONE_B", "US.WEST.ZONE_A", and "EU.WEST.ZONE_B" can be represented in a tree structure as follows:
"" (root)
├── US
│ ├── EAST
│ │ ├── ZONE_A
│ │ └── ZONE_B
│ └── WEST
│ └── ZONE_A
└── EU
└── WEST
└── ZONE_B
The path from the root node to a label node defines the location branch level.
In the tree above, the location branch levels are: "US", "EU", "US.EAST", "US.WEST", "US.WEST", "EU.WEST",
"US.EAST.ZONE_A", "US.EAST.ZONE_B", "US.WEST.ZONE_A" and "EU.WEST.ZONE_B".
The location branch levels have parent/child relationships. For example:
- "" is the implicit parent location branch level of "US" and "EU" - "US" is the parent location branch level of "US.EAST" and "US.WEST" - "US.EAST" is the parent location branch level of "US.EAST.ZONE_A" and "US.EAST.ZONE_B"
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Location
Constructs a new Location. The location string is split by the "." character and each part is considered a level. For example, if the location string is "US.EAST.ZONE_A", the location branch levels would be: "US", "US.EAST" and "US.EAST.ZONE_A".- Parameters:
location- the location string
-
-
Method Details
-
toString
-
equals
-
hashCode
-