Class ResourceUsage


  • public class ResourceUsage
    extends java.lang.Object
    POJO used to represent any system specific resource usage this is the format that load manager expects it in.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      double limit  
      double usage  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(ResourceUsage o)
      this may be wrong since we are comparing available and not the usage.
      float percentUsage()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • usage

        public final double usage
      • limit

        public final double limit
    • Constructor Detail

      • ResourceUsage

        public ResourceUsage​(double usage,
                             double limit)
      • ResourceUsage

        public ResourceUsage()
    • Method Detail

      • compareTo

        public int compareTo​(ResourceUsage o)
        this may be wrong since we are comparing available and not the usage.
        Parameters:
        o -
        Returns:
      • percentUsage

        public float percentUsage()