Examples of FlowGraph


Examples of com.asakusafw.vocabulary.flow.graph.FlowGraph

            validateTestCondition();
        }

        // フローコンパイラの実行
        LOG.info("フロー部品をコンパイルしています: {}", flowDescription.getClass().getName());
        FlowGraph flowGraph = descDriver.createFlowGraph(flowDescription);

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

        File compileWorkDir = driverContext.getCompilerWorkingDirectory();
View Full Code Here

Examples of com.asakusafw.vocabulary.flow.graph.FlowGraph

        File compileWorkDir = driverContext.getCompilerWorkingDirectory();
        if (compileWorkDir.exists()) {
            FileUtils.forceDelete(compileWorkDir);
        }

        FlowGraph flowGraph = jobFlowClass.getGraph();
        String batchId = "bid";
        String flowId = jobFlowClass.getConfig().name();
        JobflowInfo jobflowInfo = DirectFlowCompiler.compile(
                flowGraph,
                batchId,
View Full Code Here

Examples of com.asakusafw.vocabulary.flow.graph.FlowGraph

        gen.defineInput("in");
        gen.defineOperator("op", "in", "out");
        gen.defineOutput("out");
        gen.connect("in", "op.in").connect("op.out", "out");

        FlowGraph graph = gen.toGraph();
        assertThat(getPlanner().validate(graph), is(true));
    }
View Full Code Here

Examples of com.asakusafw.vocabulary.flow.graph.FlowGraph

        gen.defineInput("in");
        gen.defineOperator("op", "in opened", "out");
        gen.defineOutput("out");
        gen.connect("in", "op.in").connect("op.out", "out");

        FlowGraph graph = gen.toGraph();
        assertThat(getPlanner().validate(graph), is(false));
    }
View Full Code Here

Examples of com.asakusafw.vocabulary.flow.graph.FlowGraph

        gen.defineInput("in");
        gen.defineOperator("op", "in", "out opened");
        gen.defineOutput("out");
        gen.connect("in", "op.in").connect("op.out", "out");

        FlowGraph graph = gen.toGraph();
        assertThat(getPlanner().validate(graph), is(false));
    }
View Full Code Here

Examples of com.asakusafw.vocabulary.flow.graph.FlowGraph

        gen.defineInput("in");
        gen.defineOperator("op", "in", "out opened", Connectivity.OPTIONAL);
        gen.defineOutput("out");
        gen.connect("in", "op.in").connect("op.out", "out");

        FlowGraph graph = gen.toGraph();
        assertThat(getPlanner().validate(graph), is(true));
    }
View Full Code Here

Examples of com.asakusafw.vocabulary.flow.graph.FlowGraph

        gen.defineOperator("back", "in", "out");
        gen.defineOutput("out");
        gen.connect("in", "op.in").connect("op.out", "out");
        gen.connect("op", "back").connect("back", "op");

        FlowGraph graph = gen.toGraph();
        assertThat(getPlanner().validate(graph), is(false));
    }
View Full Code Here

Examples of com.asakusafw.vocabulary.flow.graph.FlowGraph

        gen.defineInput("in");
        gen.defineFlowPart("c", comp.toGraph());
        gen.defineOutput("out");
        gen.connect("in", "c.in").connect("c.out", "out");

        FlowGraph graph = gen.toGraph();
        assertThat(getPlanner().validate(graph), is(false));
    }
View Full Code Here

Examples of com.asakusafw.vocabulary.flow.graph.FlowGraph

        gen.defineOutput("out1");
        gen.defineOutput("out2");
        gen.connect("in1", "op1").connect("op1.a", "op2").connect("op2", "out1");
        gen.connect("op1.b", "out2");

        FlowGraph graph = gen.toGraph();
        getPlanner().insertCheckpoints(graph);
        assertThat(FlowGraphUtil.collectBoundaries(graph),
                not(gen.getAsSet("in1", "op1", "op2", "out1", "out2")));

        Set<FlowElement> a = FlowGraphUtil.getSucceedingBoundaries(gen.output("op1.a"));
View Full Code Here

Examples of com.asakusafw.vocabulary.flow.graph.FlowGraph

        gen.defineOutput("out1");
        gen.defineOutput("out2");
        gen.connect("in1", "op1").connect("op1.a", "op2").connect("op2", "out1");
        gen.connect("op1.b", "out2");

        FlowGraph graph = gen.toGraph();
        getPlanner().insertCheckpoints(graph);

        assertThat(FlowGraphUtil.collectBoundaries(graph),
                is(gen.getAsSet("in1", "op1", "out1", "out2")));
    }
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.