use of com.yahoo.vespa.model.filedistribution.FileDistributor 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);
}
Aggregations