diff options
Diffstat (limited to 'config-provisioning/src/main/java/com/yahoo/config/provision/zone/ZoneList.java')
-rw-r--r-- | config-provisioning/src/main/java/com/yahoo/config/provision/zone/ZoneList.java | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/config-provisioning/src/main/java/com/yahoo/config/provision/zone/ZoneList.java b/config-provisioning/src/main/java/com/yahoo/config/provision/zone/ZoneList.java index 0a6bdd3b6b8..c6ace00b90c 100644 --- a/config-provisioning/src/main/java/com/yahoo/config/provision/zone/ZoneList.java +++ b/config-provisioning/src/main/java/com/yahoo/config/provision/zone/ZoneList.java @@ -1,12 +1,10 @@ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.config.provision.zone; -import com.yahoo.config.provision.CloudName; import com.yahoo.config.provision.Environment; import com.yahoo.config.provision.RegionName; import java.util.List; -import java.util.Optional; import java.util.stream.Collectors; /** @@ -29,23 +27,9 @@ public interface ZoneList extends ZoneFilter { /** Zones in one of the given regions. */ ZoneList in(RegionName... regions); - /** Zones in one of the given clouds. */ - ZoneList in(CloudName... clouds); - /** Only the given zones — combine with not() for best effect! */ ZoneList among(ZoneId... zones); - /** Zones where hosts must be reprovisioned to upgrade their OS */ - ZoneList reprovisionToUpgradeOs(); - - /** Zones where traffic is routed using given method */ - ZoneList routingMethod(RoutingMethod method); - - /** Returns the zone with the given id, if this exists. */ - default Optional<? extends ZoneApi> get(ZoneId id) { - return among(id).zones().stream().findFirst(); - } - /** Returns the ZoneApi of all zones in this list. */ List<? extends ZoneApi> zones(); |