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 
35  protected:
36  StandardJobExecutorMessage(std::string name, double payload);
37  };
38 
43  public:
45  WorkunitExecutor *workunit_executor,
46  Workunit *workunit,
47  double payload);
48 
53  };
54 
59  public:
61  WorkunitExecutor *workunit_executor,
62  Workunit *workunit,
63  std::shared_ptr<FailureCause> cause,
64  double payload);
65 
71  std::shared_ptr<FailureCause> cause;
72  };
73 
74 
79  public:
81  StandardJob *job,
82  StandardJobExecutor *executor,
83  double payload);
84 
89 
90  };
91 
96  public:
98  StandardJob *job,
99  StandardJobExecutor *executor,
100  std::shared_ptr<FailureCause> cause,
101  double payload);
102 
108  std::shared_ptr<FailureCause> cause;
109 
110  };
111 
112 
117  public:
119 
120  };
121 
122 
123  /***********************/
125  /***********************/
126 };
127 
128 #endif //WRENCH_MULTINODEMULTICORESTANDARDJOBEXECUTORMESSAGE_H
A message sent by a StandardJobExecutor to notify that it has completed a StandardJob.
Definition: StandardJobExecutorMessage.h:78
Workunit * workunit
The work unit that has failed.
Definition: StandardJobExecutorMessage.h:69
WorkunitExecutor * workunit_executor
The work unit executor that has completed the work unit.
Definition: StandardJobExecutorMessage.h:50
StandardJobExecutor * executor
The standard job executor that has completed the standard job.
Definition: StandardJobExecutorMessage.h:86
A message sent by a ComputeThread once it&#39;s done performing its computation.
Definition: StandardJobExecutorMessage.h:116
A service that knows how to execute a standard job on a multi-node multi-core platform. Note that when killed in the middle of computing, this service will set (internal) running tasks&#39; states to FAILED, and likely the calling service will want to make failed tasks READY and NOT_READY again to "unwind" the failed executions and resubmit tasks for execution. Also, this service does not increment task failure counts, as it does not know if the kill() was an actual failure (i.e., some timeout) or a feature (i.e., a WMS changing its mind)
Definition: StandardJobExecutor.h:44
Top-level class for messages received/sent by a StandardJobExecutor.
Definition: StandardJobExecutorMessage.h:34
double payload
The message size in bytes.
Definition: SimulationMessage.h:39
A message sent by a StandardJobExecutor to notify that its StandardJob has failed.
Definition: StandardJobExecutorMessage.h:95
Top-level class to describe a message communicated by processes in the simulation.
Definition: SimulationMessage.h:27
std::string name
The message name.
Definition: SimulationMessage.h:37
A class to describe a unit of work that&#39;s a sub-component of a StandardJob.
Definition: Workunit.h:34
std::shared_ptr< FailureCause > cause
The cause of the failure.
Definition: StandardJobExecutorMessage.h:108
A message sent by a WorkunitExecutor to notify that it has completed a WorkUnit.
Definition: StandardJobExecutorMessage.h:42
A standard (i.e., non-pilot) workflow job that can be submitted to a ComputeService by a WMS (via a J...
Definition: StandardJob.h:38
StandardJobExecutorMessage(std::string name, double payload)
Constructor.
Definition: StandardJobExecutorMessage.cpp:22
StandardJob * job
The standard job that has failed.
Definition: StandardJobExecutorMessage.h:106
WorkunitExecutor * workunit_executor
The worker unit executor that has failed to perform the work unit.
Definition: StandardJobExecutorMessage.h:67
A message sent by a WorkunitExecutor to notify that its WorkUnit as failed.
Definition: StandardJobExecutorMessage.h:58
Workunit * workunit
The work unit that has completed.
Definition: StandardJobExecutorMessage.h:52
std::shared_ptr< FailureCause > cause
The cause of the failure.
Definition: StandardJobExecutorMessage.h:71
StandardJob * job
The standard job that has completed.
Definition: StandardJobExecutorMessage.h:88
An service that performs a WorkUnit.
Definition: WorkunitExecutor.h:38
Definition: TerminalOutput.cpp:15
StandardJobExecutor * executor
The standard job executor that has ailed to complete the standard job.
Definition: StandardJobExecutorMessage.h:104