TIBCO Adapter SDK C++ Reference
MHawkMethod::MHawkMethod
MHawkMethod
Constructor for MHawkMethod.

Information about the method (including its name) must be available in the adapter instance description object.

Remarks
For each method an application wants to create, it has to create an MHawkMethod instance and implement the method processMethodInvocation().

It is the application’s responsibility to free the MHawkMethod instance. However, the application must wait until after the TIBCO Hawk session terminates to free the instance.

Parameters
Parameters Description
const MString& sMethodName Name of the method.
MHawkMicroAgent& refHawkMicroAgent The TIBCO Hawk microagent to which this method will belong. The microagent determines, among other things, where the method will appear in the TIBCO Hawk display. The two microagents introduced by the SDK are called COM.TIBCO.ADAPTER and COM.TIBCO.ADAPTER.appname, where appname is the name of the application. For additional microagent names, see the TIBCO Hawk documentation.
Exceptions
M_ERROR_USAGE_UNSATISFIED_PRECONDITION
Declaration
MHawkMethod(const MString& sMethodName, MHawkMicroAgent& refHawkMicroAgent) throw(MException);
Links
Copyright (c) 2010 TIBCO Software Inc. All rights reserved.