この関数を使用して、現行のブローカー環境を照会します (例えば、 ブローカー名およびメッセージ・フロー名についての情報など)。 この情報は、タイプ CNI_BROKER_INFO_ST の構造に戻されます。
void cniGetBrokerInfo(
int* returnCode,
CciNode* nodeObject,
CNI_BROKER_INFO_ST* 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 user ID that broker uses to connect to the data source*/
CCI_STRING_ST applicationName; /*The label of the application that owns the message flow*/
CCI_STRING_ST libraryName; /*The label of the library that owns the message flow*/
} CNI_BROKER_INFO_ST;
なし。 エラーが発生した場合、returnCode パラメーターがエラーの理由を示します。
cniGetBrokerInfo(&rc, nodeObject, &broker_info_st);
ここで、nodeObject はタイプ CciNode* です