Package com.asakusafw.bulkloader.common

Examples of com.asakusafw.bulkloader.common.JobFlowParamLoader


    /**
     * DSLParamLoaderを生成して返す。
     * @return JobFlowParamLoader
     */
    protected JobFlowParamLoader createJobFlowParamLoader() {
        return new JobFlowParamLoader();
    }
View Full Code Here


        bean.setJobflowId(jobFlowId);
        // ジョブフロー実行ID
        bean.setExecutionId(executionId);

        // DSLプロパティを読み込み
        JobFlowParamLoader dslLoader = createJobFlowParamLoader();
        if (!dslLoader.loadExtractParam(bean.getTargetName(), bean.getBatchId(), bean.getJobflowId())) {
            return null;
        }
        bean.setTargetTable(dslLoader.getImportTargetTables());

        return bean;
    }
View Full Code Here

    /**
     * DSLParamLoaderのインスタンスを生成して返す。
     * @return JobFlowParamLoader
     */
    protected JobFlowParamLoader createJobFlowParamLoader() {
        return new JobFlowParamLoader();
    }
View Full Code Here

        args[4] = "hadoop";
        Collector collector = new StubCollector() {

            @Override
            protected JobFlowParamLoader createJobFlowParamLoader() {
                JobFlowParamLoader loder = new JobFlowParamLoader(){
                    @Override
                    public boolean loadExportParam(String targetName, String batchId, String jobflowId) {
                        return false;
                    }
View Full Code Here

}
class StubCollector extends Collector {
    @Override
    protected JobFlowParamLoader createJobFlowParamLoader() {
        JobFlowParamLoader loder = new JobFlowParamLoader(){
            @Override
            protected Properties getExportProp(File file, String targetName) throws IOException {
                File propFile = new File("src/test/data/common/export1.propertes");
                FileInputStream fis = new FileInputStream(propFile);
                Properties prop = new Properties();
View Full Code Here

                ConfigurationLoader.getProperty(Constants.PROP_KEY_EXP_RETRY_COUNT)));
        bean.setRetryInterval(Integer.parseInt(
                ConfigurationLoader.getProperty(Constants.PROP_KEY_EXP_RETRY_INTERVAL)));

        // DSLプロパティを読み込み
        JobFlowParamLoader dslLoader = createJobFlowParamLoader();
        if (!dslLoader.loadExportParam(bean.getTargetName(), bean.getBatchId(), bean.getJobflowId())) {
            return null;
        }
        bean.setExportTargetTable(dslLoader.getExportTargetTables());
        if (!dslLoader.loadImportParam(bean.getTargetName(), bean.getBatchId(), bean.getJobflowId(), true)) {
            return null;
        }
        bean.setImportTargetTable(dslLoader.getImportTargetTables());

        return bean;
    }
View Full Code Here

    /**
     * DSLParamLoaderを生成して返す。
     * @return JobFlowParamLoader
     */
    protected JobFlowParamLoader createJobFlowParamLoader() {
        return new JobFlowParamLoader();
    }
View Full Code Here

    /**
     * @see com.asakusafw.bulkloader.recoverer.Recoverer#createJobFlowParamLoader()
     */
    @Override
    protected JobFlowParamLoader createJobFlowParamLoader() {
        JobFlowParamLoader loder = new JobFlowParamLoader(){
            @Override
            protected Properties getExportProp(File file, String targetName) throws IOException {
                File propFile = new File("src/test/data/recoverer/export.propertes");
                FileInputStream fis = new FileInputStream(propFile);
                Properties prop = new Properties();
View Full Code Here

TOP

Related Classes of com.asakusafw.bulkloader.common.JobFlowParamLoader

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.