diff options
author | Håkon Hallingstad <hakon@yahooinc.com> | 2022-02-04 13:22:58 +0100 |
---|---|---|
committer | Håkon Hallingstad <hakon@yahooinc.com> | 2022-02-04 13:22:58 +0100 |
commit | b45ab9b231e20b057e3f016826acbe2386bec10d (patch) | |
tree | 4b10b95fdac0f22cbfdde16926d1e3cb9e7d778f /config-provisioning | |
parent | b3da823043a675cd5814d8fd0b66070880666714 (diff) |
Document difference between ID and virtual ID
Diffstat (limited to 'config-provisioning')
-rw-r--r-- | config-provisioning/src/main/java/com/yahoo/config/provision/zone/ZoneApi.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/config-provisioning/src/main/java/com/yahoo/config/provision/zone/ZoneApi.java b/config-provisioning/src/main/java/com/yahoo/config/provision/zone/ZoneApi.java index c6ba6d1bae5..b50d8ce2e7c 100644 --- a/config-provisioning/src/main/java/com/yahoo/config/provision/zone/ZoneApi.java +++ b/config-provisioning/src/main/java/com/yahoo/config/provision/zone/ZoneApi.java @@ -13,6 +13,12 @@ public interface ZoneApi { SystemName getSystemName(); + /** + * Returns the ID of the zone. + * + * WARNING: The ID of a controller zone is equal to the ID of a prod zone in the same region. + * @see #getVirtualId() + */ ZoneId getId(); /** Returns the SYSTEM.ENVIRONMENT.REGION string. */ @@ -21,8 +27,8 @@ public interface ZoneApi { } /** - * Returns the virtual ID of this zone. For ordinary zones this is the same as {@link ZoneApi#getId()}, for a - * system represented as a zone this is a fixed ID that is independent of the actual zone ID. + * Returns {@link #getId()} for all zones except the controller zone. Unlike {@link #getId()}, + * the virtual ID of a controller is distinct from all other zones. */ default ZoneId getVirtualId() { return getId(); |