Package org.springframework.yarn.config.annotation.EnableYarn

Examples of org.springframework.yarn.config.annotation.EnableYarn.Enable


  @Override
  public String[] selectImports(AnnotationMetadata importingClassMetadata) {

    Map<String, Object> attrMap = importingClassMetadata.getAnnotationAttributes(EnableYarn.class.getName());
    AnnotationAttributes enableAttrs = AnnotationAttributes.fromMap(attrMap);
    Enable enable = enableAttrs.getEnum("enable");

    String[] configs = new String[2];

    if (enable == Enable.CLIENT) {
      configs[0] = SpringYarnClientConfiguration.class.getName();
View Full Code Here


    builder.setSharedObject(YarnConfigBuilder.class, getConfigBuilder());
    builder.setSharedObject(YarnResourceLocalizerBuilder.class, getLocalizerBuilder());
    builder.setSharedObject(YarnEnvironmentBuilder.class, getEnvironmentBuilder());

    EnableYarn annotation = AnnotationUtils.findAnnotation(getClass(), EnableYarn.class);
    Enable enable = annotation.enable();

    if (log.isDebugEnabled()) {
      log.debug("Enabling builder for " + enable);
    }
View Full Code Here

TOP

Related Classes of org.springframework.yarn.config.annotation.EnableYarn.Enable

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.