Class PackingPlan


  • public class PackingPlan
    extends Object
    • Method Detail

      • getMaxContainerResources

        public Resource getMaxContainerResources()
        Computes the maximum of all the resources required by the containers in the packing plan. If the PackingPlan has already been scheduled, the scheduled resources will be used over the required resources.
        Returns:
        maximum Resources found in all containers.
      • cloneWithHomogeneousScheduledResource

        public PackingPlan cloneWithHomogeneousScheduledResource()
        Creates a clone of PackingPlan. It also computes the maximum of all the resources required by containers in the packing plan and updates the containers of the clone with the max resource information
      • getId

        public String getId()
      • getInstanceCount

        public Integer getInstanceCount()
      • getComponentCounts

        public Map<String,​Integer> getComponentCounts()
        Return a map containing the count of all of the components, keyed by name
      • getComponentRamDistribution

        public String getComponentRamDistribution()
        Get the formatted String describing component RAM distribution from PackingPlan, used by executor
        Returns:
        String describing component RAM distribution
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object