Tabnine Logo
FSOpDurations.addUpdateThreadRunDuration
Code IndexAdd Tabnine to your IDE (free)

How to use
addUpdateThreadRunDuration
method
in
org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSOpDurations

Best Java code snippets using org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSOpDurations.addUpdateThreadRunDuration (Showing top 3 results out of 315)

origin: com.github.jiayuhan-it/hadoop-yarn-server-resourcemanager

 @Override
 public void run() {
  while (!Thread.currentThread().isInterrupted()) {
   try {
    Thread.sleep(updateInterval);
    long start = getClock().getTime();
    update();
    preemptTasksIfNecessary();
    long duration = getClock().getTime() - start;
    fsOpDurations.addUpdateThreadRunDuration(duration);
   } catch (InterruptedException ie) {
    LOG.warn("Update thread interrupted. Exiting.");
    return;
   } catch (Exception e) {
    LOG.error("Exception in fair scheduler UpdateThread", e);
   }
  }
 }
}
origin: ch.cern.hadoop/hadoop-yarn-server-resourcemanager

 @Override
 public void run() {
  while (!Thread.currentThread().isInterrupted()) {
   try {
    Thread.sleep(updateInterval);
    long start = getClock().getTime();
    update();
    preemptTasksIfNecessary();
    long duration = getClock().getTime() - start;
    fsOpDurations.addUpdateThreadRunDuration(duration);
   } catch (InterruptedException ie) {
    LOG.warn("Update thread interrupted. Exiting.");
    return;
   } catch (Exception e) {
    LOG.error("Exception in fair scheduler UpdateThread", e);
   }
  }
 }
}
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

 readLock.unlock();
fsOpDurations.addUpdateThreadRunDuration(getClock().getTime() - start);
org.apache.hadoop.yarn.server.resourcemanager.scheduler.fairFSOpDurationsaddUpdateThreadRunDuration

Popular methods of FSOpDurations

  • addContinuousSchedulingRunDuration
  • addNodeUpdateDuration
  • getInstance
  • setExtended
  • addPreemptCallDuration
  • addUpdateCallDuration
  • getMetrics
  • hasUpdateThreadRunChanged

Popular in Java

  • Finding current android device location
  • getExternalFilesDir (Context)
  • compareTo (BigDecimal)
  • setScale (BigDecimal)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now