holoscan::FragmentScheduler
holoscan::FragmentScheduler
The fragment scheduler class.
This class is responsible for scheduling the the set of fragments based on the available app workers.
Constructors
FragmentScheduler
Destructor
~FragmentScheduler
Methods
add_resource_requirement
Add resource requirement for a fragment (1)
Add resource requirement for a fragment (2)
Add resource requirement for a fragment.
Parameters
resource_requirement
The resource requirement for a fragment.
add_available_resource
Add app worker resource (1)
Add app worker resource (2)
Add app worker resource.
Parameters
available_resource
The available resource for an app worker.
schedule
Schedule the fragments.
Returns: holoscan::expected<std::unordered_map<std::string, std::string>, std::string> The mapping from fragment name to app worker id.