CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DiskWriterResources.h
Go to the documentation of this file.
1 // $Id: DiskWriterResources.h,v 1.9 2011/03/07 15:31:31 mommsen Exp $
3 
4 
5 #ifndef EventFilter_StorageManager_DiskWriterResources_h
6 #define EventFilter_StorageManager_DiskWriterResources_h
7 
11 
12 #include "boost/date_time/posix_time/posix_time_types.hpp"
13 #include "boost/thread/condition.hpp"
14 #include "boost/thread/mutex.hpp"
15 
16 #include <deque>
17 #include <stdint.h>
18 
19 
20 namespace stor
21 {
22 
33  {
34  public:
35 
40 
44  virtual ~DiskWriterResources() {}
45 
53  (
54  EvtStrConfigListPtr const,
55  ErrStrConfigListPtr const,
56  DiskWritingParams const&,
57  unsigned int const& runNumber,
58  boost::posix_time::time_duration const& timeoutValue
59  );
60 
66 
75  (
76  bool& doConfig,
79  DiskWritingParams& dwParams,
80  unsigned int& runNumber,
81  boost::posix_time::time_duration& timeoutValue
82  );
83 
87  virtual void waitForStreamChange();
88 
92  virtual bool streamChangeOngoing();
93 
97  void streamChangeDone();
98 
102  void setBusy(bool isBusyFlag);
103 
107  bool isBusy();
108 
109  private:
110 
115 
119  unsigned int requestedRunNumber_;
120  boost::posix_time::time_duration requestedTimeout_;
121 
123  boost::condition streamChangeCondition_;
124 
126  };
127 
128  typedef boost::shared_ptr<DiskWriterResources> DiskWriterResourcesPtr;
129 
130 } // namespace stor
131 
132 #endif // EventFilter_StorageManager_DiskWriterResources_h
133 
boost::posix_time::time_duration requestedTimeout_
boost::shared_ptr< ErrStrConfigList > ErrStrConfigListPtr
static boost::mutex mutex
Definition: LHEProxy.cc:11
boost::condition streamChangeCondition_
boost::shared_ptr< EvtStrConfigList > EvtStrConfigListPtr
void setBusy(bool isBusyFlag)
EvtStrConfigListPtr requestedEventStreamConfig_
DiskWritingParams requestedDiskWritingParams_
boost::shared_ptr< DiskWriterResources > DiskWriterResourcesPtr
void requestStreamConfiguration(EvtStrConfigListPtr const, ErrStrConfigListPtr const, DiskWritingParams const &, unsigned int const &runNumber, boost::posix_time::time_duration const &timeoutValue)
bool streamChangeRequested(bool &doConfig, EvtStrConfigListPtr &, ErrStrConfigListPtr &, DiskWritingParams &dwParams, unsigned int &runNumber, boost::posix_time::time_duration &timeoutValue)
ErrStrConfigListPtr requestedErrorStreamConfig_