com.ibm.broker.config.appdev

Class Connection

  • java.lang.Object
    • com.ibm.broker.config.appdev.Connection
  • All Implemented Interfaces:
    java.io.Serializable


    public class Connection
    extends java.lang.Object
    implements java.io.Serializable

    Represents a logical connection between an output terminal and an input terminal in a message flow.

    Connection instances are logically owned by a MessageFlow parent and are returned by the MessageFlow.getConnections() method. New connections are formed using MessageFlow.connect() and removed using MessageFlow.disconnect(). For example:

    Here is an example implementation that demonstrates how to use the Message Flow class to connect two existing nodes together:

                          File msgFlow1 = new File("Test.msgflow");
                MessageFlow mf1 = FlowRendererMSGFLOW.read(msgFlow1);
                Node inputNode = mf1.getNodeByName("input from queue");
                Node outputNode = mf1.getNodeByName("output from queue");
                mf1.connect(inputNode.getOutputTerminal("out"),
                            outputNode.getInputTerminal("in"));
     
     Change Activity:
     -------- ----------- -------------   ------------------------------------
     Reason:  Date:       Originator:     Comments:
     -------- ----------- -------------   ------------------------------------
     xxxxx.x  2010-07-28  HDMPL           creation
     xxxxx.x  2010-08-10  dstorey         v7.0.0.2 Release
     xxxxx.x  2011-07-06  dstorey         v8.0.0.0 Release
     
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String copyright 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object compare)
      Returns true if and only if the supplied connection is equivalent to the current Connection
      OutputTerminal getSource()
      Returns this connections OutputTerminal
      InputTerminal getTarget()
      Returns this connections InputTerminal
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getSource

        public OutputTerminal getSource()
        Returns this connections OutputTerminal
        Returns:
        OutputTerminal;
      • getTarget

        public InputTerminal getTarget()
        Returns this connections InputTerminal
        Returns:
        InputTerminal;
      • equals

        public boolean equals(java.lang.Object compare)
        Returns true if and only if the supplied connection is equivalent to the current Connection
        Overrides:
        equals in class java.lang.Object
        Parameters:
        compare - Connection for comparison
        Returns:
        boolean true if and only if the connections are equivalent
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object