Tabnine Logo
RMAppRunningOnNodeEvent.getNodeId
Code IndexAdd Tabnine to your IDE (free)

How to use
getNodeId
method
in
org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMAppRunningOnNodeEvent

Best Java code snippets using org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMAppRunningOnNodeEvent.getNodeId (Showing top 3 results out of 315)

origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

 public void transition(RMAppImpl app, RMAppEvent event) {
  RMAppRunningOnNodeEvent nodeAddedEvent = (RMAppRunningOnNodeEvent) event;
  
  // if final state already stored, notify RMNode
  if (isAppInFinalState(app)) {
   app.handler.handle(
     new RMNodeCleanAppEvent(nodeAddedEvent.getNodeId(), nodeAddedEvent
       .getApplicationId()));
   return;
  }
  
  // otherwise, add it to ranNodes for further process
  app.ranNodes.add(nodeAddedEvent.getNodeId());
  if (!app.logAggregationStatus.containsKey(nodeAddedEvent.getNodeId())) {
   app.logAggregationStatus.put(nodeAddedEvent.getNodeId(),
    LogAggregationReport.newInstance(app.applicationId,
     app.logAggregationEnabled ? LogAggregationStatus.NOT_START
       : LogAggregationStatus.DISABLED, ""));
  }
 };
}
origin: com.github.jiayuhan-it/hadoop-yarn-server-resourcemanager

 public void transition(RMAppImpl app, RMAppEvent event) {
  RMAppRunningOnNodeEvent nodeAddedEvent = (RMAppRunningOnNodeEvent) event;
  
  // if final state already stored, notify RMNode
  if (isAppInFinalState(app)) {
   app.handler.handle(
     new RMNodeCleanAppEvent(nodeAddedEvent.getNodeId(), nodeAddedEvent
       .getApplicationId()));
   return;
  }
  
  // otherwise, add it to ranNodes for further process
  app.ranNodes.add(nodeAddedEvent.getNodeId());
 };
}
origin: ch.cern.hadoop/hadoop-yarn-server-resourcemanager

 public void transition(RMAppImpl app, RMAppEvent event) {
  RMAppRunningOnNodeEvent nodeAddedEvent = (RMAppRunningOnNodeEvent) event;
  
  // if final state already stored, notify RMNode
  if (isAppInFinalState(app)) {
   app.handler.handle(
     new RMNodeCleanAppEvent(nodeAddedEvent.getNodeId(), nodeAddedEvent
       .getApplicationId()));
   return;
  }
  
  // otherwise, add it to ranNodes for further process
  app.ranNodes.add(nodeAddedEvent.getNodeId());
 };
}
org.apache.hadoop.yarn.server.resourcemanager.rmappRMAppRunningOnNodeEventgetNodeId

Popular methods of RMAppRunningOnNodeEvent

  • <init>
  • getApplicationId

Popular in Java

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (Timer)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Kernel (java.awt.image)
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top plugins for Android Studio
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