Class SupervisorResources


  • public class SupervisorResources
    extends Object
    • Constructor Detail

      • SupervisorResources

        public SupervisorResources​(double totalMem,
                                   double totalCpu,
                                   Map<String,​Double> totalGenericResources,
                                   double usedMem,
                                   double usedCpu,
                                   Map<String,​Double> usedGenericResources)
        Constructor for a Supervisor's resources.
        Parameters:
        totalMem - the total mem on the supervisor
        totalCpu - the total CPU on the supervisor
        totalGenericResources - the total generic resources on the supervisor
        usedMem - the used mem on the supervisor
        usedCpu - the used CPU on the supervisor
        usedGenericResources - the used generic resources on the supervisor
    • Method Detail

      • getUsedMem

        public double getUsedMem()
      • getUsedCpu

        public double getUsedCpu()
      • getTotalMem

        public double getTotalMem()
      • getTotalCpu

        public double getTotalCpu()
      • getAvailableCpu

        public double getAvailableCpu()
      • getAvailableMem

        public double getAvailableMem()
      • getTotalGenericResources

        public Map<String,​Double> getTotalGenericResources()
      • getUsedGenericResources

        public Map<String,​Double> getUsedGenericResources()