Package com.asakusafw.bulkloader.bean

Examples of com.asakusafw.bulkloader.bean.ImportBean


        tableBean2.setLockType(ImportTableLockType.RECORD);
        tableBean2.setLockedOperation(ImportTableLockedOperation.OFF);
        tableBean2.setImportTargetType(null);
        tableBean2.setDfsFilePath(null);
        targetTable.put("IMPORT_TARGET2", tableBean2);
        ImportBean bean = createBean(new String[]{jobflowId, "JOB_FLOW01-003", "20101021221015", "3", "5"}, targetTable);

        String jobflowSid = "2";

        // テスト対象クラス実行
        ImportFileCreate create = new ImportFileCreate();
View Full Code Here


        tableBean1.setLockType(ImportTableLockType.RECORD);
        tableBean1.setLockedOperation(ImportTableLockedOperation.ERROR);
        tableBean1.setImportTargetType(null);
        tableBean1.setDfsFilePath(null);
        targetTable.put("IMPORT_TARGET1", tableBean1);
        ImportBean bean = createBean(new String[]{jobflowId, "JOB_FLOW01-004", "20101021221015", "3", "5"}, targetTable);

        String jobflowSid = "3";

        // テスト対象クラス実行
        ImportFileCreate create = new ImportFileCreate();
View Full Code Here

            tableBean1.setLockType(ImportTableLockType.RECORD);
            tableBean1.setLockedOperation(ImportTableLockedOperation.ERROR);
            tableBean1.setImportTargetType(null);
            tableBean1.setDfsFilePath(null);
            targetTable.put("IMPORT_TARGET1", tableBean1);
            ImportBean bean = createBean(new String[]{jobflowId, executionId, "20101021221015", "3", "5"}, targetTable);

            // テスト対象クラス実行
            ImportFileCreate create = new ImportFileCreate();
            boolean result = create.createImportFile(bean, jobflowSid);
View Full Code Here

        tableBean.setLockType(ImportTableLockType.TABLE);
        tableBean.setLockedOperation(ImportTableLockedOperation.ERROR);
        tableBean.setImportTargetType(null);
        tableBean.setDfsFilePath(null);
        targetTable.put("IMPORT_TARGET3", tableBean);
        ImportBean bean = createBean(new String[]{jobflowId, executionId, "20101021221015", "3", "5"}, targetTable);

        String jobflowSid = "5";

        // テスト対象クラス実行
        ImportFileCreate create = new ImportFileCreate();
View Full Code Here

        tableBean.setLockType(ImportTableLockType.TABLE);
        tableBean.setLockedOperation(ImportTableLockedOperation.ERROR);
        tableBean.setImportTargetType(null);
        tableBean.setDfsFilePath(null);
        targetTable.put("IMPORT_TARGET1", tableBean);
        ImportBean bean = createBean(new String[]{jobflowId, executionId, "20101021221015", "3", "5"}, targetTable);

        String jobflowSid = "7";

        // テスト対象クラス実行
        ImportFileCreate create = new ImportFileCreate();
View Full Code Here

        tableBean.setLockType(ImportTableLockType.TABLE);
        tableBean.setLockedOperation(ImportTableLockedOperation.ERROR);
        tableBean.setImportTargetType(null);
        tableBean.setDfsFilePath(null);
        targetTable.put("IMPORT_TARGET1", tableBean);
        ImportBean bean = createBean(new String[]{jobflowId, executionId, "20101021221015", "3", "5"}, targetTable);

        // プロパティを書き換え
        Properties prop = ConfigurationLoader.getProperty();
        prop.setProperty(Constants.PROP_KEY_IMP_FILE_DIR, "src/test/data/importer/temp");
        ConfigurationLoader.setProperty(prop);
View Full Code Here

     * @param args
     * @param targetTable
     * @return ImportBean
     */
    private static ImportBean createBean(String[] args, Map<String, ImportTargetTableBean> targetTable) {
        ImportBean bean = new ImportBean();
        // ターゲット名
        bean.setTargetName(targetName);
        // ジョブフローID
        bean.setJobflowId(args[0]);
        // ジョブフロー実行ID
        bean.setExecutionId(args[1]);
        // ジョブネットの終了予定時刻
        String date = args[2];
        Calendar cal = Calendar.getInstance();
        cal.clear();
        cal.set(Calendar.YEAR, Integer.parseInt(date.substring(0, 4)));
        cal.set(Calendar.MONTH, Integer.parseInt(date.substring(4, 6)) - 1);
        cal.set(Calendar.DATE, Integer.parseInt(date.substring(6, 8)));
        cal.set(Calendar.HOUR, Integer.parseInt(date.substring(8, 10)));
        cal.set(Calendar.MINUTE, Integer.parseInt(date.substring(10, 12)));
        cal.set(Calendar.SECOND, Integer.parseInt(date.substring(12, 14)));
        bean.setJobnetEndTime(cal.getTime());
        // リトライ回数・リトライインターバル
        bean.setRetryCount(Integer.parseInt(args[3]));
        bean.setRetryInterval(Integer.parseInt(args[4]));

        // テーブル毎の設定
        bean.setTargetTable(targetTable);

        return bean;
    }
View Full Code Here

TOP

Related Classes of com.asakusafw.bulkloader.bean.ImportBean

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.