Package org.springframework.yarn.listener

Examples of org.springframework.yarn.listener.AppmasterStateListener


   * @param masterStepExecution the parent step execution
   */
  protected void waitCompleteState(final StepExecution masterStepExecution) {
    final CountDownLatch latch = new CountDownLatch(1);

    batchAppmaster.addAppmasterStateListener(new AppmasterStateListener() {
      @Override
      public void state(AppmasterState state) {
        log.info("AppmasterStateListener state=[" + state + "]");
        if(state == AppmasterState.COMPLETED || state == AppmasterState.FAILED) {
          latch.countDown();
View Full Code Here


    appmaster.setEnvironment(System.getenv());


    log.info("Running YarnAppmaster with parameters [" + StringUtils.arrayToCommaDelimitedString(parameters) + "]");

    appmaster.addAppmasterStateListener(new AppmasterStateListener() {
      @Override
      public void state(AppmasterState state) {
        if (state == AppmasterState.COMPLETED) {
          countDownLatch();
          exit(ExitStatus.COMPLETED.getExitCode());
View Full Code Here

    bean.setEnvironment(System.getenv());
    if(log.isDebugEnabled()) {
      log.debug("Starting YarnAppmaster bean: " + StringUtils.arrayToCommaDelimitedString(parameters));
    }

    bean.addAppmasterStateListener(new AppmasterStateListener() {
      @Override
      public void state(AppmasterState state) {
        if(state == AppmasterState.COMPLETED) {
          latch.countDown();
        }
View Full Code Here

TOP

Related Classes of org.springframework.yarn.listener.AppmasterStateListener

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.