Package org.apache.hadoop.yarn.server.resourcemanager.recovery.records

Examples of org.apache.hadoop.yarn.server.resourcemanager.recovery.records.ApplicationStateData


        LOG.error("Illegal event type: " + event.getClass());
        return;
      }
      ApplicationState appState = ((RMStateStoreAppEvent) event).getAppState();
      ApplicationId appId = appState.getAppId();
      ApplicationStateData appStateData = ApplicationStateData
          .newInstance(appState);
      LOG.info("Storing info for app: " + appId);
      try {
        store.storeApplicationStateInternal(appId, appStateData);
        store.notifyDoneStoringApplication(appId, null);
View Full Code Here


        LOG.error("Illegal event type: " + event.getClass());
        return;
      }
      ApplicationState appState = ((RMStateUpdateAppEvent) event).getAppState();
      ApplicationId appId = appState.getAppId();
      ApplicationStateData appStateData = ApplicationStateData
          .newInstance(appState);
      LOG.info("Updating info for app: " + appId);
      try {
        store.updateApplicationStateInternal(appId, appStateData);
        store.notifyDoneUpdatingApplication(appId, null);
View Full Code Here

  public static ApplicationStateData newApplicationStateData(long submitTime,
      long startTime, String user,
      ApplicationSubmissionContext submissionContext, RMAppState state,
      String diagnostics, long finishTime) {

    ApplicationStateData appState =
        recordFactory.newRecordInstance(ApplicationStateData.class);
    appState.setSubmitTime(submitTime);
    appState.setStartTime(startTime);
    appState.setUser(user);
    appState.setApplicationSubmissionContext(submissionContext);
    appState.setState(state);
    appState.setDiagnostics(diagnostics);
    appState.setFinishTime(finishTime);
    return appState;
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.yarn.server.resourcemanager.recovery.records.ApplicationStateData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.