public class RMAppAttemptMetrics extends Object
Constructor and Description |
---|
RMAppAttemptMetrics(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId,
RMContext rmContext) |
Modifier and Type | Method and Description |
---|---|
AggregateAppResourceUsage |
getAggregateAppResourceUsage() |
org.apache.hadoop.yarn.api.records.Resource |
getApplicationAttemptHeadroom() |
boolean |
getIsPreempted() |
int[][] |
getLocalityStatistics() |
int |
getNumNonAMContainersPreempted() |
org.apache.hadoop.yarn.api.records.Resource |
getResourcePreempted() |
int |
getTotalAllocatedContainers() |
void |
incNumAllocatedContainers(NodeType containerType,
NodeType requestType) |
void |
setApplicationAttemptHeadRoom(org.apache.hadoop.yarn.api.records.Resource headRoom) |
void |
setIsPreempted() |
void |
updateAggregateAppResourceUsage(long finishedMemorySeconds,
long finishedVcoreSeconds) |
void |
updatePreemptionInfo(org.apache.hadoop.yarn.api.records.Resource resource,
RMContainer container) |
public RMAppAttemptMetrics(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId, RMContext rmContext)
public void updatePreemptionInfo(org.apache.hadoop.yarn.api.records.Resource resource, RMContainer container)
public org.apache.hadoop.yarn.api.records.Resource getResourcePreempted()
public int getNumNonAMContainersPreempted()
public void setIsPreempted()
public boolean getIsPreempted()
public AggregateAppResourceUsage getAggregateAppResourceUsage()
public void updateAggregateAppResourceUsage(long finishedMemorySeconds, long finishedVcoreSeconds)
public void incNumAllocatedContainers(NodeType containerType, NodeType requestType)
public int[][] getLocalityStatistics()
public int getTotalAllocatedContainers()
public org.apache.hadoop.yarn.api.records.Resource getApplicationAttemptHeadroom()
public void setApplicationAttemptHeadRoom(org.apache.hadoop.yarn.api.records.Resource headRoom)
Copyright © 2015 Apache Software Foundation. All Rights Reserved.