summaryrefslogtreecommitdiffstats
path: root/node-repository
diff options
context:
space:
mode:
authorValerij Fredriksen <valerij92@gmail.com>2021-02-18 16:02:49 +0100
committerValerij Fredriksen <valerij92@gmail.com>2021-02-18 16:02:49 +0100
commit5ef09c7e37133b9352448de3ededb26b01785a35 (patch)
tree5ad9af295e142a1db93da0abe198997ba90f3e80 /node-repository
parent7df30aeb447d37347fc138151dd0c0fa11e07cf8 (diff)
Expose FlagSource in NodeRepository
Diffstat (limited to 'node-repository')
-rw-r--r--node-repository/src/main/java/com/yahoo/vespa/hosted/provision/NodeRepository.java16
1 files changed, 10 insertions, 6 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/NodeRepository.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/NodeRepository.java
index 55495669802..059874f6ae7 100644
--- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/NodeRepository.java
+++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/NodeRepository.java
@@ -60,6 +60,7 @@ public class NodeRepository extends AbstractComponent {
private final JobControl jobControl;
private final Applications applications;
private final LoadBalancers loadBalancers;
+ private final FlagSource flagSource;
private final int spareCount;
/**
@@ -122,6 +123,7 @@ public class NodeRepository extends AbstractComponent {
this.jobControl = new JobControl(new JobControlFlags(db, flagSource));
this.applications = new Applications(db);
this.loadBalancers = new LoadBalancers(db);
+ this.flagSource = flagSource;
this.spareCount = spareCount;
rewriteNodes();
}
@@ -174,6 +176,14 @@ public class NodeRepository extends AbstractComponent {
public HostResourcesCalculator resourcesCalculator() { return resourcesCalculator; }
+ public FlagSource flagSource() { return flagSource; }
+
+ /** Returns the time keeper of this system */
+ public Clock clock() { return clock; }
+
+ /** Returns the zone of this system */
+ public Zone zone() { return zone; }
+
/** The number of nodes we should ensure has free capacity for node failures whenever possible */
public int spareCount() { return spareCount; }
@@ -204,10 +214,4 @@ public class NodeRepository extends AbstractComponent {
applications.remove(transaction);
}
- /** Returns the time keeper of this system */
- public Clock clock() { return clock; }
-
- /** Returns the zone of this system */
- public Zone zone() { return zone; }
-
}