22 REQ_RESOURCE_RETUNING,
23 REQ_RESOURCE_UNTUNING,
75 std::string mPropName;
81typedef ErrCode (*EventCallback)(
void*);
82typedef int8_t (*ServerOnlineCheckCallback)();
83typedef void (*ResourceTunerMessageReceivedCallback)(int32_t, MsgForwardInfo*);
85#define HIGH_TRANSFER_PRIORITY -1
86#define SERVER_CLEANUP_TRIGGER_PRIORITY -2
89#define COMMON_RESOURCE "Common-Resource"
90#define CUSTOM_RESOURCE "Custom-Resource"
91#define COMMON_PROPERTIES "Common-Properties"
92#define CUSTOM_PROPERTIES "Custom-Properties"
93#define CUSTOM_TARGET "Custom-Target"
94#define COMMON_INIT "Common-Init"
95#define CUSTOM_INIT "Custom-Init"
96#define COMMON_SIGNAL "Common-Signal"
97#define CUSTOM_SIGNAL "Custom-Signal"
98#define CUSTOM_EXT_FEATURE "Ext-Features"
101#define MAX_CONCURRENT_REQUESTS "resource_tuner.maximum.concurrent.requests"
102#define MAX_RESOURCES_PER_REQUEST "resource_tuner.maximum.resources.per.request"
103#define PULSE_MONITOR_DURATION "resource_tuner.pulse.duration"
104#define GARBAGE_COLLECTOR_DURATION "resource_tuner.garbage_collection.duration"
105#define GARBAGE_COLLECTOR_BATCH_SIZE "resource_tuner.garbage_collection.batch_size"
106#define RATE_LIMITER_DELTA "resource_tuner.rate_limiter.delta"
107#define RATE_LIMITER_PENALTY_FACTOR "resource_tuner.penalty.factor"
108#define RATE_LIMITER_REWARD_FACTOR "resource_tuner.reward.factor"
109#define LOGGER_LOGGING_LEVEL "resource_tuner.logging.level"
110#define LOGGER_LOGGING_LEVEL_TYPE "resource_tuner.logging.level.exact"
111#define LOGGER_LOGGING_OUTPUT_REDIRECT "resource_tuner.logging.redirect_to"
ErrCode
Custom Error Codes used by Resource Tuner APIs and Internal Functions.
PriorityLevel
Resource Tuner Priority Levels.
Permissions
Certain resources can be accessed only by system clients and some which have no such restrictions and...
@ NUMBER_PERMISSIONS
Total number of permissions currently supported.
@ PERMISSION_THIRD_PARTY
Third party clients. Default value.
@ PERMISSION_SYSTEM
Special permission level for system clients.
Policy
Different Resource Policies supported by Resource Tuner.
@ HIGHER_BETTER
This policy first applies the request writing the highest value to the node.
@ LAZY_APPLY
The requests are applied in a first-in-first-out manner.
@ INSTANT_APPLY
This policy is for resources where the latest request needs to be honored.
@ LOWER_BETTER
Self-explanatory. Works exactly opposite of the higher is better policy.
RequestType
Enumeration for different types of Resource-Tuner Requests.