Package org.springframework.yarn.boot.properties

Examples of org.springframework.yarn.boot.properties.SpringYarnAppmasterResourceProperties


      if (clusterProps != null) {
        for (java.util.Map.Entry<String, ContainerClustersProperties> entry : clusterProps.entrySet()) {
          ProjectionData data = new ProjectionData(entry.getValue().getProjectionAny(), entry.getValue()
              .getProjectionHosts(), entry.getValue().getProjectionRacks());
          data.setType(entry.getValue().getProjectionType());
          SpringYarnAppmasterResourceProperties resource = entry.getValue().getResource();
          if (resource != null) {
            data.setPriority(resource.getPriority());
          }
          projections.put(entry.getKey(), data);

        }
      }
View Full Code Here


        .priority(syarp.getPriority())
        .virtualCores(syarp.getVirtualCores());

      if (syap.getContainercluster() != null && syap.getContainercluster().getClusters() != null) {
        for (java.util.Map.Entry<String, ContainerClustersProperties> entry : syap.getContainercluster().getClusters().entrySet()) {
          SpringYarnAppmasterResourceProperties resource = entry.getValue().getResource();
          SpringYarnAppmasterLaunchContextProperties launchcontext = entry.getValue().getLaunchcontext();

          master
            .containerCommands(entry.getKey(), createContainerCommands(launchcontext));

          containerAllocatorConfigurer
            .withCollection(entry.getKey())
              .priority(resource != null ? resource.getPriority() : null)
              .memory(resource != null ? resource.getMemory() : null)
              .virtualCores(resource != null ? resource.getVirtualCores() : null)
              .locality(launchcontext != null ? launchcontext.isLocality() : false);
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.springframework.yarn.boot.properties.SpringYarnAppmasterResourceProperties

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.