Package org.springframework.yarn.boot.properties

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


    public LocalResourcesSelector localResourcesSelector() {

      Map<String, LocalResourcesSelector> selectors = new HashMap<String, LocalResourcesSelector>();
      if (syap.getContainercluster() != null && syap.getContainercluster().getClusters() != null) {
        for (java.util.Map.Entry<String, ContainerClustersProperties> entry : syap.getContainercluster().getClusters().entrySet()) {
          SpringYarnAppmasterLocalizerProperties props = entry.getValue().getLocalizer();
          if (props == null) {
            continue;
          }
          BootLocalResourcesSelector selector = new BootLocalResourcesSelector(Mode.CONTAINER);
          if (StringUtils.hasText(props.getZipPattern())) {
            selector.setZipArchivePattern(props.getZipPattern());
          }
          if (props.getPropertiesNames() != null) {
            selector.setPropertiesNames(props.getPropertiesNames());
          }
          if (props.getPropertiesSuffixes() != null) {
            selector.setPropertiesSuffixes(props.getPropertiesSuffixes());
          }
          selector.addPatterns(props.getPatterns());
          selectors.put(entry.getKey(), selector);
        }
      }

      BootLocalResourcesSelector selector = new BootLocalResourcesSelector(Mode.CONTAINER);
View Full Code Here

TOP

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

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.