SetDiagnosticSetting.h
Go to the documentation of this file.00001
00002
00003 #ifndef _SET_DIAGNOSTIC_SETTING_H_
00004 #define _SET_DIAGNOSTIC_SETTING_H_
00005
00006 #include <fesa-core/Server/AbstractServerAction.h>
00007
00008 #include <vector>
00009 #include <string>
00010 #include <map>
00011
00012
00013 namespace fesa
00014 {
00015
00016 class SetDiagnosticSetting : public AbstractServerAction
00017 {
00018 public:
00025 SetDiagnosticSetting(ServerActionConfig& serverActCfg, const AbstractServiceLocator* serviceLocator, const std::map<std::string, const AbstractServiceLocator*> serviceLocatorRelatedClasses);
00029 virtual ~SetDiagnosticSetting();
00039 void execute(RequestEvent* event, AbstractDevice& device, const rdaData& filter,
00040 rdaData& data, IOType ioType, RequestType requestType);
00044 bool needFilter();
00048 int64_t getDataTimestamp(fesa::AbstractDevice&, fesa::MultiplexingContext&, const rdaData&);
00049
00050 private:
00055 std::vector<std::string> traceDevicesVector;
00056
00057 virtual void performCommit(MultiplexingContext& context, AbstractDevice* device);
00058 virtual void performRollback(MultiplexingContext& context, AbstractDevice* transactionDevice);
00059 bool splitProcess_;
00060 };
00061
00062 inline int64_t
00063 SetDiagnosticSetting::getDataTimestamp(fesa::AbstractDevice&, fesa::MultiplexingContext&, const rdaData&)
00064 {
00065 return 0;
00066 }
00067
00068 }
00069
00070 #endif // _SET_DIAGNOSTIC_SETTING_H_