Package com.yahoo.config.provision.zone
Class ZoneId
java.lang.Object
com.yahoo.config.provision.zone.ZoneId
Unique identifier for a Zone; use when referencing them.
Serialised form is 'environment.region'.
- Author:
- jonmv
-
Method Summary
Modifier and TypeMethodDescriptionstatic ZoneId
boolean
static ZoneId
from
(Environment environment, RegionName region) static ZoneId
Create from a serialised ZoneId.static ZoneId
int
hashCode()
static ZoneId
The ZoneId associated with the controller, distinct from all other zones in the system, but a constant across systems.region()
toString()
value()
Returns the serialised value of this.
-
Method Details
-
ofVirtualControllerZone
The ZoneId associated with the controller, distinct from all other zones in the system, but a constant across systems.The controller may also be associated with a real zone, i.e. with a region defining the location like aws-us-east-1a. Because such a zone ID is different for different systems, and may clash with a prod zone in the same region and system, the virtual zone ID is often used.
-
from
-
from
-
from
Create from a serialised ZoneId. Inverse ofZoneId.value()
. -
defaultId
-
environment
-
region
-
value
Returns the serialised value of this. Inverse ofZoneId.from(String value)
. -
toString
-
equals
-
hashCode
public int hashCode()
-