org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt
Class RMAppAttemptMetrics

java.lang.Object
  extended by org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptMetrics

public class RMAppAttemptMetrics
extends Object


Constructor Summary
RMAppAttemptMetrics(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId, RMContext rmContext)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMAppAttemptMetrics

public RMAppAttemptMetrics(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId,
                           RMContext rmContext)
Method Detail

updatePreemptionInfo

public void updatePreemptionInfo(org.apache.hadoop.yarn.api.records.Resource resource,
                                 RMContainer container)

getResourcePreempted

public org.apache.hadoop.yarn.api.records.Resource getResourcePreempted()

getNumNonAMContainersPreempted

public int getNumNonAMContainersPreempted()

setIsPreempted

public void setIsPreempted()

getIsPreempted

public boolean getIsPreempted()

getAggregateAppResourceUsage

public AggregateAppResourceUsage getAggregateAppResourceUsage()

updateAggregateAppResourceUsage

public void updateAggregateAppResourceUsage(long finishedMemorySeconds,
                                            long finishedVcoreSeconds)


Copyright © 2014 Apache Software Foundation. All Rights Reserved.