Create one instance per equipment. More...
#include <GetDiagnosticSetting.h>
Public Member Functions | |
GetDiagnosticSetting (ServerActionConfig &serverActCfg, const AbstractServiceLocator *serviceLocator, const std::map< std::string, const AbstractServiceLocator * > serviceLocatorRelatedClasses) | |
Constructor. | |
virtual | ~GetDiagnosticSetting () |
destructor | |
void | execute (RequestEvent *event, AbstractDevice &device, const rdaData &filter, rdaData &data, IOType ioType, RequestType requestType) |
Insert information about the diagnosis of the equipment in the RDA data. | |
bool | needFilter () |
int64_t | getDataTimestamp (fesa::AbstractDevice &, fesa::MultiplexingContext &, const rdaData &) |
Private Member Functions | |
virtual void | performCommit (MultiplexingContext &context, AbstractDevice *transactionDevice) |
virtual void | performRollback (MultiplexingContext &context, AbstractDevice *transactionDevice) |
Create one instance per equipment.
Definition at line 16 of file GetDiagnosticSetting.h.
fesa::GetDiagnosticSetting::GetDiagnosticSetting | ( | 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 25 of file GetDiagnosticSetting.cpp.
fesa::GetDiagnosticSetting::~GetDiagnosticSetting | ( | ) | [virtual] |
destructor
Definition at line 31 of file GetDiagnosticSetting.cpp.
void fesa::GetDiagnosticSetting::execute | ( | RequestEvent * | event, | |
AbstractDevice & | device, | |||
const rdaData & | filter, | |||
rdaData & | data, | |||
IOType | ioType, | |||
RequestType | requestType | |||
) | [virtual] |
Insert information about the diagnosis of the equipment in the RDA data.
event | Event that fired the action | |
device | Instance of the global device | |
filter | Filter of the action | |
data | Data into which the information will be stored | |
ioType | IO type of the operation | |
requestType | type of the request |
Implements fesa::AbstractServerAction.
Definition at line 44 of file GetDiagnosticSetting.cpp.
References fesa::DiagnosticUtils::DiagnosticMessage::action, fesa::GlobalDevice::bypassActions, fesa::GlobalDevice::customTopic, fesa::GlobalDevice::enableDiagMode, fesa::DiagnosticUtils::framework, fesa::GlobalDevice::fwkTopic, fesa::SettingFieldString::get(), fesa::SettingFieldScalar< T >::get(), fesa::AbstractEquipment::getDiagnostics(), fesa::AbstractEquipment::getInstance(), fesa::AbstractServerAction::getName(), fesa::GlobalDevice::hostName, fesa::DiagnosticUtils::DiagnosticMessage::name, fesa::GlobalDevice::portNumber, fesa::DiagnosticUtils::server, fesa::DiagnosticUtils::DiagnosticMessage::side, fesa::DiagnosticUtils::DiagnosticMessage::source, fesa::DiagnosticUtils::start, fesa::DiagnosticUtils::stop, and fesa::GlobalDevice::traceDevices.
int64_t fesa::GetDiagnosticSetting::getDataTimestamp | ( | fesa::AbstractDevice & | , | |
fesa::MultiplexingContext & | , | |||
const rdaData & | ||||
) | [inline] |
Definition at line 59 of file GetDiagnosticSetting.h.
bool fesa::GetDiagnosticSetting::needFilter | ( | ) | [virtual] |
Reimplemented from fesa::AbstractServerAction.
Definition at line 37 of file GetDiagnosticSetting.cpp.
void fesa::GetDiagnosticSetting::performCommit | ( | MultiplexingContext & | context, | |
AbstractDevice * | transactionDevice | |||
) | [private, virtual] |
void fesa::GetDiagnosticSetting::performRollback | ( | MultiplexingContext & | context, | |
AbstractDevice * | transactionDevice | |||
) | [private, virtual] |
Implements fesa::AbstractServerAction.
Definition at line 79 of file GetDiagnosticSetting.cpp.