public class TempUserPerPartition extends AbstractPreemptionEntity
amUsed, current, pending, reserved
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.yarn.api.records.Resource |
getUserLimit() |
String |
getUserName() |
boolean |
isPreemptionQuotaForULDeltaDone() |
boolean |
isUserLimitReached(org.apache.hadoop.yarn.util.resource.ResourceCalculator rc,
org.apache.hadoop.yarn.api.records.Resource clusterResource) |
void |
setUserLimit(org.apache.hadoop.yarn.api.records.Resource userLimitResource) |
String |
toString() |
void |
updatePreemptionQuotaForULDeltaAsDone(boolean done) |
getActuallyToBePreempted, getAMUsed, getPending, getReserved, getToBePreemptFromOther, getUsed, getUsedDeductAM, setActuallyToBePreempted, setToBePreemptFromOther
public String getUserName()
public org.apache.hadoop.yarn.api.records.Resource getUserLimit()
public void setUserLimit(org.apache.hadoop.yarn.api.records.Resource userLimitResource)
public boolean isUserLimitReached(org.apache.hadoop.yarn.util.resource.ResourceCalculator rc, org.apache.hadoop.yarn.api.records.Resource clusterResource)
public boolean isPreemptionQuotaForULDeltaDone()
public void updatePreemptionQuotaForULDeltaAsDone(boolean done)
Copyright © 2017 Apache Software Foundation. All Rights Reserved.