From 963e50d08a81dcc9d4b5fe5293a62e5156465f11 Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Fri, 24 Jan 2020 09:42:06 +0100 Subject: Improve javadoc --- .../api/integration/configserver/ConfigServer.java | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'controller-api') diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ConfigServer.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ConfigServer.java index 0a656687538..77919b0ae54 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ConfigServer.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ConfigServer.java @@ -60,23 +60,30 @@ public interface ConfigServer { List getContentClusters(DeploymentId deployment); /** - * Set new status on en endpoint in one zone. + * Set new status for a endpoint of a single deployment. * - * @param deployment The application/zone pair - * @param endpoint The endpoint to modify - * @param status The new status with metadata + * @param deployment The deployment to change + * @param upstreamName The upstream to modify. Upstream name is a unique identifier for the global route of a + * deployment in the shared routing layer + * @param status The new status */ // TODO(mpolden): Implement a zone-variant of this - void setGlobalRotationStatus(DeploymentId deployment, String endpoint, EndpointStatus status); + void setGlobalRotationStatus(DeploymentId deployment, String upstreamName, EndpointStatus status); /** * Get the endpoint status for an app in one zone * * @param deployment The application/zone pair * @param endpoint The endpoint to modify + /** + * Get the endpoint status for an app in one zone. + * + * @param deployment The deployment to change + * @param upstreamName The upstream to query. Upstream name is a unique identifier for the global route of a + * deployment in the shared routing layer * @return The endpoint status with metadata */ - EndpointStatus getGlobalRotationStatus(DeploymentId deployment, String endpoint); + EndpointStatus getGlobalRotationStatus(DeploymentId deployment, String upstreamName); /** The node repository on this config server */ NodeRepository nodeRepository(); -- cgit v1.2.3