#include <SetDiagnosticSetting.h>
Public Member Functions | |
SetDiagnosticSetting (ServerActionConfig &serverActCfg, const AbstractServiceLocator *serviceLocator, const std::map< std::string, const AbstractServiceLocator * > serviceLocatorRelatedClasses) | |
Constructor. | |
virtual | ~SetDiagnosticSetting () |
Destructor. | |
void | execute (RequestEvent *event, AbstractDevice &device, const rdaData &filter, rdaData &data, IOType ioType, RequestType requestType) |
Modify diagnostic properties. | |
bool | needFilter () |
int64_t | getDataTimestamp (fesa::AbstractDevice &, fesa::MultiplexingContext &, const rdaData &) |
Private Member Functions | |
virtual void | performCommit (MultiplexingContext &context, AbstractDevice *device) |
virtual void | performRollback (MultiplexingContext &context, AbstractDevice *transactionDevice) |
Private Attributes | |
std::vector< std::string > | traceDevicesVector |
Vector of devices to be traced. Is used to reset 'isLoggable' flag. | |
bool | splitProcess_ |
Definition at line 16 of file SetDiagnosticSetting.h.
fesa::SetDiagnosticSetting::SetDiagnosticSetting | ( | ServerActionConfig & | serverActCfg, | |
const AbstractServiceLocator * | serviceLocator, | |||
const std::map< std::string, const AbstractServiceLocator * > | serviceLocatorRelatedClasses | |||
) |
Constructor.
serverActCfg | Contains values for configuration of the server action | |
serviceLocator | ||
serviceLocatorRelatedClasses |
Definition at line 36 of file SetDiagnosticSetting.cpp.
fesa::SetDiagnosticSetting::~SetDiagnosticSetting | ( | ) | [virtual] |
Destructor.
Definition at line 42 of file SetDiagnosticSetting.cpp.
void fesa::SetDiagnosticSetting::execute | ( | RequestEvent * | event, | |
AbstractDevice & | device, | |||
const rdaData & | filter, | |||
rdaData & | data, | |||
IOType | ioType, | |||
RequestType | requestType | |||
) | [virtual] |
Modify diagnostic properties.
event | Event that fired the action | |
device | Instance of the global device | |
filter | Filter of the action | |
data | Data from which information is extracted | |
ioType | IO type of the operation | |
requestType | Type of the request |
Implements fesa::AbstractServerAction.
Definition at line 53 of file SetDiagnosticSetting.cpp.
References fesa::DiagnosticUtils::DiagnosticMessage::action, fesa::GlobalDevice::bypassActions, fesa::GlobalDevice::customTopic, fesa::GlobalDevice::enableDiagMode, fesa::DiagnosticUtils::framework, fesa::GlobalDevice::fwkTopic, fesa::SettingFieldScalar< T >::get(), fesa::DiagnosticUtils::getActionProfilingStr, fesa::DiagnosticUtils::getActionTrackingStr, fesa::AbstractEquipment::getDiagnostics(), fesa::AbstractEquipment::getInstance(), fesa::AbstractServerAction::getName(), fesa::GlobalDevice::hostName, fesa::DiagnosticUtils::DiagnosticMessage::name, fesa::GlobalDevice::portNumber, fesa::DiagnosticUtils::rtActionProfilingStr, fesa::DiagnosticUtils::rtActionTrackingStr, fesa::DiagnosticUtils::server, fesa::SettingFieldString::set(), fesa::SettingFieldScalar< T >::set(), fesa::DiagnosticUtils::setActionProfilingStr, fesa::DiagnosticUtils::setActionTrackingStr, fesa::DiagnosticUtils::DiagnosticMessage::side, fesa::DiagnosticUtils::DiagnosticMessage::source, fesa::DiagnosticUtils::start, fesa::DiagnosticUtils::stop, fesa::GlobalDevice::traceDevices, and fesa::DiagnosticUtils::user.
int64_t fesa::SetDiagnosticSetting::getDataTimestamp | ( | fesa::AbstractDevice & | , | |
fesa::MultiplexingContext & | , | |||
const rdaData & | ||||
) | [inline] |
Definition at line 63 of file SetDiagnosticSetting.h.
bool fesa::SetDiagnosticSetting::needFilter | ( | ) | [virtual] |
Reimplemented from fesa::AbstractServerAction.
Definition at line 47 of file SetDiagnosticSetting.cpp.
void fesa::SetDiagnosticSetting::performCommit | ( | MultiplexingContext & | context, | |
AbstractDevice * | device | |||
) | [private, virtual] |
Implements fesa::AbstractServerAction.
Definition at line 204 of file SetDiagnosticSetting.cpp.
void fesa::SetDiagnosticSetting::performRollback | ( | MultiplexingContext & | context, | |
AbstractDevice * | transactionDevice | |||
) | [private, virtual] |
Implements fesa::AbstractServerAction.
Definition at line 208 of file SetDiagnosticSetting.cpp.
bool fesa::SetDiagnosticSetting::splitProcess_ [private] |
Definition at line 59 of file SetDiagnosticSetting.h.
Vector of devices to be traced. Is used to reset 'isLoggable' flag.
Definition at line 55 of file SetDiagnosticSetting.h.