cniGetBrokerInfo

現行のブローカー環境を照会します (例えば、 ブローカー名およびメッセージ・フロー名についての情報など)。 この情報は、タイプ CNI_BROKER_INFO_ST の構造に戻されます。

構文

void cniGetBrokerInfo(
  int*                returnCode,
  CciNode*            nodeObject,
  CNI_BROKER_INFO_ST* broker_info_st);

パラメーター

returnCode
関数からの戻りコード (出力)。
考えられる戻りコードは以下のとおりです。
  • CCI_SUCCESS
  • CCI_EXCEPTION
  • CCI_INV_NODE_OBJECT
nodeObject
ブローカー環境情報が要求されているメッセージ・フロー処理ノード (入力)。
broker_info_st
入力宛先を表すメッセージを戻すために使用される CNI_BROKER_INFO_ST 構造のアドレス (入力)。
typedef struct broker_info_st {
int	versionId;			/*Structure version identification*/
CCI_STRING_ST brokerName;		/*The label of the broker*/
CCI_STRING_ST executionGroupName;	/*The label of the current execution group*/
CCI_STRING_ST messageFlowName;		/*The label of the current message flow*/
CCI_STRING_ST queueManagerName;		/*The name of the MQ Queue Manager for the broker*/
int	commitCount;			/*Commit count value*/
int	commitInterval;			/*Commit interval value*/
int	coordinatedTransaction;		/*Flag: coordinatedTransaction: 0=no, 1=yes*/
CCI_STRING_ST dataSourceUserId;		/*The userid broker connects to datasource as*/
} CNI_BROKER_INFO_ST;

戻り値

なし。 エラーが発生した場合、returnCode パラメーターがエラーの理由を示します。

  cniGetBrokerInfo(&rc, nodeObject, &broker_info_st);
ここで、nodeObject はタイプ CciNode* です
特記事項 | 商標 | ダウンロード | ライブラリー | サポート | フィードバック

Copyright IBM Corporation 1999, 2009Copyright IBM Corporation 1999, 2009.
最終更新 : 2009-02-20 12:44:34

as07560_