blob: 868784aca7ebfd1ff7afabb4da29fb3bf272153f (
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
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.model.api;
import com.yahoo.config.FileReference;
import com.yahoo.vespa.defaults.Defaults;
import java.io.File;
import java.util.Collection;
import java.util.Set;
/**
* Interface for models towards filedistribution.
*
* @author lulf
* @since 5.1
*/
public interface FileDistribution {
void sendDeployedFiles(String hostName, Set<FileReference> fileReferences);
void reloadDeployFileDistributor();
void limitSendingOfDeployedFilesTo(Collection<String> hostNames);
void removeDeploymentsThatHaveDifferentApplicationId(Collection<String> targetHostnames);
static File getDefaultFileDBPath() {
return new File(Defaults.getDefaults().vespaHome() + "var/db/vespa/filedistribution");
}
}
|