Package com.asakusafw.compiler.flow

Examples of com.asakusafw.compiler.flow.FlowCompilerConfiguration


        assert baseLocation != null;
        assert workingDirectory != null;
        assert repositories != null;
        assert serviceClassLoader != null;
        assert flowCompilerOptions != null;
        FlowCompilerConfiguration config = new FlowCompilerConfiguration();
        ModelFactory factory = Models.getModelFactory();
        config.setBatchId(batchId);
        config.setFlowId(flowId);
        config.setFactory(factory);
        config.setProcessors(new SpiFlowElementProcessorRepository());
        config.setExternals(new SpiExternalIoDescriptionProcessorRepository());
        config.setDataClasses(new SpiDataClassRepository());
        config.setGraphRewriters(new SpiFlowGraphRewriterRepository());
        config.setPackager(new FilePackager(workingDirectory, repositories));
        config.setRootPackageName(basePackageName);
        config.setRootLocation(baseLocation);
        config.setServiceClassLoader(serviceClassLoader);
        config.setOptions(flowCompilerOptions);
        config.setBuildId(UUID.randomUUID().toString());
        return config;
    }
View Full Code Here


    }

    private FlowCompilerConfiguration createConfiguration(JobFlowClass jobflow) {
        assert jobflow != null;
        BatchCompilerConfiguration batch = getEnvironment().getConfiguration();
        FlowCompilerConfiguration result = new FlowCompilerConfiguration();
        result.setBatchId(batch.getBatchId());
        result.setDataClasses(batch.getDataClasses());
        result.setExternals(batch.getExternals());
        result.setFactory(batch.getFactory());
        result.setFlowId(jobflow.getConfig().name());
        result.setGraphRewriters(batch.getGraphRewriters());
        result.setPackager(createPackager(jobflow));
        result.setProcessors(batch.getFlowElements());
        result.setRootLocation(batch.getRootLocation());
        result.setRootPackageName(batch.getRootPackageName());
        result.setServiceClassLoader(batch.getServiceClassLoader());
        result.setOptions(getEnvironment().getConfiguration().getFlowCompilerOptions());
        result.setBuildId(getEnvironment().getBuildId());
        return result;
    }
View Full Code Here

        if (localWorkingDirectory.exists()) {
            clean(localWorkingDirectory);
        }
        List<ResourceRepository> repositories = createRepositories(serviceClassLoader, extraResources);
        FlowCompilerConfiguration config = createConfig(
                batchId,
                flowId,
                basePackageName,
                clusterWorkingDirectory,
                localWorkingDirectory,
View Full Code Here

            JobFlowWorkDescription description) throws IOException {
        JobFlowClass jobflow = analyze(description);
        if (jobflow == null) {
            return null;
        }
        FlowCompilerConfiguration config = createConfiguration(jobflow);
        FlowCompiler compiler = new FlowCompiler(config);
        JobflowModel model = compiler.compile(jobflow.getGraph());

        File batchOutput = getEnvironment().getConfiguration().getOutputDirectory();
        String flowId = compiler.getTargetFlowId();
View Full Code Here

TOP

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

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.