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() |
long |
getPreemptedMemory() |
long |
getPreemptedVcore() |
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 |
updateAggregatePreemptedAppResourceUsage(long preemptedMemorySeconds,
long preemptedVcoreSeconds) |
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 long getPreemptedMemory()
public long getPreemptedVcore()
public int getNumNonAMContainersPreempted()
public void setIsPreempted()
public boolean getIsPreempted()
public AggregateAppResourceUsage getAggregateAppResourceUsage()
public void updateAggregateAppResourceUsage(long finishedMemorySeconds,
long finishedVcoreSeconds)
public void updateAggregatePreemptedAppResourceUsage(long preemptedMemorySeconds,
long preemptedVcoreSeconds)
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 © 2017 Apache Software Foundation. All Rights Reserved.