com.yahoo.config.provision.SharedHosts Maven / Gradle / Ivy
package com.yahoo.config.provision;
/**
* @author hakonhall
*/
public interface SharedHosts {
/** 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 new SharedHosts() {
@Override public boolean supportsClusterType(ClusterSpec.Type clusterType) { return false; }
@Override public boolean hasClusterType(ClusterSpec.Type clusterType) { return false; }
};
}
}