diff options
author | Håkon Hallingstad <hakon@yahooinc.com> | 2024-05-19 10:12:18 +0200 |
---|---|---|
committer | Håkon Hallingstad <hakon@yahooinc.com> | 2024-05-19 10:12:18 +0200 |
commit | 708081bd3c30c1f974bf25f025ec7f97ca4aaa26 (patch) | |
tree | 018a73b220e7e7a0cbffac7cc455b59909ca8133 /config-provisioning | |
parent | dec25d5ab61a9e574a8b41853caa879adfccf894 (diff) |
Make flags depend on config-provisioning
Diffstat (limited to 'config-provisioning')
-rw-r--r-- | config-provisioning/src/main/java/com/yahoo/config/provision/SharedHosts.java | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/config-provisioning/src/main/java/com/yahoo/config/provision/SharedHosts.java b/config-provisioning/src/main/java/com/yahoo/config/provision/SharedHosts.java index 44a91d2861d..ec2660f45c8 100644 --- a/config-provisioning/src/main/java/com/yahoo/config/provision/SharedHosts.java +++ b/config-provisioning/src/main/java/com/yahoo/config/provision/SharedHosts.java @@ -1,17 +1,17 @@ package com.yahoo.config.provision; -import com.fasterxml.jackson.annotation.JsonIgnore; - /** * @author hakonhall */ public interface SharedHosts { - static SharedHosts empty() { - return new SharedHosts() { - @Override public boolean supportsClusterType(ClusterSpec.Type clusterType) { return false; } - @Override public boolean hasClusterType(ClusterSpec.Type clusterType) { return false; } - }; - } + + /** Whether there are any shared hosts specifically for the given cluster type, or without a cluster type restriction. */ + boolean supportsClusterType(ClusterSpec.Type clusterType); + + /** Whether there are any shared hosts specifically for the given cluster type. */ + boolean hasClusterType(ClusterSpec.Type clusterType); + + static SharedHosts empty() { return ofConstant(false, false); } static SharedHosts ofConstant(boolean supportsClusterType, boolean hasClusterType) { return new SharedHosts() { @@ -20,11 +20,4 @@ public interface SharedHosts { }; } - /** Whether there are any shared hosts specifically for the given cluster type, or without a cluster type restriction. */ - @JsonIgnore - boolean supportsClusterType(ClusterSpec.Type clusterType); - - /** Whether there are any shared hosts specifically for the given cluster type. */ - @JsonIgnore - boolean hasClusterType(ClusterSpec.Type clusterType); } |