blob: 8b211d1d4003ba8a8c4a8f0b37c054306085ea21 (
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
31
32
33
|
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.application.api;
import java.util.List;
import java.util.Set;
import com.yahoo.config.FileReference;
/**
* @author tonytv
*/
public interface FileRegistry {
FileReference addFile(String relativePath);
/**
* Returns the name of the host which is the source of the files
*/
String fileSourceHost();
List<Entry> export();
class Entry {
public final String relativePath;
public final FileReference reference;
public Entry(String relativePath, FileReference reference) {
this.relativePath = relativePath;
this.reference = reference;
}
}
}
|