summaryrefslogtreecommitdiffstats
path: root/controller-api
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2019-11-01 08:52:01 +0100
committerJon Marius Venstad <venstad@gmail.com>2019-11-01 08:52:01 +0100
commit4eebf09e3fc3a67a15579f5b8fa79742542f24db (patch)
treec335be244b57b808831f61f885a2eca27f828b1c /controller-api
parentfbedab8dfb0c2a0c04faa0da73197a622d77b8f3 (diff)
Put the controller clock in service registry
Diffstat (limited to 'controller-api')
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/ServiceRegistry.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/ServiceRegistry.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/ServiceRegistry.java
index dec5d9264a7..26f78a3be90 100644
--- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/ServiceRegistry.java
+++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/ServiceRegistry.java
@@ -21,6 +21,8 @@ import com.yahoo.vespa.hosted.controller.api.integration.resource.TenantCost;
import com.yahoo.vespa.hosted.controller.api.integration.routing.GlobalRoutingService;
import com.yahoo.vespa.hosted.controller.api.integration.routing.RoutingGenerator;
+import java.time.Clock;
+
/**
* This provides access to all service dependencies of the controller. Implementations of this are responsible for
* constructing and configuring service implementations suitable for use by the controller.
@@ -32,6 +34,8 @@ public interface ServiceRegistry {
ConfigServer configServer();
+ Clock clock();
+
NameService nameService();
GlobalRoutingService globalRoutingService();