From 4eebf09e3fc3a67a15579f5b8fa79742542f24db Mon Sep 17 00:00:00 2001 From: Jon Marius Venstad Date: Fri, 1 Nov 2019 08:52:01 +0100 Subject: Put the controller clock in service registry --- .../vespa/hosted/controller/api/integration/ServiceRegistry.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'controller-api') 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(); -- cgit v1.2.3