Package org.apache.hadoop.yarn.server.api

Examples of org.apache.hadoop.yarn.server.api.ApplicationTerminationContext


      service.initializeApplication(new ApplicationInitializationContext(event
        .getUser(), event.getApplicationID(), event.getServiceData()));
      break;
    case APPLICATION_STOP:
      for (AuxiliaryService serv : serviceMap.values()) {
        serv.stopApplication(new ApplicationTerminationContext(event
          .getApplicationID()));
      }
      break;
    case CONTAINER_INIT:
      for (AuxiliaryService serv : serviceMap.values()) {
View Full Code Here


        }
        break;
      case APPLICATION_STOP:
        for (AuxiliaryService serv : serviceMap.values()) {
          try {
            serv.stopApplication(new ApplicationTerminationContext(event
                .getApplicationID()));
          } catch (Throwable th) {
            logWarningWhenAuxServiceThrowExceptions(serv,
                AuxServicesEventType.APPLICATION_STOP, th);
          }
View Full Code Here

      // verify we are still authorized to shuffle to the old application
      rc = getShuffleResponseCode(shuffle, jt);
      Assert.assertEquals(HttpURLConnection.HTTP_OK, rc);

      // shutdown app and verify access is lost
      shuffle.stopApplication(new ApplicationTerminationContext(appId));
      rc = getShuffleResponseCode(shuffle, jt);
      Assert.assertEquals(HttpURLConnection.HTTP_UNAUTHORIZED, rc);

      // emulate shuffle handler restart
      shuffle.close();
View Full Code Here

      service.initializeApplication(new ApplicationInitializationContext(event
        .getUser(), event.getApplicationID(), event.getServiceData()));
      break;
    case APPLICATION_STOP:
      for (AuxiliaryService serv : serviceMap.values()) {
        serv.stopApplication(new ApplicationTerminationContext(event
          .getApplicationID()));
      }
      break;
    default:
      throw new RuntimeException("Unknown type: " + event.getType());
View Full Code Here

        }
        break;
      case APPLICATION_STOP:
        for (AuxiliaryService serv : serviceMap.values()) {
          try {
            serv.stopApplication(new ApplicationTerminationContext(event
                .getApplicationID()));
          } catch (Throwable th) {
            logWarningWhenAuxServiceThrowExceptions(serv,
                AuxServicesEventType.APPLICATION_STOP, th);
          }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.yarn.server.api.ApplicationTerminationContext

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.