Dynamic Topics
Dynamic topics allow pxGrid clients connected to the ISE pxGrid node to publish, subscribe, and take action on information topics. A dynamic topic consists of the following:
Topic Setup
The topic, query items, and action items are defined using
propose_capabiility.sh.Publishing Topic
The publisher is defined using
generic_client -c publisher.propertieswhere publisher properties is a config file that describes the topic information, such as topic name and publisher client mode.Subscribing to the Topic
The subscriber is defined using
generic_client -c subscriber.propertieswhere subscriber properties is a config file that describe the topic information, such as topic name, subscriber client mode and query and or action name sets and other items. The read-only query name sets provide the subscriber with specific access topic information.The action items are for subscribers who want to issue queries on the topic without subscribing to the information topic.
For this example, the published topic or capability will be Auction and auction service. The sdk-01-pub pxGrid client will publish the Auction topic. The sdk-01-sub pxGrid client will subscribe to the topic and allow query on get inventory services and get current bids. Another pxGrid client sdk-01-act will not nor subscribe to the topic no receive any notifications. However, this client will only be able to bid on items or take action.