See information about the latest product version
Node and parser factory behavior
The node factory and the parser factory assume roles in declaring a node to the broker or defining a parser.
Each loadable implementation library (LIL) has one node factory, or one parser factory, or has both. A node factory can identify many nodes, and a parser factory can identify many parsers.
When the broker loads the LIL, it calls the following functions:
- bipGetMessageflowNodeFactory
After the operating system has loaded and initialized the LIL, the broker calls initialization function bipGetMessageflowNodeFactory. The bipGetMessageflowNodeFactory function calls the utility function cniCreateNodeFactory, which passes back a factory name (or group name) for all the nodes that your LIL supports.
- bipgetparserfactory
After the operating system has loaded and initialized the LIL, the broker calls initialization function bipgetparserfactory. The bipgetparserfactory function defines the name of the factory that the user-defined parser supports, and the classes of objects, or shared object, that the factory supports. The initialization function bipgetparserfactory calls the utility function cpiCreateParserFactory, which passes back a factory name (or group name) for all the parsers that your LIL supports.
Before the node factory is returned, the broker calls the following functions:
- cniCreateNodeFactory
This function creates a single instance of the node factory in the broker.
- cndDefineNodeClass
This function defines the name of a node class that a node factory supports, and identifies the nodes that the node factory can create.
Before the parser factory is returned, the broker calls the following functions:
- cpiCreateParserFactory
This function creates a single instance of the named parser factory in the message broker.
- cpiDefineParserClass
This function defines the name of a parser class that a parser factory supports, and identifies the parsers that the factory can create.