Package com.asakusafw.compiler.flow

Examples of com.asakusafw.compiler.flow.JobFlowDriver


    }

    private JobFlowClass analyze(JobFlowWorkDescription description) {
        assert description != null;
        Class<? extends FlowDescription> flowClass = description.getFlowClass();
        JobFlowDriver driver = JobFlowDriver.analyze(flowClass);
        if (driver.hasError()) {
            for (String message : driver.getDiagnostics()) {
                getEnvironment().error(message);
            }
            return null;
        }
        return driver.getJobFlowClass();
    }
View Full Code Here


     * @return コンパイル結果
     * @throws IOException コンパイルに失敗した場合
     * @throws IllegalArgumentException 引数に{@code null}が指定された場合
     */
    public JobflowInfo compileJobflow(Class<? extends FlowDescription> description) throws IOException {
        JobFlowDriver driver = JobFlowDriver.analyze(description);
        assertThat(driver.getDiagnostics().toString(), driver.hasError(), is(false));
        List<File> classPath = buildClassPath(description);
        JobflowInfo info = DirectFlowCompiler.compile(
                driver.getJobFlowClass().getGraph(),
                "testing",
                driver.getJobFlowClass().getConfig().name(),
                "com.example",
                hadoopDriver.toPath(path("runtime", "jobflow")),
                new File("target/localwork", testName),
                classPath,
                getClass().getClassLoader(),
View Full Code Here

            validateTestCondition();
        }

        // フローコンパイラの実行
        LOG.info("ジョブフローをコンパイルしています: {}", jobFlowDescriptionClass.getName());
        JobFlowDriver jobFlowDriver = JobFlowDriver.analyze(jobFlowDescriptionClass);
        assertFalse(jobFlowDriver.getDiagnostics().toString(), jobFlowDriver.hasError());

        // コンパイル環境の検証
        driverContext.validateCompileEnvironment();

        JobFlowClass jobFlowClass = jobFlowDriver.getJobFlowClass();
        File compileWorkDir = driverContext.getCompilerWorkingDirectory();
        if (compileWorkDir.exists()) {
            FileUtils.forceDelete(compileWorkDir);
        }
View Full Code Here

            // テストデータ生成ツールを実行し、Excel上のテストデータ定義をデータベースに登録する。
            storeDatabase();
            setLastModifiedTimestamp(new Timestamp(0L));

            // フローコンパイラの実行
            JobFlowDriver jobFlowDriver = JobFlowDriver.analyze(jobFlowDescriptionClass);
            assertFalse(
                    jobFlowDriver.getDiagnostics().toString(),
                    jobFlowDriver.hasError());
            JobFlowClass jobFlowClass = jobFlowDriver.getJobFlowClass();

            String flowId = jobFlowClass.getConfig().name();
            File compileWorkDir = driverContext.getCompilerWorkingDirectory();
            if (compileWorkDir.exists()) {
                FileUtils.forceDelete(compileWorkDir);
View Full Code Here

TOP

Related Classes of com.asakusafw.compiler.flow.JobFlowDriver

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.