Examples of ForkNodeWidget


Examples of org.apache.oozie.tools.workflowgenerator.client.widget.control.ForkNodeWidget

                        kill = w;
                        addWidget(w, 30 + Random.nextInt(30), 30 + Random.nextInt(30));
                    }
                }
                else if (name.equals("Fork/Join")) {
                    ForkNodeWidget fork = new ForkNodeWidget(OozieWorkflowGenerator.this);
                    fork.setName("Fork_".concat(nodeCount.get(NodeType.FORK) != null ? nodeCount.get(NodeType.FORK)
                            .toString() : "0"));
                    addWidget(fork, 30 + Random.nextInt(30), 30 + Random.nextInt(30));

                    JoinNodeWidget join = new JoinNodeWidget(OozieWorkflowGenerator.this);
                    join.setName("Join_".concat(nodeCount.get(NodeType.JOIN) != null ? nodeCount.get(NodeType.JOIN)
View Full Code Here

Examples of org.apache.oozie.tools.workflowgenerator.client.widget.control.ForkNodeWidget

        Command forkjoin_cmd = new Command() {

            public void execute() {
                clear();
                initWidget();
                ForkNodeWidget fork = new ForkNodeWidget(OozieWorkflowGenerator.this);
                fork.setName("Fork_0");
                addWidget(fork, 150, 100);
                ((OozieDiagramController) controller).addConnection(start, fork);

                MapReduceActionWidget mr = new MapReduceActionWidget(OozieWorkflowGenerator.this);
                mr.setName("MR_0");
                addWidget(mr, 300, 30);
                ((OozieDiagramController) controller).addMultiConnection(fork, mr);

                PigActionWidget pig = new PigActionWidget(OozieWorkflowGenerator.this);
                pig.setName("Pig_0");
                addWidget(pig, 300, 200);
                ((OozieDiagramController) controller).addMultiConnection(fork, pig);

                JoinNodeWidget join = new JoinNodeWidget(OozieWorkflowGenerator.this);
                join.setName("Join_0");
                addWidget(join, 450, 100);
                ((OozieDiagramController) controller).addConnection(mr, join);
                ((OozieDiagramController) controller).addConnection(pig, join);
                ((OozieDiagramController) controller).addConnection(join, end);

                fork.updateOnSelection();
                join.updateOnSelection();
                mr.updateOnSelection();
                pig.updateOnSelection();
            }
        };
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.