Class RMAppAttemptMetrics
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptMetrics
-
Constructor Summary
ConstructorsConstructorDescriptionRMAppAttemptMetrics(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId, RMContext rmContext) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.yarn.api.records.Resourcebooleanint[][]intlonglongorg.apache.hadoop.yarn.api.records.ResourceintvoidincNumAllocatedContainers(NodeType containerType, NodeType requestType) voidsetApplicationAttemptHeadRoom(org.apache.hadoop.yarn.api.records.Resource headRoom) voidvoidsetTotalAllocatedContainers(int totalAllocatedContainers) voidupdateAggregateAppResourceUsage(Map<String, Long> resourceSecondsMap) voidupdateAggregateAppResourceUsage(org.apache.hadoop.yarn.api.records.Resource allocated, long deltaUsedMillis) voidupdateAggregatePreemptedAppResourceUsage(Map<String, Long> preemptedResourceSecondsMap) voidupdateAggregatePreemptedAppResourceUsage(org.apache.hadoop.yarn.api.records.Resource allocated, long deltaUsedMillis) voidupdatePreemptionInfo(org.apache.hadoop.yarn.api.records.Resource resource, RMContainer container)
-
Constructor Details
-
RMAppAttemptMetrics
public RMAppAttemptMetrics(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId, RMContext rmContext)
-
-
Method Details
-
updatePreemptionInfo
public void updatePreemptionInfo(org.apache.hadoop.yarn.api.records.Resource resource, RMContainer container) -
getResourcePreempted
public org.apache.hadoop.yarn.api.records.Resource getResourcePreempted() -
getPreemptedMemory
public long getPreemptedMemory() -
getPreemptedVcore
public long getPreemptedVcore() -
getPreemptedResourceSecondsMap
-
getNumNonAMContainersPreempted
public int getNumNonAMContainersPreempted() -
setIsPreempted
public void setIsPreempted() -
getIsPreempted
public boolean getIsPreempted() -
getAggregateAppResourceUsage
-
updateAggregateAppResourceUsage
public void updateAggregateAppResourceUsage(org.apache.hadoop.yarn.api.records.Resource allocated, long deltaUsedMillis) -
updateAggregatePreemptedAppResourceUsage
public void updateAggregatePreemptedAppResourceUsage(org.apache.hadoop.yarn.api.records.Resource allocated, long deltaUsedMillis) -
updateAggregateAppResourceUsage
-
updateAggregatePreemptedAppResourceUsage
-
incNumAllocatedContainers
-
getLocalityStatistics
public int[][] getLocalityStatistics() -
getTotalAllocatedContainers
public int getTotalAllocatedContainers() -
setTotalAllocatedContainers
public void setTotalAllocatedContainers(int totalAllocatedContainers) -
getApplicationAttemptHeadroom
public org.apache.hadoop.yarn.api.records.Resource getApplicationAttemptHeadroom() -
setApplicationAttemptHeadRoom
public void setApplicationAttemptHeadRoom(org.apache.hadoop.yarn.api.records.Resource headRoom)
-