com.ibm.broker.config.appdev

Class FlowRendererCMF

  • java.lang.Object
    • com.ibm.broker.config.appdev.FlowRendererCMF


  • public class FlowRendererCMF
    extends java.lang.Object

    The FlowRendererCMF class provides utility methods to allow the writing of MessageFlow instances in the *.cmf and broker.xml file format.

     Change Activity:
     -------- ----------- -------------   ------------------------------------
     Reason:  Date:       Originator:     Comments:
     -------- ----------- -------------   ------------------------------------
     xxxxx.x  2011-07-06  dstorey         v8.0.0.0 Release
     
    • Field Summary

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

      Constructors 
      Constructor and Description
      FlowRendererCMF() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String[] toBARComponents(MessageFlow messageFlow)
      Used to return the components of a compiled message flow in a string array form
      static void write(MessageFlow messageFlow, java.lang.String directoryName)
      Write the provided MessageFlow instance to the *.cmf and broker.xml format in the directory provided
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FlowRendererCMF

        public FlowRendererCMF()
    • Method Detail

      • toBARComponents

        public static java.lang.String[] toBARComponents(MessageFlow messageFlow)
                                                  throws java.io.IOException,
                                                         com.ibm.broker.MessageBrokerAPIException
        Used to return the components of a compiled message flow in a string array form
        Parameters:
        messageFlow - MessageFlow; provided MessageFlow instance
        Returns:
        Object[String brokerXML, String flowCMF]; 2 strings containing the broker deployment descriptor and the compiled message flow
        Throws:
        java.io.IOException
        com.ibm.broker.MessageBrokerAPIException
      • write

        public static void write(MessageFlow messageFlow,
                                 java.lang.String directoryName)
                          throws java.io.IOException,
                                 com.ibm.broker.MessageBrokerAPIException
        Write the provided MessageFlow instance to the *.cmf and broker.xml format in the directory provided
        Parameters:
        messageFlow - MessageFlow; provided MessageFlow instance
        directoryName - String; the directoryLocation to output the compiled flow file and broker.xml. Empty string is the current working directory. The filename is the concatination of the Schema Location, the messageflow name and cmf extension
        Throws:
        java.io.IOException
        com.ibm.broker.MessageBrokerAPIException