GenGlobals class

The GenGlobals class is a base class for a C++ connector. From this class, a connector developer must derive a connector globals class and implement the virtual methods for the connector. This derived class contains the code for the application-specific component of the connector.

Important:
All C++ connectors must extend this base class, which contains the following virtual methods: init(), getVersion(), getBOHandlerforBO(), pollForEvents(), and terminate(). In their derived class, developers must provide implementations for these virtual methods.

The header file for this class is GenGlobals.hpp. It resides in the following subdirectory of your product directory:

DevelopmentKits\cdk\generic_include
  

Table 105 summarizes the methods in the GenGlobals class.

Table 105.
Member methods of the GenGlobals class
Member method Description Page
GenGlobals() Creates an instance of the GenGlobals class. GenGlobals()
executeCollaboration() Send business object request to a collaboration. executeCollaboration()
generateAndLogMsg() Generates a message from a message file and sends it to the connector's log destination. generateAndLogMsg()
generateAndTraceMsg() Generates a trace message from a message file and sends it to the connector's log destination. generateAndTraceMsg()
generateMsg() Generates a message from a message file that you provide. generateMsg()
getBOHandlerforBO() Retrieves the handler for a business object. getBOHandlerforBO()
getCollabNames() Retrieves a list of collaboration names that are available to process business object requests. getCollabNames()
getConfigProp() Retrieves a property for the connector from the repository. getConfigProp()
getTheSubHandler() Retrieves a subscription handler to determine which collaborations subscribe to the business object definition for the incoming business object. getTheSubHandler()
getVersion() Retrieves the version of the application-specific component of the connector framework. getVersion()
init() Establishes a connection with the application. init()
isAgentCapableOfPolling() Determines whether this connector-agent process can perform polling. isAgentCapableOfPolling()
logMsg() Logs a message. logMsg()
pollForEvents() Polls an application for changes to business objects. pollForEvents()
terminate() Closes the connection with the application and frees allocated resources. terminate()
traceWrite() Writes a trace message. traceWrite()

Copyright IBM Corp. 1997, 2003