Tabnine Logo
RMAppAttemptRegistrationEvent.getTrackingurl
Code IndexAdd Tabnine to your IDE (free)

How to use
getTrackingurl
method
in
org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.event.RMAppAttemptRegistrationEvent

Best Java code snippets using org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.event.RMAppAttemptRegistrationEvent.getTrackingurl (Showing top 3 results out of 315)

origin: ch.cern.hadoop/hadoop-yarn-server-resourcemanager

 @Override
 public void transition(RMAppAttemptImpl appAttempt,
   RMAppAttemptEvent event) {
  long delay = System.currentTimeMillis() - appAttempt.launchAMEndTime;
  ClusterMetrics.getMetrics().addAMRegisterDelay(delay);
  RMAppAttemptRegistrationEvent registrationEvent
    = (RMAppAttemptRegistrationEvent) event;
  appAttempt.host = registrationEvent.getHost();
  appAttempt.rpcPort = registrationEvent.getRpcport();
  appAttempt.originalTrackingUrl =
    sanitizeTrackingUrl(registrationEvent.getTrackingurl());
  // Let the app know
  appAttempt.eventHandler.handle(new RMAppEvent(appAttempt
    .getAppAttemptId().getApplicationId(),
    RMAppEventType.ATTEMPT_REGISTERED));
  // TODO:FIXME: Note for future. Unfortunately we only do a state-store
  // write at AM launch time, so we don't save the AM's tracking URL anywhere
  // as that would mean an extra state-store write. For now, we hope that in
  // work-preserving restart, AMs are forced to reregister.
  appAttempt.rmContext.getRMApplicationHistoryWriter()
    .applicationAttemptStarted(appAttempt);
  appAttempt.rmContext.getSystemMetricsPublisher()
    .appAttemptRegistered(appAttempt, System.currentTimeMillis());
 }
}
origin: com.github.jiayuhan-it/hadoop-yarn-server-resourcemanager

 @Override
 public void transition(RMAppAttemptImpl appAttempt,
   RMAppAttemptEvent event) {
  long delay = System.currentTimeMillis() - appAttempt.launchAMEndTime;
  ClusterMetrics.getMetrics().addAMRegisterDelay(delay);
  RMAppAttemptRegistrationEvent registrationEvent
    = (RMAppAttemptRegistrationEvent) event;
  appAttempt.host = registrationEvent.getHost();
  appAttempt.rpcPort = registrationEvent.getRpcport();
  appAttempt.originalTrackingUrl =
    sanitizeTrackingUrl(registrationEvent.getTrackingurl());
  // Let the app know
  appAttempt.eventHandler.handle(new RMAppEvent(appAttempt
    .getAppAttemptId().getApplicationId(),
    RMAppEventType.ATTEMPT_REGISTERED));
  // TODO:FIXME: Note for future. Unfortunately we only do a state-store
  // write at AM launch time, so we don't save the AM's tracking URL anywhere
  // as that would mean an extra state-store write. For now, we hope that in
  // work-preserving restart, AMs are forced to reregister.
  appAttempt.rmContext.getRMApplicationHistoryWriter()
    .applicationAttemptStarted(appAttempt);
  appAttempt.rmContext.getSystemMetricsPublisher()
    .appAttemptRegistered(appAttempt, System.currentTimeMillis());
 }
}
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

appAttempt.rpcPort = registrationEvent.getRpcport();
appAttempt.originalTrackingUrl =
  sanitizeTrackingUrl(registrationEvent.getTrackingurl());
org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.eventRMAppAttemptRegistrationEventgetTrackingurl

Popular methods of RMAppAttemptRegistrationEvent

  • <init>
  • getHost
  • getRpcport

Popular in Java

  • Finding current android device location
  • compareTo (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Menu (java.awt)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Collectors (java.util.stream)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top plugins for WebStorm
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