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() |
boolean |
getIsPreempted() |
int |
getNumNonAMContainersPreempted() |
org.apache.hadoop.yarn.api.records.Resource |
getResourcePreempted() |
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)
Copyright © 2015 Apache Software Foundation. All Rights Reserved.