Examples of InstanceNode


Examples of edu.indiana.extreme.xbaya.graph.amazon.InstanceNode

        } else if (GraphSchema.NODE_TYPE_BLOCK.equals(type)) {
            node = new BlockNode(nodeElement);
        } else if (GraphSchema.NODE_TYPE_ENDBLOCK.equals(type)) {
            node = new EndBlockNode(nodeElement);
        } else if (GraphSchema.NODE_TYPE_INSTANCE.equals(type)) {
            node = new InstanceNode(nodeElement);
        } else if (GraphSchema.NODE_TYPE_TERMINATE.equals(type)) {
            node = new TerminateInstanceNode(nodeElement);
        } else {
            // Default is WsNode for backward compatibility.
            node = new WSNode(nodeElement);
View Full Code Here

Examples of edu.indiana.extreme.xbaya.graph.amazon.InstanceNode

  /**
   * @see edu.indiana.extreme.xbaya.component.Component#createNode(edu.indiana.extreme.xbaya.graph.Graph)
   */
  @Override
  public Node createNode(Graph graph) {
    InstanceNode node = new InstanceNode(graph);

    node.setName(NAME);
    node.setComponent(this);

    // Creates a unique ID for the node. This has to be after setName().
    node.createID();

    createPorts(node);

    return node;
  }
View Full Code Here

Examples of edu.indiana.extreme.xbaya.graph.amazon.InstanceNode

        if(node!=null){
          ControlPort control = node.getControlInPort();
          if(control != null){
            Node fromNode = control.getFromNode();
            if(fromNode instanceof InstanceNode){
              InstanceNode ec2Node = (InstanceNode)fromNode;
             
              /*
               * parse message and set output to InstanceNode
               */
              int start = event.getMessage().indexOf("i-");
              String instanceId = event.getMessage().substring(start, start+10);
              ec2Node.setOutputInstanceId(instanceId);
             
              //make this node to not start a new instance
              ec2Node.setStartNewInstance(false);
              ec2Node.setInstanceId(instanceId);
              ec2Node.setAmiId(null);             
            }
          }         
        }
      }
    }
View Full Code Here

Examples of org.apache.airavata.workflow.model.graph.amazon.InstanceNode

                if (node != null) {
                    ControlPort control = node.getControlInPort();
                    if (control != null) {
                        Node fromNode = control.getFromNode();
                        if (fromNode instanceof InstanceNode) {
                            InstanceNode ec2Node = (InstanceNode) fromNode;

                            /*
                             * parse message and set output to InstanceNode
                             */
                            int start = event.getMessage().indexOf("i-");
                            String instanceId = event.getMessage().substring(start, start + 10);
                            ec2Node.setOutputInstanceId(instanceId);

                            // make this node to not start a new instance
                            ec2Node.setStartNewInstance(false);
                            ec2Node.setInstanceId(instanceId);
                            ec2Node.setAmiId(null);
                        }
                    }
                }
            }
        }
View Full Code Here

Examples of org.apache.airavata.workflow.model.graph.amazon.InstanceNode

    /**
     * @see org.apache.airavata.workflow.model.component.Component#createNode(org.apache.airavata.workflow.model.graph.Graph)
     */
    @Override
    public Node createNode(Graph graph) {
        InstanceNode node = new InstanceNode(graph);

        node.setName(NAME);
        node.setComponent(this);

        // Creates a unique ID for the node. This has to be after setName().
        node.createID();

        createPorts(node);

        return node;
    }
View Full Code Here

Examples of org.apache.airavata.workflow.model.graph.amazon.InstanceNode

    } else if (GraphSchema.NODE_TYPE_BLOCK.equals(type)) {
      node = new BlockNode(nodeElement);
    } else if (GraphSchema.NODE_TYPE_ENDBLOCK.equals(type)) {
      node = new EndBlockNode(nodeElement);
    } else if (GraphSchema.NODE_TYPE_INSTANCE.equals(type)) {
      node = new InstanceNode(nodeElement);
    } else if (GraphSchema.NODE_TYPE_TERMINATE.equals(type)) {
      node = new TerminateInstanceNode(nodeElement);
    } else {
      // Default is WsNode for backward compatibility.
      node = new WSNode(nodeElement);
View Full Code Here

Examples of org.apache.airavata.workflow.model.graph.amazon.InstanceNode

                if (node != null) {
                    ControlPort control = node.getControlInPort();
                    if (control != null) {
                        Node fromNode = control.getFromNode();
                        if (fromNode instanceof InstanceNode) {
                            InstanceNode ec2Node = (InstanceNode) fromNode;

                            /*
                             * parse message and set output to InstanceNode
                             */
                            int start = event.getMessage().indexOf("i-");
                            String instanceId = event.getMessage().substring(start, start + 10);
                            ec2Node.setOutputInstanceId(instanceId);

                            // make this node to not start a new instance
                            ec2Node.setStartNewInstance(false);
                            ec2Node.setInstanceId(instanceId);
                            ec2Node.setAmiId(null);
                        }
                    }
                }
            }
        }
View Full Code Here

Examples of org.apache.airavata.workflow.model.graph.amazon.InstanceNode

                if (node != null) {
                    ControlPort control = node.getControlInPort();
                    if (control != null) {
                        Node fromNode = control.getFromNode();
                        if (fromNode instanceof InstanceNode) {
                            InstanceNode ec2Node = (InstanceNode) fromNode;

                            /*
                             * parse message and set output to InstanceNode
                             */
                            int start = event.getMessage().indexOf("i-");
                            String instanceId = event.getMessage().substring(start, start + 10);
                            ec2Node.setOutputInstanceId(instanceId);

                            // make this node to not start a new instance
                            ec2Node.setStartNewInstance(false);
                            ec2Node.setInstanceId(instanceId);
                            ec2Node.setAmiId(null);
                        }
                    }
                }
            }
        }
View Full Code Here

Examples of org.apache.airavata.workflow.model.graph.amazon.InstanceNode

                if (node != null) {
                    ControlPort control = node.getControlInPort();
                    if (control != null) {
                        Node fromNode = control.getFromNode();
                        if (fromNode instanceof InstanceNode) {
                            InstanceNode ec2Node = (InstanceNode) fromNode;

                            /*
                             * parse message and set output to InstanceNode
                             */
                            int start = event.getMessage().indexOf("i-");
                            String instanceId = event.getMessage().substring(start, start + 10);
                            ec2Node.setOutputInstanceId(instanceId);

                            // make this node to not start a new instance
                            ec2Node.setStartNewInstance(false);
                            ec2Node.setInstanceId(instanceId);
                            ec2Node.setAmiId(null);
                        }
                    }
                }
            }
        }
View Full Code Here

Examples of org.apache.airavata.xbaya.graph.amazon.InstanceNode

    /**
     * @see org.apache.airavata.xbaya.component.Component#createNode(org.apache.airavata.xbaya.graph.Graph)
     */
    @Override
    public Node createNode(Graph graph) {
        InstanceNode node = new InstanceNode(graph);

        node.setName(NAME);
        node.setComponent(this);

        // Creates a unique ID for the node. This has to be after setName().
        node.createID();

        createPorts(node);

        return node;
    }
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.