Class NodeResources

java.lang.Object
org.apache.drill.exec.resourcemgr.NodeResources

public class NodeResources extends Object
Provides resources for a node in cluster. Currently it is used to support only 2 kind of resources:
  • Memory
  • Virtual CPU count
It also has a version field to support extensibility in future to add other resources like network, disk, etc
  • Constructor Details

    • NodeResources

      public NodeResources(long memoryInBytes, int numVirtualCpu)
    • NodeResources

      public NodeResources(long memoryInBytes, int numPhysicalCpu, int vFactor)
  • Method Details

    • getMemoryInBytes

      public long getMemoryInBytes()
    • getMemoryInMB

      public long getMemoryInMB()
    • getMemoryInGB

      public long getMemoryInGB()
    • getNumVirtualCpu

      public int getNumVirtualCpu()
    • toString

      public String toString()
      Overrides:
      toString in class Object