Class AbstractPreemptionEntity

java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.AbstractPreemptionEntity
Direct Known Subclasses:
TempAppPerPartition, TempQueuePerPartition, TempUserPerPartition

public class AbstractPreemptionEntity extends Object
Abstract temporary data-structure for tracking resource availability,pending resource need, current utilization for app/queue.
  • Field Details

    • current

      protected final org.apache.hadoop.yarn.api.records.Resource current
    • amUsed

      protected final org.apache.hadoop.yarn.api.records.Resource amUsed
    • reserved

      protected final org.apache.hadoop.yarn.api.records.Resource reserved
    • pending

      protected org.apache.hadoop.yarn.api.records.Resource pending
  • Method Details

    • getQueueName

      public String getQueueName()
    • getUsed

      public org.apache.hadoop.yarn.api.records.Resource getUsed()
    • getUsedDeductAM

      public org.apache.hadoop.yarn.api.records.Resource getUsedDeductAM()
    • getAMUsed

      public org.apache.hadoop.yarn.api.records.Resource getAMUsed()
    • getPending

      public org.apache.hadoop.yarn.api.records.Resource getPending()
    • getReserved

      public org.apache.hadoop.yarn.api.records.Resource getReserved()
    • getActuallyToBePreempted

      public org.apache.hadoop.yarn.api.records.Resource getActuallyToBePreempted()
    • setActuallyToBePreempted

      public void setActuallyToBePreempted(org.apache.hadoop.yarn.api.records.Resource actuallyToBePreempted)
    • getToBePreemptFromOther

      public org.apache.hadoop.yarn.api.records.Resource getToBePreemptFromOther()
    • setToBePreemptFromOther

      public void setToBePreemptFromOther(org.apache.hadoop.yarn.api.records.Resource toBePreemptFromOther)