Problem

How is possible to configure protocol, host, port and number of flows in CDB for Bulk Data?

Solution

tn the CDB is possible to specify:

  • number of flows inside the stream
  • protocol
  • host
  • port number

for the Sender and the Receiver (as well as for the Distributer).


Sender

For the Sender, the directory �/test/CDB/alma/BulkDataSender contains the file BulkDataSender.xml:


<?xml version="1.0" encoding="UTF-8"?>
<!--
- Example Configuration Database Entry for a BulkDataSender
-
- Author: oat
-
- History:
- 2004-11-23 oat Created
-->
<BulkDataSender xmlns="urn:schemas-cosylab-com:BulkDataSender:1.0"
                xmlns:baci="urn:schemas-cosylab-com:BACI:1.0"
                xmlns:cdb="urn:schemas-cosylab-com:CDB:1.0"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                sender_protocols="TCP=${HOST}:14000/TCP/TCP=${HOST}:14001/TCP"
/>

The syntax of the sender_protocols attribute (following the A/V OMG specifications) is:
protocol=${HOST}:port/protocol=${HOST}:port/�/�
Protocol can be either TCP or UDP, and the different flows are separated by �/�. In this example there are 4 flows inside the stream.
If only the protocol is specified, a default (random) port on the localhost is assigned. Is it also possible to leave the string empty. In this case the protocol is TCP by default.


Receiver

The analogue attribute for the Receiver is recv_protocols (e. g. see �/test/CDB/alma/BulkDataReceiver/BulkDataReceiver.xml).

-- BogdanJeram - 24 Aug 2007