summaryrefslogtreecommitdiffstats
path: root/orchestrator
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2018-03-14 15:06:20 +0100
committerMartin Polden <mpolden@mpolden.no>2018-03-14 15:06:20 +0100
commit9bd947289f3f67e0df1a44f8bd55ac110b904c69 (patch)
tree493bfe08ccc605c3e787fecf3eb8e7026b774833 /orchestrator
parentd0b2ffd151865421b4479d60bd52e211aa09c809 (diff)
Remove deprecated suspend API
Diffstat (limited to 'orchestrator')
-rw-r--r--orchestrator/src/main/java/com/yahoo/vespa/orchestrator/resources/HostSuspensionResource.java18
1 files changed, 0 insertions, 18 deletions
diff --git a/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/resources/HostSuspensionResource.java b/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/resources/HostSuspensionResource.java
index c1e312ddee6..6fa1e06520e 100644
--- a/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/resources/HostSuspensionResource.java
+++ b/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/resources/HostSuspensionResource.java
@@ -9,7 +9,6 @@ import com.yahoo.vespa.orchestrator.BatchInternalErrorException;
import com.yahoo.vespa.orchestrator.Orchestrator;
import com.yahoo.vespa.orchestrator.policy.BatchHostStateChangeDeniedException;
import com.yahoo.vespa.orchestrator.restapi.HostSuspensionApi;
-import com.yahoo.vespa.orchestrator.restapi.wire.BatchHostSuspendRequest;
import com.yahoo.vespa.orchestrator.restapi.wire.BatchOperationResult;
import javax.inject.Inject;
@@ -37,23 +36,6 @@ public class HostSuspensionResource implements HostSuspensionApi {
}
@Override
- public BatchOperationResult suspendAll(BatchHostSuspendRequest request) throws WebApplicationException {
- String parentHostnameString = request.getParentHostname();
- if (parentHostnameString == null || parentHostnameString.isEmpty()) {
- String message = "parentHostname missing or empty in request: " + request;
- log.log(LogLevel.DEBUG, message);
- throw createWebApplicationException(message, Response.Status.BAD_REQUEST);
- }
- List<String> hostnamesAsStrings = request.getHostnames();
- if (hostnamesAsStrings == null) {
- String message = "hostnames missing in request: " + request;
- log.log(LogLevel.DEBUG, message);
- throw createWebApplicationException(message, Response.Status.BAD_REQUEST);
- }
- return suspendAll(parentHostnameString, hostnamesAsStrings);
- }
-
- @Override
public BatchOperationResult suspendAll(String parentHostnameString, List<String> hostnamesAsStrings) {
HostName parentHostname = new HostName(parentHostnameString);
List<HostName> hostnames = hostnamesAsStrings.stream().map(HostName::new).collect(Collectors.toList());