hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DRCECleanupTask.hpp
Go to the documentation of this file.
1 
14 #ifndef DRCE_CLEANUP_TASK_HPP
15 #define DRCE_CLEANUP_TASK_HPP
16 
17 #include <Poco/Task.h>
18 
19 #include "DRCENodeOptions.hpp"
20 #include "DRCEAsyncTasksQueue.hpp"
21 #include "CustomMessage.hpp"
22 
23 namespace HCE
24 {
25 
26 namespace drce
27 {
28 //-----------------------------------------------------------------------------
29 class DRCECleanupTask : public Poco::Task
30 {
31 public:
32  DRCECleanupTask(unsigned int taskId_,
33  const DRCENodeOptions& nodeOptions_,
34  CustomMessage& message_,
35  DRCEAsyncTasksQueue& asyncTasksQueue_,
36  bool needCleanup_=false);
37 
38  void runTask(void);
39 
40 private:
41  unsigned int taskId;
42  DRCENodeOptions nodeOptions;
43  CustomMessage& message;
44  DRCEAsyncTasksQueue& asyncTasksQueue;
45  bool needCleanup;
46 
47  typedef Poco::Task inherited;
48 };
49 //-----------------------------------------------------------------------------
50 //-----------------------------------------------------------------------------
51 } // end namespace drce
52 } // end namespace HCE
53 
54 #endif // DRCE_CLEANUP_TASK_HPP