diff options
author | Harald Musum <musum@oath.com> | 2018-01-16 09:52:41 +0100 |
---|---|---|
committer | Harald Musum <musum@oath.com> | 2018-01-16 09:52:41 +0100 |
commit | a7295435da81b348a89c456008e3da773de9b5c6 (patch) | |
tree | 37be47ba171f08eff261942ebbb850c283a60de6 /config-model-api | |
parent | f317fee05fcbd7e77b62dc87b118c1699caaef26 (diff) |
Ask other config servers to start downloading files
To have redundancy, ask the other config servers to start downloading
a file, so we have redundancy in case the config server running the code
goes down after deployment has finished
Diffstat (limited to 'config-model-api')
-rw-r--r-- | config-model-api/src/main/java/com/yahoo/config/model/api/FileDistribution.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/config-model-api/src/main/java/com/yahoo/config/model/api/FileDistribution.java b/config-model-api/src/main/java/com/yahoo/config/model/api/FileDistribution.java index 3f1c0046a85..77d7d557520 100644 --- a/config-model-api/src/main/java/com/yahoo/config/model/api/FileDistribution.java +++ b/config-model-api/src/main/java/com/yahoo/config/model/api/FileDistribution.java @@ -24,8 +24,19 @@ public interface FileDistribution { * @param hostName host which should be notified about file references to download * @param fileReferences set of file references to start downloading */ + // TODO: Remove when 6.170 is the last version in use void startDownload(String hostName, Set<FileReference> fileReferences); + /** + * Notifies client which file references to download. Used to start downloading early (while + * preparing application package). + * + * @param hostName host which should be notified about file references to download + * @param port port which should be used when notifying + * @param fileReferences set of file references to start downloading + */ + void startDownload(String hostName, int port, Set<FileReference> fileReferences); + void reloadDeployFileDistributor(); void removeDeploymentsThatHaveDifferentApplicationId(Collection<String> targetHostnames); |