WRENCH  1.10
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
StandardJobExecutorMessage.h
1 
11 #ifndef WRENCH_MULTINODEMULTICORESTANDARDJOBEXECUTORMESSAGE_H
12 #define WRENCH_MULTINODEMULTICORESTANDARDJOBEXECUTORMESSAGE_H
13 
14 #include <vector>
15 
16 #include "wrench/services/compute/workunit_executor/WorkunitExecutor.h"
17 #include "wrench/services/compute/ComputeServiceMessage.h"
18 
19 namespace wrench {
20 
21  class WorkflowTask;
22 
23  class StandardJobExecutor;
24 
25  class WorkunitMultiCoreExecutor;
26 
27  /***********************/
29  /***********************/
30 
34  class StandardJobExecutorMessage : public SimulationMessage {
35  protected:
36  StandardJobExecutorMessage(std::string name, double payload);
37  };
38 
42  class WorkunitExecutorDoneMessage : public StandardJobExecutorMessage {
43  public:
44  WorkunitExecutorDoneMessage(
45  std::shared_ptr<WorkunitExecutor> workunit_executor,
46  std::shared_ptr<Workunit> workunit,
47  double payload);
48 
50  std::shared_ptr<WorkunitExecutor> workunit_executor;
52  std::shared_ptr<Workunit> workunit;
53  };
54 
58  class WorkunitExecutorFailedMessage : public StandardJobExecutorMessage {
59  public:
60  WorkunitExecutorFailedMessage(
61  std::shared_ptr<WorkunitExecutor> workunit_executor,
62  std::shared_ptr<Workunit> workunit,
63  std::shared_ptr<FailureCause> cause,
64  double payload);
65 
67  std::shared_ptr<WorkunitExecutor> workunit_executor;
69  std::shared_ptr<Workunit> workunit;
71  std::shared_ptr<FailureCause> cause;
72  };
73 
74 
78  class StandardJobExecutorDoneMessage : public StandardJobExecutorMessage {
79  public:
80  StandardJobExecutorDoneMessage(
81  std::shared_ptr<StandardJob> job,
82  std::shared_ptr<StandardJobExecutor> executor,
83  double payload);
84 
86  std::shared_ptr<StandardJobExecutor> executor;
88  std::shared_ptr<StandardJob> job;
89 
90  };
91 
95  class StandardJobExecutorFailedMessage : public StandardJobExecutorMessage {
96  public:
97  StandardJobExecutorFailedMessage(
98  std::shared_ptr<StandardJob> job,
99  std::shared_ptr<StandardJobExecutor> executor,
100  std::shared_ptr<FailureCause> cause,
101  double payload);
102 
104  std::shared_ptr<StandardJobExecutor> executor;
106  std::shared_ptr<StandardJob> job;
108  std::shared_ptr<FailureCause> cause;
109 
110  };
111 
112 
116  class ComputeThreadDoneMessage : public StandardJobExecutorMessage {
117  public:
118  ComputeThreadDoneMessage();
119 
120  };
121 
122 
123  /***********************/
125  /***********************/
126 };
127 
128 #endif //WRENCH_MULTINODEMULTICORESTANDARDJOBEXECUTORMESSAGE_H
wrench
Definition: Alarm.cpp:20