Class SupervisorResources

java.lang.Object
org.apache.storm.scheduler.SupervisorResources

public class SupervisorResources extends Object
  • Constructor Details

    • 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 Details

    • 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()
    • add

    • addMem

      public SupervisorResources addMem(Double value)