org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair
Class FSOpDurations

java.lang.Object
  extended by org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSOpDurations
All Implemented Interfaces:
org.apache.hadoop.metrics2.MetricsSource

@InterfaceAudience.Private
@InterfaceStability.Unstable
@Metrics(context="fairscheduler-op-durations")
public class FSOpDurations
extends Object
implements org.apache.hadoop.metrics2.MetricsSource

Class to capture the performance metrics of FairScheduler. This should be a singleton.


Method Summary
 void addContinuousSchedulingRunDuration(long value)
           
 void addNodeUpdateDuration(long value)
           
 void addPreemptCallDuration(long value)
           
 void addUpdateCallDuration(long value)
           
 void addUpdateThreadRunDuration(long value)
           
static FSOpDurations getInstance(boolean isExtended)
           
 void getMetrics(org.apache.hadoop.metrics2.MetricsCollector collector, boolean all)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static FSOpDurations getInstance(boolean isExtended)

getMetrics

public void getMetrics(org.apache.hadoop.metrics2.MetricsCollector collector,
                       boolean all)
Specified by:
getMetrics in interface org.apache.hadoop.metrics2.MetricsSource

addContinuousSchedulingRunDuration

public void addContinuousSchedulingRunDuration(long value)

addNodeUpdateDuration

public void addNodeUpdateDuration(long value)

addUpdateThreadRunDuration

public void addUpdateThreadRunDuration(long value)

addUpdateCallDuration

public void addUpdateCallDuration(long value)

addPreemptCallDuration

public void addPreemptCallDuration(long value)


Copyright © 2014 Apache Software Foundation. All Rights Reserved.