-
Notifications
You must be signed in to change notification settings - Fork 775
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add XML configuration for FlowControllerDescriptor and remove Through…
…putController (#4837) * Refs #21054: Remove ThroughputController* references from project src/cpp files (except xmlparser) Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> * Refs #21054: Refactor flow_controller names to be std::string Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> * Refs #21054: Add flow_controller_descriptor_list to XSD Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> * Refs #21054: Update XML related source files to the new flow_controller_descriptor_list Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> * Refs #21054: Update unittests Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> * Refs #21054: Update BlackBox tests Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> * Refs #21054: Update FlowControllerExample Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> * Refs #21054: Linter Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> * Refs #21054: Apply partial rev suggestions Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> * Refs #21054: Remove ThroughputControllerDescriptor.cpp from test source Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> * Refs #21054: Set flow_controller_name as optional in .xsd Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> * Refs #21054: fix windows unittests Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> * Refs #21054: Minor corrections Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> * Refs #21054: Update versions.md Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> * Refs #21054: Apply rev suggestions Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> * Refs #21054: Add scheduling policy and thread setting tags to existing XML flow controller snippets Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> * Refs #21054: Add missing getXMLFlowControllerDescriptorList() unittesting Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> * Refs #21054: Linter Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> * Refs #21054: Add checks for repeated tags and test Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com> --------- Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
- Loading branch information
Showing
62 changed files
with
561 additions
and
466 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
To launch this example open two consoles: | ||
|
||
1) "$ ./DDSFlowControlExample subscriber" (or "DDSFlowControlExample.exe subscriber" in Windows). | ||
1) "$ ./DDSFlowControlExample subscriber" (or "DDSFlowControlExample.exe subscriber" in Windows). | ||
|
||
2..*) "$ ./DDSFlowControlExample publisher" (or "DDSFlowControlExample.exe publisher" in Windows). | ||
|
||
This example illustrates the flow control feature. | ||
This example illustrates the flow control feature. | ||
|
||
================ | ||
= Flow Control = | ||
================ | ||
|
||
In Fast DDS, Flow Control is implemented through objects called Flow Controllers. In | ||
particular, we will be looking at the simplest kind, the Throughput Controller. | ||
In Fast DDS, Flow Control is implemented through objects called Flow Controllers. In | ||
particular, we will be looking at the simplest kind, the Flow Controller. | ||
|
||
A throughput controller is univocally defined by a Throughput Controller Descriptor, | ||
A flow controller is univocally defined by a Flow Controller Descriptor, | ||
which is a simple struct that includes two values: | ||
-> A size in bytes. | ||
-> A period in milliseconds. | ||
|
||
Once instantiated from this descriptor, a throughput controller will make sure there is a | ||
limit on the data it processes, so that no more than the specified size gets | ||
Once instantiated from this descriptor, a flow controller will make sure there is a | ||
limit on the data it processes, so that no more than the specified size gets | ||
through it in the specified time. In other words, it limits data throughput. | ||
|
||
Throughput filters can be placed at different points in the system. In this example, you | ||
can see a controller being placed on a particular Writer. Controllers allocated in this | ||
way display a hierarchical behaviour, so in order for data to be sent, it must clear | ||
Flow filters can be placed at different points in the system. In this example, you | ||
can see a controller being placed on a particular Writer. Controllers allocated in this | ||
way display a hierarchical behaviour, so in order for data to be sent, it must clear | ||
both the Participant filter and the Writer filter, if available. | ||
|
||
Looking at FlowControlExamplePublisher::init(), you can see the steps involved in | ||
adding a size filter to the publisher parameters. | ||
Looking at FlowControlExamplePublisher::init(), you can see the steps involved in | ||
adding a size filter to the publisher parameters. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 0 additions & 56 deletions
56
include/fastdds/rtps/flowcontrol/ThroughputControllerDescriptor.h
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.