// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.hosted.node.admin.configserver.orchestrator; import java.util.List; /** * Abstraction for communicating with Orchestrator. * * @author bakksjo */ public interface Orchestrator { /** * Suspends a host. * * @throws OrchestratorException if suspend was denied * @throws OrchestratorNotFoundException if host is unknown to the orchestrator */ void suspend(String hostName); /** * Resumes a host. * * @throws OrchestratorException if resume was denied * @throws OrchestratorNotFoundException if host is unknown to the orchestrator */ void resume(String hostName); /** * Suspends a list of nodes on a parent. * * @throws OrchestratorException if batch suspend was denied */ void suspend(String parentHostName, List hostNames); }