Search in sources :

Example 1 with FileDistributor

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);
}
Also used : HostResource(com.yahoo.vespa.model.HostResource) FileDistributor(com.yahoo.vespa.model.filedistribution.FileDistributor) FileDistributionConfigProvider(com.yahoo.vespa.model.filedistribution.FileDistributionConfigProvider)

Aggregations

HostResource (com.yahoo.vespa.model.HostResource)1 FileDistributionConfigProvider (com.yahoo.vespa.model.filedistribution.FileDistributionConfigProvider)1 FileDistributor (com.yahoo.vespa.model.filedistribution.FileDistributor)1