WRENCH  1.10
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/workflow/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(std::string name);
31  };
32 
36  class JobManagerStandardJobDoneMessage : public JobManagerMessage {
37  public:
38  JobManagerStandardJobDoneMessage(std::shared_ptr<StandardJob> job, std::shared_ptr<ComputeService> compute_service,
39  std::map<WorkflowTask *, WorkflowTask::State> necessary_state_changes);
40 
41 
43  std::shared_ptr<StandardJob> job;
45  std::shared_ptr<ComputeService> compute_service;
47  std::map<WorkflowTask *, WorkflowTask::State> necessary_state_changes;
48  };
49 
53  class JobManagerStandardJobFailedMessage : public JobManagerMessage {
54  public:
55  JobManagerStandardJobFailedMessage(std::shared_ptr<StandardJob> job, std::shared_ptr<ComputeService> compute_service,
56  std::map<WorkflowTask *, WorkflowTask::State> necessary_state_changes,
57  std::set<WorkflowTask *> necessary_failure_count_increments,
58  std::shared_ptr<FailureCause> cause);
59 
60 
62  std::shared_ptr<StandardJob> job;
64  std::shared_ptr<ComputeService> compute_service;
66  std::map<WorkflowTask *, WorkflowTask::State> necessary_state_changes;
68  std::set<WorkflowTask *> necessary_failure_count_increments;
70  std::shared_ptr<FailureCause> cause;
71  };
72 
73  /***********************/
75  /***********************/
76 
77 };
78 
79 #endif //WRENCH_JOBMANAGERMESSAGE_H
wrench
Definition: Alarm.cpp:20