diff options
author | Ola Aunrønning <olaa@oath.com> | 2019-03-28 16:47:42 +0100 |
---|---|---|
committer | Ola Aunrønning <olaa@oath.com> | 2019-03-28 16:51:13 +0100 |
commit | 3b2ff9efcc949122a881510f44636e31ea8a9ff3 (patch) | |
tree | 2a644e8927bbdea0ff2cd593bff15768a422d6d9 /controller-api | |
parent | 0c68e0a886cacdf1a720673dcb5deb4a649f4a0d (diff) |
Added description/author
Diffstat (limited to 'controller-api')
2 files changed, 10 insertions, 3 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/resource/ResourceAllocation.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/resource/ResourceAllocation.java index 8c1b300f713..3b86b7b8219 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/resource/ResourceAllocation.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/resource/ResourceAllocation.java @@ -5,11 +5,16 @@ import com.yahoo.vespa.hosted.controller.api.integration.noderepository.NodeRepo import java.util.List; +/** + * Stores the total amount of resources allocated to a list of nodes + * + * @author leandroalves + */ public class ResourceAllocation { - final double cpuCores; - final double memoryGb; - final double diskGb; + private final double cpuCores; + private final double memoryGb; + private final double diskGb; private ResourceAllocation(double cpuCores, double memoryGb, double diskGb) { this.cpuCores = cpuCores; diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/resource/ResourceSnapshotConsumer.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/resource/ResourceSnapshotConsumer.java index eb7c4c79900..f7f3eddb482 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/resource/ResourceSnapshotConsumer.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/resource/ResourceSnapshotConsumer.java @@ -6,6 +6,8 @@ import com.yahoo.config.provision.ApplicationId; import java.util.Map; /** + * Consumes a snapshot of resourses allocated/used per application. + * * @author olaa */ public interface ResourceSnapshotConsumer { |