org.apache.hadoop.yarn.state.SingleArcTransition Java Examples

The following examples show how to use org.apache.hadoop.yarn.state.SingleArcTransition. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RMAppImpl.java    From hadoop with Apache License 2.0 5 votes vote down vote up
@Override
public RMAppState transition(RMAppImpl app, RMAppEvent event) {
  if (app.transitionTodo instanceof SingleArcTransition) {
    ((SingleArcTransition) app.transitionTodo).transition(app,
      app.eventCausingFinalSaving);
  } else if (app.transitionTodo instanceof MultipleArcTransition) {
    ((MultipleArcTransition) app.transitionTodo).transition(app,
      app.eventCausingFinalSaving);
  }
  return app.targetedFinalState;

}
 
Example #2
Source File: RMAppAttemptImpl.java    From hadoop with Apache License 2.0 5 votes vote down vote up
@Override
public RMAppAttemptState transition(RMAppAttemptImpl appAttempt,
    RMAppAttemptEvent event) {
  RMAppAttemptEvent causeEvent = appAttempt.eventCausingFinalSaving;

  if (appAttempt.transitionTodo instanceof SingleArcTransition) {
    ((SingleArcTransition) appAttempt.transitionTodo).transition(
      appAttempt, causeEvent);
  } else if (appAttempt.transitionTodo instanceof MultipleArcTransition) {
    ((MultipleArcTransition) appAttempt.transitionTodo).transition(
      appAttempt, causeEvent);
  }
  return appAttempt.targetedFinalState;
}
 
Example #3
Source File: RMAppImpl.java    From big-c with Apache License 2.0 5 votes vote down vote up
@Override
public RMAppState transition(RMAppImpl app, RMAppEvent event) {
  if (app.transitionTodo instanceof SingleArcTransition) {
    ((SingleArcTransition) app.transitionTodo).transition(app,
      app.eventCausingFinalSaving);
  } else if (app.transitionTodo instanceof MultipleArcTransition) {
    ((MultipleArcTransition) app.transitionTodo).transition(app,
      app.eventCausingFinalSaving);
  }
  return app.targetedFinalState;

}
 
Example #4
Source File: RMAppAttemptImpl.java    From big-c with Apache License 2.0 5 votes vote down vote up
@Override
public RMAppAttemptState transition(RMAppAttemptImpl appAttempt,
    RMAppAttemptEvent event) {
  RMAppAttemptEvent causeEvent = appAttempt.eventCausingFinalSaving;

  if (appAttempt.transitionTodo instanceof SingleArcTransition) {
    ((SingleArcTransition) appAttempt.transitionTodo).transition(
      appAttempt, causeEvent);
  } else if (appAttempt.transitionTodo instanceof MultipleArcTransition) {
    ((MultipleArcTransition) appAttempt.transitionTodo).transition(
      appAttempt, causeEvent);
  }
  return appAttempt.targetedFinalState;
}