00001 00002 // 00003 // A JobControl Module to introduce time delay appropriate to the timestamp 00004 // of records stored in Mom relative to previous record set in Mom. 00005 // The purpose is to attempt to mimic the output conditions with which 00006 // the input records were produced for use in debugging the dispatcher. 00007 // 00009 00010 #ifndef DDSPACEMODULE_H 00011 #define DDSPACEMODULE_H 00012 00013 #include "TObject.h" 00014 #include "TStopwatch.h" 00015 00016 #include "JobControl/JobCModule.h" 00017 #include "Validity/VldTimeStamp.h" 00018 00019 class DDSPaceModule : public JobCModule, public TObject { 00020 00021 public: 00022 DDSPaceModule(); 00023 ~DDSPaceModule() {} 00024 00025 const Registry& DefaultConfig() const; 00026 void Config(const Registry& r); 00027 00028 JobCResult Ana(const MomNavigator *mom); // introduce time delay 00029 00030 00031 private: 00032 00033 // private data members 00034 VldTimeStamp fVldStartTime; // first record set time stamp 00035 TStopwatch fStopwatch; // keeps track of real time 00036 00037 ClassDef(DDSPaceModule,0) // DDSPaceModule 00038 }; 00039 00040 #endif // DDSPACEMODULE_H
1.3.9.1