Resource Tuner
Loading...
Searching...
No Matches
ExtFeaturesRegistry Class Reference

ExtFeaturesRegistry. More...

#include <ExtFeaturesRegistry.h>

Public Member Functions

ExtFeatureInfo * getExtFeatureConfigById (uint32_t extFeatureId)
 Fetch a Feature Config with the given ID.
 
void initializeFeatures ()
 Used to initialize all the registered features.
 
void teardownFeatures ()
 Used to cleanup all the registered features.
 
ErrCode relayToFeature (uint32_t featureId, Signal *signal)
 Relay a request to a registered feature.
 

Detailed Description

ExtFeaturesRegistry.

Stores information Relating to all the Ext Features registered with resource-tuner. Note: This information is extracted from Config YAML files.

Definition at line 36 of file ExtFeaturesRegistry.h.

Member Function Documentation

◆ getExtFeatureConfigById()

ExtFeatureInfo * ExtFeaturesRegistry::getExtFeatureConfigById ( uint32_t  extFeatureId)

Fetch a Feature Config with the given ID.

Parameters
featureIdAn unsigned 32-bit feature identifier
Returns
ExtFeatureInfo*:
  • A Pointer to the registered ExtFeatureInfo object, if feature with the given ID exists.
  • nullptr: Otherwise

◆ initializeFeatures()

void ExtFeaturesRegistry::initializeFeatures ( )

Used to initialize all the registered features.

This routine will invoke the init callback associated with each of the registered features. This is done during server initialization.

◆ relayToFeature()

ErrCode ExtFeaturesRegistry::relayToFeature ( uint32_t  featureId,
Signal signal 
)

Relay a request to a registered feature.

Parameters
featureIdAn unsigned 32-bit feature identifier

◆ teardownFeatures()

void ExtFeaturesRegistry::teardownFeatures ( )

Used to cleanup all the registered features.

This routine will invoke the tear callback associated with each of the registered features. This is done during server teardown.


The documentation for this class was generated from the following file: