WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
JobManagerMessage.h
1 
10 #ifndef WRENCH_JOBMANAGERMESSAGE_H
11 #define WRENCH_JOBMANAGERMESSAGE_H
12 
13 #include "wrench/simulation/SimulationMessage.h"
14 #include "wrench/services/compute/ComputeService.h"
15 #include "wrench/job/StandardJob.h"
16 #include "wrench-dev.h"
17 
18 namespace wrench {
19 
20 
21  /***********************/
23  /***********************/
24 
28  class JobManagerMessage : public SimulationMessage {
29  protected:
30  explicit JobManagerMessage();
31  };
32 
36  class JobManagerWakeupMessage : public JobManagerMessage {
37  public:
38  JobManagerWakeupMessage();
39  };
40 
44  class JobManagerCompoundJobCompletedMessage : public JobManagerMessage {
45  public:
46  JobManagerCompoundJobCompletedMessage(std::shared_ptr<CompoundJob> job, std::shared_ptr<ComputeService> compute_service);
47 
49  std::shared_ptr<CompoundJob> job;
51  std::shared_ptr<ComputeService> compute_service;
52  };
53 
57  class JobManagerCompoundJobFailedMessage : public JobManagerMessage {
58  public:
59  JobManagerCompoundJobFailedMessage(std::shared_ptr<CompoundJob> job,
60  std::shared_ptr<ComputeService> compute_service,
61  std::shared_ptr<FailureCause> cause);
62 
63 
65  std::shared_ptr<CompoundJob> job;
67  std::shared_ptr<ComputeService> compute_service;
69  std::shared_ptr<FailureCause> cause;
70  };
71 
72 
76  class JobManagerStandardJobCompletedMessage : public JobManagerMessage {
77  public:
78  JobManagerStandardJobCompletedMessage(std::shared_ptr<StandardJob> job, std::shared_ptr<ComputeService> compute_service,
79  std::map<std::shared_ptr<WorkflowTask>, WorkflowTask::State> necessary_state_changes);
80 
81 
83  std::shared_ptr<StandardJob> job;
85  std::shared_ptr<ComputeService> compute_service;
87  std::map<std::shared_ptr<WorkflowTask>, WorkflowTask::State> necessary_state_changes;
88  };
89 
93  class JobManagerStandardJobFailedMessage : public JobManagerMessage {
94  public:
95  JobManagerStandardJobFailedMessage(std::shared_ptr<StandardJob> job, std::shared_ptr<ComputeService> compute_service,
96  std::map<std::shared_ptr<WorkflowTask>, WorkflowTask::State> necessary_state_changes,
97  std::set<std::shared_ptr<WorkflowTask>> necessary_failure_count_increments,
98  std::shared_ptr<FailureCause> cause);
99 
100 
102  std::shared_ptr<StandardJob> job;
104  std::shared_ptr<ComputeService> compute_service;
106  std::map<std::shared_ptr<WorkflowTask>, WorkflowTask::State> necessary_state_changes;
108  std::set<std::shared_ptr<WorkflowTask>> necessary_failure_count_increments;
110  std::shared_ptr<FailureCause> cause;
111  };
112 
116  class JobManagerPilotJobFailedMessage : public JobManagerMessage {
117  public:
118  JobManagerPilotJobFailedMessage(std::shared_ptr<PilotJob> job,
119  std::shared_ptr<ComputeService> compute_service,
120  std::shared_ptr<FailureCause> cause);
121 
122 
124  std::shared_ptr<PilotJob> job;
126  std::shared_ptr<ComputeService> compute_service;
128  std::shared_ptr<FailureCause> cause;
129  };
130 
131  /***********************/
133  /***********************/
134 
135 };
136 
137 #endif //WRENCH_JOBMANAGERMESSAGE_H
wrench::WorkflowTask::State
State
Task states.
Definition: WorkflowTask.h:72
wrench
Definition: Action.cpp:28