summaryrefslogtreecommitdiffstats
path: root/configserver/src/main/java/com/yahoo/vespa/config/server/filedistribution/CombinedLegacyDistribution.java
blob: 588f2d1d63f04143c16d7f8ed9f09576ff7f539a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config.server.filedistribution;

import com.yahoo.config.FileReference;
import com.yahoo.config.model.api.FileDistribution;

import java.util.Collection;
import java.util.Set;

public class CombinedLegacyDistribution implements FileDistribution {
    private final FileDistribution legacy;

    CombinedLegacyDistribution(FileDBHandler legacy) {
        this.legacy = legacy;
    }
    @Override
    public void sendDeployedFiles(String hostName, Set<FileReference> fileReferences) {
        legacy.sendDeployedFiles(hostName, fileReferences);
    }

    @Override
    public void reloadDeployFileDistributor() {
        legacy.reloadDeployFileDistributor();
    }

    @Override
    public void removeDeploymentsThatHaveDifferentApplicationId(Collection<String> targetHostnames) {
        legacy.removeDeploymentsThatHaveDifferentApplicationId(targetHostnames);
    }
}