public class TaskInstanceMapCalculation
extends java.lang.Object
Constructor and Description |
---|
TaskInstanceMapCalculation(java.lang.Double instanceRam,
java.lang.Double instanceDisk,
java.lang.Double instanceCPU) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.Integer,java.util.Map<TaskInstanceId,java.lang.Double>> |
getInstancesCPUMapInContainer(java.util.Map<java.lang.Integer,java.util.List<TaskInstanceId>> containerInstanceAllocationMap,
java.util.Set<Vertex> taskVertexSet)
It receives the container instance allocation map and calculate the required number of
task instances with cpu values.
|
java.util.Map<java.lang.Integer,java.util.Map<TaskInstanceId,java.lang.Double>> |
getInstancesDiskMapInContainer(java.util.Map<java.lang.Integer,java.util.List<TaskInstanceId>> containerInstanceAllocationMap,
java.util.Set<Vertex> taskVertexSet)
It receives the container instance allocation map and calculate the required number of
instances with disk values.
|
java.util.Map<java.lang.Integer,java.util.Map<TaskInstanceId,java.lang.Double>> |
getInstancesRamMapInContainer(java.util.Map<java.lang.Integer,java.util.List<TaskInstanceId>> containerInstanceAllocationMap,
java.util.Set<Vertex> taskVertexSet)
It receives the container instance allocation map and calculate the required number of
task instances with ram values.
|
public TaskInstanceMapCalculation(java.lang.Double instanceRam, java.lang.Double instanceDisk, java.lang.Double instanceCPU)
public java.util.Map<java.lang.Integer,java.util.Map<TaskInstanceId,java.lang.Double>> getInstancesRamMapInContainer(java.util.Map<java.lang.Integer,java.util.List<TaskInstanceId>> containerInstanceAllocationMap, java.util.Set<Vertex> taskVertexSet)
containerInstanceAllocationMap
- taskVertexSet
- public java.util.Map<java.lang.Integer,java.util.Map<TaskInstanceId,java.lang.Double>> getInstancesDiskMapInContainer(java.util.Map<java.lang.Integer,java.util.List<TaskInstanceId>> containerInstanceAllocationMap, java.util.Set<Vertex> taskVertexSet)
containerInstanceAllocationMap
- taskVertexSet
- public java.util.Map<java.lang.Integer,java.util.Map<TaskInstanceId,java.lang.Double>> getInstancesCPUMapInContainer(java.util.Map<java.lang.Integer,java.util.List<TaskInstanceId>> containerInstanceAllocationMap, java.util.Set<Vertex> taskVertexSet)
containerInstanceAllocationMap
- taskVertexSet
-