summaryrefslogtreecommitdiffstats
path: root/config-model-api
diff options
context:
space:
mode:
authorHarald Musum <musum@oath.com>2018-05-28 15:10:38 +0200
committerHarald Musum <musum@oath.com>2018-05-28 15:10:38 +0200
commitdf5e9cc1c0745ef435a72fe07662a419ae94f795 (patch)
tree9043783e150618ec8871f6abac107ca4278f76f0 /config-model-api
parent70b85c369c231659c52fe37e5c9908b68ac50770 (diff)
Add method to get all file references used by an application
Diffstat (limited to 'config-model-api')
-rw-r--r--config-model-api/src/main/java/com/yahoo/config/model/api/Model.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/config-model-api/src/main/java/com/yahoo/config/model/api/Model.java b/config-model-api/src/main/java/com/yahoo/config/model/api/Model.java
index cc17cae337c..97ad67c5279 100644
--- a/config-model-api/src/main/java/com/yahoo/config/model/api/Model.java
+++ b/config-model-api/src/main/java/com/yahoo/config/model/api/Model.java
@@ -1,6 +1,7 @@
// 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.config.provision.AllocatedHosts;
import com.yahoo.vespa.config.ConfigKey;
import com.yahoo.vespa.config.ConfigPayload;
@@ -47,6 +48,10 @@ public interface Model {
*/
void distributeFiles(FileDistribution fileDistribution);
+ /**
+ * The set of files that should be distributed to the hosts in this model.
+ */
+ Set<FileReference> fileReferences();
/**
* Gets the allocated hosts for this model.