Examples of afterPropertiesSet()


Examples of org.springframework.yarn.am.AppmasterCmTemplate.afterPropertiesSet()

  }

  protected AppmasterCmOperations getCmTemplate(Container container) {
    try {
      AppmasterCmTemplate template = new AppmasterCmTemplate(getConfiguration(), container);
      template.afterPropertiesSet();
      return template;
    } catch (Exception e) {
      throw new YarnSystemException("Unable to create AppmasterCmTemplate", e);
    }
  }
View Full Code Here

Examples of org.springframework.yarn.am.AppmasterRmTemplate.afterPropertiesSet()

  @Override
  protected void onInit() throws Exception {
    super.onInit();
    AppmasterRmTemplate armt = new AppmasterRmTemplate(getConfiguration());
    armt.afterPropertiesSet();
    rmTemplate = armt;
  }

  /**
   * Gets the application attempt id.
View Full Code Here

Examples of org.springframework.yarn.client.YarnClientFactoryBean.afterPropertiesSet()

  }

  protected YarnClient getYarnClient() throws Exception {
    YarnClientFactoryBean factory = new YarnClientFactoryBean();
    factory.setConfiguration(configuration);
    factory.afterPropertiesSet();
    return factory.getObject();
  }

  protected ApplicationReport findApplicationReport(ApplicationId applicationId) throws Exception {
    YarnClient client = getYarnClient();
View Full Code Here

Examples of org.springframework.yarn.configuration.ConfigurationFactoryBean.afterPropertiesSet()

      fb.setUserKeytab(hadoopSecurity.getUserKeytab());
      fb.setNamenodePrincipal(hadoopSecurity.getNamenodePrincipal());
      fb.setRmManagerPrincipal(hadoopSecurity.getRmManagerPrincipal());
    }

    fb.afterPropertiesSet();

    YarnConfiguration c = fb.getObject();
    c = postProcess(c);
    return c;
  }
View Full Code Here

Examples of org.springframework.yarn.configuration.EnvironmentFactoryBean.afterPropertiesSet()

      fb.setDefaultMapreduceAppClasspath(getDataHolder(id).defaultMapreduceAppClasspath);
      fb.setUseDefaultYarnClasspath(getDataHolder(id).useDefaultYarnClasspath);
      fb.setUseDefaultMapreduceClasspath(getDataHolder(id).useDefaultMapreduceClasspath);
      fb.setIncludeLocalSystemEnv(getDataHolder(id).includeLocalSystemEnv);
      fb.setIncludeBaseDirectory(getDataHolder(id).includeBaseDirectory);
      fb.afterPropertiesSet();
      envs.put(id, fb.getObject());
    }
    return envs;
  }
View Full Code Here

Examples of org.springframework.yarn.container.YarnContainerFactoryBean.afterPropertiesSet()

  @Override
  protected YarnContainer performBuild() throws Exception {
    YarnContainerFactoryBean fb = new YarnContainerFactoryBean();
    fb.setContainerRef(ref);
    fb.setContainerClass(clazz);
    fb.afterPropertiesSet();
    YarnContainer container = fb.getObject();
    if (container instanceof AbstractYarnContainer) {
      ((AbstractYarnContainer)container).setConfiguration(configuration);
    }
    return container;
View Full Code Here

Examples of org.springframework.yarn.fs.LocalResourcesFactoryBean.afterPropertiesSet()

      fb.setHdfsEntries(entry.getKey(), entry.getValue());
    }
    if (rawEntries != null) {
      fb.setRawCopyEntries(rawEntries);
    }
    fb.afterPropertiesSet();
    return fb.getObject();
  }

  @Override
  public LocalResourcesCopyConfigurer withCopy() throws Exception {
View Full Code Here

Examples of org.springframework.yarn.integration.support.Jackson2ObjectMapperFactoryBean.afterPropertiesSet()

  }

  @Bean
  public ObjectMapper objectMapper() {
    Jackson2ObjectMapperFactoryBean factory = new Jackson2ObjectMapperFactoryBean();
    factory.afterPropertiesSet();
    return factory.getObject();
  }


  @Bean(name=IntegrationContextUtils.YARN_INTEGRATION_CONVERSION_SERVICE_BEAN_NAME)
View Full Code Here

Examples of org.springframework.yarn.launch.LaunchCommandsFactoryBean.afterPropertiesSet()

    factory.setOptions(syclcp.getOptions());

    factory.setStdout("<LOG_DIR>/Appmaster.stdout");
    factory.setStderr("<LOG_DIR>/Appmaster.stderr");
    factory.afterPropertiesSet();
    return factory.getObject();
  }

  private static Map<String, byte[]> unescapeMapKeys(Map<String, byte[]> map) {
    if (map == null || map.isEmpty()) {
View Full Code Here

Examples of org.springmodules.datamap.dao.DataMapper.afterPropertiesSet()

    public void testSimpleFind() throws Exception {
        jdbcTemplate.execute("insert into beers (id, brand) values(12, 'Amstel')");
        DataMapper am = new ActiveMapper(Beer.class);
        am.setDataSource(jdbcTemplate.getDataSource());
        am.afterPropertiesSet();
        Beer b = (Beer) am.find(new Long(12));
        assertEquals("correct beer found", "Amstel", b.getBrand());
    }

    public void testSimpleAdd() throws Exception {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.