Skip to content

Commit

Permalink
Complete flow_controller_descriptor references in xml sections (#824) (
Browse files Browse the repository at this point in the history
…#827)

* Complete flow_controller_descriptor references in xml sections (#824)

* Refs #21231: Add missing <flow_controller_descriptor_list> to domainparticipant xml

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #21231: Add missing <flow_controller_name> to datawriter xml qos

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #21131: Apply Jesus rev

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #21131: Apply Edu suggestion

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

---------

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
(cherry picked from commit 6e7f076)
Signed-off-by: eduponz <eduardoponz@eprosima.com>

* Refs #21231: Fix XML snippet range

Signed-off-by: eduponz <eduardoponz@eprosima.com>

---------

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
Signed-off-by: eduponz <eduardoponz@eprosima.com>
Co-authored-by: Mario Domínguez López <116071334+Mario-DL@users.noreply.github.com>
Co-authored-by: eduponz <eduardoponz@eprosima.com>
  • Loading branch information
3 people authored Jul 3, 2024
1 parent 4c9f454 commit c3c595b
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 10 deletions.
15 changes: 15 additions & 0 deletions code/XMLTester.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1504,6 +1504,21 @@
<affinity>0</affinity>
<stack_size>-1</stack_size>
</security_log_thread>

<flow_controller_descriptor_list>
<flow_controller_descriptor>
<name>example_flow_controller</name>
<scheduler>FIFO</scheduler>
<max_bytes_per_period>4096</max_bytes_per_period>
<period_ms>500</period_ms>
<sender_thread>
<scheduling_policy>-1</scheduling_policy>
<priority>0</priority>
<affinity>0</affinity>
<stack_size>-1</stack_size>
</sender_thread>
</flow_controller_descriptor>
</flow_controller_descriptor_list>
</rtps>
</participant>
<!--
Expand Down
16 changes: 16 additions & 0 deletions code/XMLTesterExample.xml
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,21 @@
<affinity>0</affinity>
<stack_size>-1</stack_size>
</security_log_thread>

<flow_controller_descriptor_list>
<flow_controller_descriptor>
<name>example_flow_controller</name>
<scheduler>FIFO</scheduler>
<max_bytes_per_period>4096</max_bytes_per_period>
<period_ms>500</period_ms>
<sender_thread>
<scheduling_policy>-1</scheduling_policy>
<priority>0</priority>
<affinity>0</affinity>
<stack_size>-1</stack_size>
</sender_thread>
</flow_controller_descriptor>
</flow_controller_descriptor_list>
</rtps>
</participant>

Expand Down Expand Up @@ -568,6 +583,7 @@
</partition>
<publishMode>
<kind>ASYNCHRONOUS</kind>
<flow_controller_name>example_flow_controller</flow_controller_name>
</publishMode>
<reliability>
<kind>BEST_EFFORT</kind>
Expand Down
4 changes: 2 additions & 2 deletions docs/fastdds/dds_layer/core/policy/eprosimaExtensions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ It is a vector of shared pointers to |FlowControllerDescriptor-api|, which has t
- Type
- Default Value
* - |FlowControllerDescriptor::name-api|
- ``const char *``
- ``string``
-
* - |FlowControllerDescriptor::scheduler-api|
- |FlowControllerSchedulerPolicy-api|
Expand Down Expand Up @@ -529,7 +529,7 @@ List of QoS Policy data members:
- :ref:`publishmodeqospolicykind`
- |SYNCHRONOUS_PUBLISH_MODE-api|
* - |PublishModeQosPolicy::flow_ctrl_name-api|
- ``const char *``
- ``string``
- |FASTDDS_FLOW_CONTROLLER_DEFAULT-api|

.. note::
Expand Down
48 changes: 41 additions & 7 deletions docs/fastdds/xml_configuration/common.rst
Original file line number Diff line number Diff line change
Expand Up @@ -718,13 +718,15 @@ Partition
PublishMode
"""""""""""

+-----------------------+---------------------------------------+------------------+------------------+
| Name | Description | Values | Default |
+=======================+=======================================+==================+==================+
| ``<kind>`` | See :ref:`publishmodeqospolicy`. | ``ASYNCHRONOUS`` | ``ASYNCHRONOUS`` |
| | +------------------+ |
| | | ``SYNCHRONOUS`` | |
+-----------------------+---------------------------------------+------------------+------------------+
+--------------------------+---------------------------------------+------------------+------------------+
| Name | Description | Values | Default |
+==========================+=======================================+==================+==================+
| ``<kind>`` | See :ref:`publishmodeqospolicy`. | ``ASYNCHRONOUS`` | ``ASYNCHRONOUS`` |
| | +------------------+ |
| | | ``SYNCHRONOUS`` | |
+--------------------------+---------------------------------------+------------------+------------------+
|``<flow_controller_name>``| :ref:`flowcontrollersqos` name. | ``<string>`` | Empty |
+--------------------------+---------------------------------------+------------------+------------------+

.. important::

Expand Down Expand Up @@ -846,3 +848,35 @@ and to :ref:`realtime-allocations` for detailed information on how to tune alloc
- Number of new elements that will be allocated when more space is |br| necessary.
- ``uint32_t``
- 1

.. _flowcontrollers_xml:

Flow Controller Descriptors
^^^^^^^^^^^^^^^^^^^^^^^^^^^

This ``<flow_controller_descriptor_list>`` element configures the list of flow controllers of a participant,
so they can later be used on its DataWriters.
Please refer to :ref:`flowcontrollersqos` for a detailed documentation.

.. list-table::
:header-rows: 1
:align: left

* - Data Member Name
- Type
- Default Value
* - ``<name>``
- ``string``
- Empty
* - ``<scheduler>``
- |FlowControllerSchedulerPolicy-api|
- |FIFO_SCHED_POLICY-api|
* - ``<max_bytes_per_period>``
- ``int32_t``
- 0 (i.e. infinite)
* - ``<period_ms>``
- ``uint64_t``
- 100
* - ``<sender_thread>``
- :ref:`ThreadSettingsType`
-
7 changes: 6 additions & 1 deletion docs/fastdds/xml_configuration/domainparticipant.rst
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,19 @@ These elements allow the user to define the DomainParticipant configuration.
- |ThreadSettings| for the security log thread.
- |ThreadSettings|
-
* - ``<flow_controller_descriptor_list>``
- Defined flow controller descriptors to be used by the |br|
DomainParticipant. See :ref:`flowcontrollers_xml`.
- |FlowControllersQos|
-

**Example**

.. literalinclude:: /../code/XMLTester.xml
:language: xml
:start-after: <!-->XML-PARTICIPANT<-->
:end-before: <!--><-->
:lines: 2-4, 6-128, 130-131
:lines: 2-4, 6-143, 145-146

.. note::

Expand Down

0 comments on commit c3c595b

Please sign in to comment.