diff options
author | Valerij Fredriksen <valerijf@yahooinc.com> | 2022-10-05 14:32:34 +0200 |
---|---|---|
committer | Valerij Fredriksen <valerijf@yahooinc.com> | 2022-10-06 12:53:01 +0200 |
commit | 38ab8f2531bbe4b11b4be80d40d8fd04eb3b0dd8 (patch) | |
tree | b3b38586ef3cde84b0461bc6fa1c19973d20729b /controller-api | |
parent | e0bf67c8b8a9842ecb59cd9516a44fcc155716bc (diff) |
Add ipAddress to RoutingPolicy
Diffstat (limited to 'controller-api')
-rw-r--r-- | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/LoadBalancer.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/LoadBalancer.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/LoadBalancer.java index 6199c8c28b9..8b0b674d682 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/LoadBalancer.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/LoadBalancer.java @@ -19,15 +19,17 @@ public class LoadBalancer { private final ApplicationId application; private final ClusterSpec.Id cluster; private final Optional<DomainName> hostname; + private final Optional<String> ipAddress; private final State state; private final Optional<String> dnsZone; - public LoadBalancer(String id, ApplicationId application, ClusterSpec.Id cluster, Optional<DomainName> hostname, State state, - Optional<String> dnsZone) { + public LoadBalancer(String id, ApplicationId application, ClusterSpec.Id cluster, Optional<DomainName> hostname, + Optional<String> ipAddress, State state, Optional<String> dnsZone) { this.id = Objects.requireNonNull(id, "id must be non-null"); this.application = Objects.requireNonNull(application, "application must be non-null"); this.cluster = Objects.requireNonNull(cluster, "cluster must be non-null"); this.hostname = Objects.requireNonNull(hostname, "hostname must be non-null"); + this.ipAddress = Objects.requireNonNull(ipAddress, "ipAddress must be non-null"); this.state = Objects.requireNonNull(state, "state must be non-null"); this.dnsZone = Objects.requireNonNull(dnsZone, "dnsZone must be non-null"); } @@ -48,6 +50,10 @@ public class LoadBalancer { return hostname; } + public Optional<String> ipAddress() { + return ipAddress; + } + public Optional<String> dnsZone() { return dnsZone; } |