summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorValerij Fredriksen <valerijf@verizonmedia.com>2019-10-07 14:07:41 +0200
committerValerij Fredriksen <valerijf@verizonmedia.com>2019-10-07 14:07:41 +0200
commit32e5840d0e5f9dd4a4610c3e9a386826dfb376b2 (patch)
treefa4ee5803e4f41756052bd9fd9c6c03bf0bd4051
parent9ea1fbd9d9aa9ead77c953157560cdadf1367d96 (diff)
Remove unused classes
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/aws/AwsLimitsFetcher.java14
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/aws/Ec2InstanceCounts.java49
2 files changed, 0 insertions, 63 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/aws/AwsLimitsFetcher.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/aws/AwsLimitsFetcher.java
deleted file mode 100644
index 4e76f67e7cf..00000000000
--- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/aws/AwsLimitsFetcher.java
+++ /dev/null
@@ -1,14 +0,0 @@
-// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-package com.yahoo.vespa.hosted.controller.api.integration.aws;
-
-/**
- * @author freva
- */
-public interface AwsLimitsFetcher {
-
- /** Returns the AWS EC2 instance limits in the given AWS region */
- Ec2InstanceCounts getEc2InstanceLimits(String awsRegion);
-
- /** Returns the current usage of AWS EC2 instances in the given AWS region */
- Ec2InstanceCounts getEc2InstanceUsage(String awsRegion);
-}
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/aws/Ec2InstanceCounts.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/aws/Ec2InstanceCounts.java
deleted file mode 100644
index 044789f14e4..00000000000
--- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/aws/Ec2InstanceCounts.java
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-package com.yahoo.vespa.hosted.controller.api.integration.aws;
-
-import java.util.Map;
-import java.util.Objects;
-
-/**
- * @author freva
- */
-public class Ec2InstanceCounts {
- private final int totalCount;
- private final Map<String, Integer> instanceCounts;
-
- public Ec2InstanceCounts(int totalCount, Map<String, Integer> instanceCounts) {
- this.totalCount = totalCount;
- this.instanceCounts = Map.copyOf(instanceCounts);
- }
-
- public int getTotalCount() {
- return totalCount;
- }
-
- /** Returns map of counts by instance type, e.g. 'r5.2xlarge' */
- public Map<String, Integer> getInstanceCounts() {
- return instanceCounts;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- Ec2InstanceCounts that = (Ec2InstanceCounts) o;
- return totalCount == that.totalCount &&
- instanceCounts.equals(that.instanceCounts);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(totalCount, instanceCounts);
- }
-
- @Override
- public String toString() {
- return "Ec2InstanceLimits{" +
- "totalLimit=" + totalCount +
- ", instanceCounts=" + instanceCounts +
- '}';
- }
-}