#include <ThreadPriorityConfiguration.h>
Public Member Functions | |
int32_t | getPrioCMW () const |
int32_t | getPrioPersistence () const |
int32_t | getPrioNotificationConsumer () const |
int32_t | getPrioRTScheduler (const std::string &name) const |
int32_t | getPrioEventSource (const std::string &name) const |
int32_t | getPrioNotificationthread (const std::string &className, const std::string ¬ificationThreadKey) const |
bool | getMaximumPrio (int32_t &maxPrio) const |
This method gets the maximum priority, defined in an instantiation file. If no prio-attribute was found, it will return 'false'. | |
ThreadPriorityConfigurationFromFile (XMLParser &xmlParser, const ProcessConfiguration *processConfiguration) | |
~ThreadPriorityConfigurationFromFile () | |
Private Attributes | |
XMLParser & | xmlParser_ |
const ProcessConfiguration * | processConfiguration_ |
pointer to the configuration data object | |
bool | use_nice_priorities_ |
Definition at line 38 of file ThreadPriorityConfiguration.h.
fesa::ThreadPriorityConfigurationFromFile::ThreadPriorityConfigurationFromFile | ( | XMLParser & | xmlParser, | |
const ProcessConfiguration * | processConfiguration | |||
) |
Definition at line 28 of file ThreadPriorityConfiguration.cpp.
fesa::ThreadPriorityConfigurationFromFile::~ThreadPriorityConfigurationFromFile | ( | ) |
Definition at line 34 of file ThreadPriorityConfiguration.cpp.
bool fesa::ThreadPriorityConfigurationFromFile::getMaximumPrio | ( | int32_t & | maxPrio | ) | const [virtual] |
This method gets the maximum priority, defined in an instantiation file. If no prio-attribute was found, it will return 'false'.
FesaException |
Implements fesa::ThreadPriorityConfiguration.
Definition at line 218 of file ThreadPriorityConfiguration.cpp.
References fesa::XMLParser::extractElementsFromXPath(), fesa::priorityAttributeName, and xmlParser_.
int32_t fesa::ThreadPriorityConfigurationFromFile::getPrioCMW | ( | ) | const [virtual] |
Implements fesa::ThreadPriorityConfiguration.
Definition at line 38 of file ThreadPriorityConfiguration.cpp.
References fesa::DEFAULT_NICE_PRIO_RDA_SERVER_THREAD, fesa::DEFAULT_RT_PRIO_RDA_SERVER_THREAD, fesa::XMLParser::extractAttribute(), fesa::ProcessConfiguration::isDefined(), fesa::PropertyTag::NO_RT_SCHEDULING, fesa::priorityAttributeName, processConfiguration_, fesa::threadCmwXMLElementName, fesa::AttributeXML::value_, and xmlParser_.
int32_t fesa::ThreadPriorityConfigurationFromFile::getPrioEventSource | ( | const std::string & | name | ) | const [virtual] |
Implements fesa::ThreadPriorityConfiguration.
Definition at line 153 of file ThreadPriorityConfiguration.cpp.
References fesa::DEFAULT_NICE_PRIO_EVENT_SOURCE, fesa::DEFAULT_RT_PRIO_EVENT_SOURCE, fesa::XMLParser::extractAttribute(), fesa::ProcessConfiguration::isDefined(), fesa::PropertyTag::NO_RT_SCHEDULING, fesa::priorityAttributeName, processConfiguration_, fesa::threadEventSourceXMLElementName, fesa::AttributeXML::value_, and xmlParser_.
int32_t fesa::ThreadPriorityConfigurationFromFile::getPrioNotificationConsumer | ( | ) | const [virtual] |
Implements fesa::ThreadPriorityConfiguration.
Definition at line 96 of file ThreadPriorityConfiguration.cpp.
References fesa::DEFAULT_NICE_PRIO_CLIENT_NOTIFICATION_THREAD, fesa::DEFAULT_RT_PRIO_CLIENT_NOTIFICATION_THREAD, fesa::XMLParser::extractAttribute(), fesa::ProcessConfiguration::isDefined(), fesa::PropertyTag::NO_RT_SCHEDULING, fesa::priorityAttributeName, processConfiguration_, fesa::threadNotificationConsumerXMLElementName, fesa::AttributeXML::value_, and xmlParser_.
int32_t fesa::ThreadPriorityConfigurationFromFile::getPrioNotificationthread | ( | const std::string & | className, | |
const std::string & | notificationThreadKey | |||
) | const [virtual] |
Implements fesa::ThreadPriorityConfiguration.
Definition at line 182 of file ThreadPriorityConfiguration.cpp.
References fesa::DEFAULT_NICE_PRIO_CLIENT_NOTIFICATION_THREAD, fesa::DEFAULT_RT_PRIO_CLIENT_NOTIFICATION_THREAD, fesa::ProcessConfiguration::isDefined(), fesa::PropertyTag::NO_RT_SCHEDULING, processConfiguration_, fesa::threadClientNotificationXMLElementName, and fesa::AttributeXML::value_.
int32_t fesa::ThreadPriorityConfigurationFromFile::getPrioPersistence | ( | ) | const [virtual] |
Implements fesa::ThreadPriorityConfiguration.
Definition at line 67 of file ThreadPriorityConfiguration.cpp.
References fesa::DEFAULT_NICE_PRIO_PERSISTANCE_THREAD, fesa::DEFAULT_RT_PRIO_PERSISTANCE_THREAD, fesa::XMLParser::extractAttribute(), fesa::ProcessConfiguration::isDefined(), fesa::PropertyTag::NO_RT_SCHEDULING, fesa::priorityAttributeName, processConfiguration_, fesa::threadPersistenceXMLElementName, fesa::AttributeXML::value_, and xmlParser_.
int32_t fesa::ThreadPriorityConfigurationFromFile::getPrioRTScheduler | ( | const std::string & | name | ) | const [virtual] |
Implements fesa::ThreadPriorityConfiguration.
Definition at line 124 of file ThreadPriorityConfiguration.cpp.
References fesa::DEFAULT_NICE_PRIO_CONCURRENCY_LAYER, fesa::DEFAULT_RT_PRIO_CONCURRENCY_LAYER, fesa::XMLParser::extractAttribute(), fesa::ProcessConfiguration::isDefined(), fesa::PropertyTag::NO_RT_SCHEDULING, fesa::priorityAttributeName, processConfiguration_, fesa::threadRTSchedulerXMLElementName, fesa::AttributeXML::value_, and xmlParser_.
const ProcessConfiguration* fesa::ThreadPriorityConfigurationFromFile::processConfiguration_ [private] |
pointer to the configuration data object
Definition at line 65 of file ThreadPriorityConfiguration.h.
Referenced by getPrioCMW(), getPrioEventSource(), getPrioNotificationConsumer(), getPrioNotificationthread(), getPrioPersistence(), and getPrioRTScheduler().
Definition at line 68 of file ThreadPriorityConfiguration.h.
Definition at line 60 of file ThreadPriorityConfiguration.h.
Referenced by getMaximumPrio(), getPrioCMW(), getPrioEventSource(), getPrioNotificationConsumer(), getPrioPersistence(), and getPrioRTScheduler().