use of com.yahoo.vespa.model.filedistribution.FileDistributionConfigProvider in project vespa by vespa-engine.
the class Admin method addFileDistribution.
private void addFileDistribution(HostResource host) {
FileDistributor fileDistributor = fileDistribution.getFileDistributor();
HostResource deployHost = getHostSystem().getHostByHostname(fileDistributor.fileSourceHost());
if (deployHostIsMissing(deployHost)) {
throw new RuntimeException("Could not find host in the application's host system: '" + fileDistributor.fileSourceHost() + "'. Hostsystem=" + getHostSystem());
}
FileDistributionConfigProvider configProvider = new FileDistributionConfigProvider(fileDistribution, fileDistributor, host == deployHost, host.getHost());
fileDistribution.addFileDistributionConfigProducer(host.getHost(), configProvider);
}
use of com.yahoo.vespa.model.filedistribution.FileDistributionConfigProvider in project vespa by vespa-engine.
the class SearchNode method getConfig.
@Override
public void getConfig(FiledistributorrpcConfig.Builder builder) {
FileDistributionConfigProducer fileDistribution = getRoot().getFileDistributionConfigProducer();
if (fileDistribution != null) {
FileDistributionConfigProvider configProducer = fileDistribution.getConfigProducer(getHost());
configProducer.getConfig(builder);
}
}
Aggregations