Examples of JobflowInfo


Examples of com.asakusafw.compiler.testing.JobflowInfo

     * Output single file set.
     * @throws Exception if failed
     */
    @Test
    public void single() throws Exception {
        JobflowInfo info = tester.compileJobflow(SingleOutputJob.class);

        ModelOutput<Ex1> source = tester.openOutput(Ex1.class, tester.getImporter(info, "input"));
        writeTestData(source);
        source.close();

View Full Code Here

Examples of com.asakusafw.compiler.testing.JobflowInfo

     * Output multiple file sets.
     * @throws Exception if failed
     */
    @Test
    public void multiple() throws Exception {
        JobflowInfo info = tester.compileJobflow(MultipleOutputJob.class);

        ModelOutput<Ex1> source = tester.openOutput(Ex1.class, tester.getImporter(info, "input"));
        writeTestData(source);
        source.close();

View Full Code Here

Examples of com.asakusafw.compiler.testing.JobflowInfo

     * Output files into nested directory.
     * @throws Exception if failed
     */
    @Test
    public void independent() throws Exception {
        JobflowInfo info = tester.compileJobflow(IndependentOutputJob.class);

        ModelOutput<Ex1> source = tester.openOutput(Ex1.class, tester.getImporter(info, "input"));
        writeTestData(source);
        source.close();

View Full Code Here

Examples of com.asakusafw.compiler.testing.JobflowInfo

     * Output files into nested directory.
     * @throws Exception if failed
     */
    @Test
    public void nested() throws Exception {
        JobflowInfo info = tester.compileJobflow(NestedOutputJob.class);

        ModelOutput<Ex1> source = tester.openOutput(Ex1.class, tester.getImporter(info, "input"));
        writeTestData(source);
        source.close();

View Full Code Here

Examples of com.asakusafw.compiler.testing.JobflowInfo

        JobflowModel model = proc.process(jobflow);

        File jar = JobFlowWorkDescriptionProcessor.getPackageLocation(
                env.getConfiguration().getOutputDirectory(),
                model.getFlowId());
        JobflowInfo info = DirectFlowCompiler.toInfo(model, jar, jar);

        ModelOutput<Ex1> output = tester.openOutput(
                Ex1.class,
                Location.fromPath("target/testing/SimpleJobFlow/importer/out", '/'));
        Ex1 ex1 = new Ex1();
View Full Code Here

Examples of com.asakusafw.compiler.testing.JobflowInfo

        In<Simple> in = flow.createIn("in1", new Import(Simple.class, "testing", dummy()));
        Out<Simple> out = flow.createOut("out1", new Export(Simple.class, "testing", dummy()));

        FlowDescription desc = new IdentityFlow<Simple>(in, out);

        JobflowInfo info = compile(flow, desc);
        assertThat(info, not(nullValue()));
        List<ExternalIoCommandProvider> commands = info.getCommandProviders();
        ExternalIoCommandProvider provider = WindGateIoProcessor.findRelated(commands);
        assertThat(provider, not(nullValue()));

        CommandContext context = new CommandContext("home", "id", "");
        List<Command> importer = provider.getImportCommand(context);
View Full Code Here

Examples of com.asakusafw.compiler.testing.JobflowInfo

        In<Simple> in = flow.createIn("in1", new Import(Simple.class, "testing", dummy()));
        Out<Simple> out = flow.createOut("out1", new Export(Simple.class, "other", dummy()));

        FlowDescription desc = new IdentityFlow<Simple>(in, out);

        JobflowInfo info = compile(flow, desc);
        assertThat(info, not(nullValue()));
        List<ExternalIoCommandProvider> commands = info.getCommandProviders();
        ExternalIoCommandProvider provider = WindGateIoProcessor.findRelated(commands);
        assertThat(provider, not(nullValue()));

        CommandContext context = new CommandContext("home", "id", "");
        List<Command> importer = provider.getImportCommand(context);
View Full Code Here

Examples of com.asakusafw.compiler.testing.JobflowInfo

        Out<Simple> out1 = flow.createOut("out1", new Export(Simple.class, "testing", dummy()));
        Out<Simple> out2 = flow.createOut("out2", new Export(Simple.class, "testing", dummy()));

        FlowDescription desc = new DualIdentityFlow<Simple>(in1, in2, out1, out2);

        JobflowInfo info = compile(flow, desc);
        assertThat(info, not(nullValue()));
        List<ExternalIoCommandProvider> commands = info.getCommandProviders();
        ExternalIoCommandProvider provider = WindGateIoProcessor.findRelated(commands);
        assertThat(provider, not(nullValue()));

        CommandContext context = new CommandContext("home", "id", "");
        List<Command> importer = provider.getImportCommand(context);
View Full Code Here

Examples of com.asakusafw.compiler.testing.JobflowInfo

        Out<Simple> out1 = flow.createOut("out1", new Export(Simple.class, "testing", dummy()));
        Out<Simple> out2 = flow.createOut("out2", new Export(Simple.class, "testing", dummy()));

        FlowDescription desc = new DualIdentityFlow<Simple>(in1, in2, out1, out2);

        JobflowInfo info = compile(flow, desc);
        assertThat(info, not(nullValue()));
        List<ExternalIoCommandProvider> commands = info.getCommandProviders();
        ExternalIoCommandProvider provider = WindGateIoProcessor.findRelated(commands);
        assertThat(provider, not(nullValue()));

        CommandContext context = new CommandContext("home", "id", "");
        List<Command> importer = provider.getImportCommand(context);
View Full Code Here

Examples of com.asakusafw.compiler.testing.JobflowInfo

        Out<Simple> out1 = flow.createOut("out1", new Export(Simple.class, "testing", dummy()));
        Out<Simple> out2 = flow.createOut("out2", new Export(Simple.class, "other", dummy()));

        FlowDescription desc = new DualIdentityFlow<Simple>(in1, in2, out1, out2);

        JobflowInfo info = compile(flow, desc);
        assertThat(info, not(nullValue()));
        List<ExternalIoCommandProvider> commands = info.getCommandProviders();
        ExternalIoCommandProvider provider = WindGateIoProcessor.findRelated(commands);
        assertThat(provider, not(nullValue()));

        CommandContext context = new CommandContext("home", "id", "");
        List<Command> importer = provider.getImportCommand(context);
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.