JobManagerMessage.h
1 
11 #ifndef WRENCH_JOBMANAGERMESSAGE_H
12 #define WRENCH_JOBMANAGERMESSAGE_H
13 
14 
15 #include <wrench/simulation/SimulationMessage.h>
16 #include <wrench/workflow/job/StandardJob.h>
17 #include "wrench/services/compute/ComputeService.h"
18 #include <wrench-dev.h>
19 
20 namespace wrench {
21 
22 
23  /***********************/
25  /***********************/
26 
31  protected:
32  explicit JobManagerMessage(std::string name);
33  };
34 
39  public:
40  JobManagerStandardJobDoneMessage(StandardJob *job, std::shared_ptr<ComputeService> compute_service,
41  std::map<WorkflowTask *, WorkflowTask::State> necessary_state_changes);
42 
43 
47  std::shared_ptr<ComputeService> compute_service;
49  std::map<WorkflowTask *, WorkflowTask::State> necessary_state_changes;
50  };
51 
56  public:
57  JobManagerStandardJobFailedMessage(StandardJob *job, std::shared_ptr<ComputeService> compute_service,
58  std::map<WorkflowTask *, WorkflowTask::State> necessary_state_changes,
59  std::set<WorkflowTask *> necessary_failure_count_increments,
60  std::shared_ptr<FailureCause> cause);
61 
62 
66  std::shared_ptr<ComputeService> compute_service;
68  std::map<WorkflowTask *, WorkflowTask::State> necessary_state_changes;
70  std::set<WorkflowTask *> necessary_failure_count_increments;
72  std::shared_ptr<FailureCause> cause;
73  };
74 
75  /***********************/
77  /***********************/
78 
79 };
80 
81 #endif //WRENCH_JOBMANAGERMESSAGE_H
std::string name
The message name.
Definition: SimulationMessage.h:37
std::map< WorkflowTask *, WorkflowTask::State > necessary_state_changes
The necessary task state changes.
Definition: JobManagerMessage.h:49
A message sent by the JobManager to notify some submitter that a StandardJob has completed.
Definition: JobManagerMessage.h:38
Top-level class to describe a message communicated by processes in the simulation.
Definition: SimulationMessage.h:27
StandardJob * job
The job that has failed.
Definition: JobManagerMessage.h:64
std::map< WorkflowTask *, WorkflowTask::State > necessary_state_changes
The task state change that should be made.
Definition: JobManagerMessage.h:68
JobManagerStandardJobFailedMessage(StandardJob *job, std::shared_ptr< ComputeService > compute_service, std::map< WorkflowTask *, WorkflowTask::State > necessary_state_changes, std::set< WorkflowTask * > necessary_failure_count_increments, std::shared_ptr< FailureCause > cause)
Constructor.
Definition: JobManagerMessage.cpp:48
A standard (i.e., non-pilot) workflow job that can be submitted to a ComputeService by a WMS (via a J...
Definition: StandardJob.h:37
Definition: Alarm.cpp:20
StandardJob * job
The job that is done.
Definition: JobManagerMessage.h:45
std::shared_ptr< ComputeService > compute_service
The compute service on which the job has failed.
Definition: JobManagerMessage.h:66
std::shared_ptr< FailureCause > cause
The cause of the failure.
Definition: JobManagerMessage.h:72
Top-level class for messages received/sent by a JobManager.
Definition: JobManagerMessage.h:30
A message sent by the JobManager to notify some submitter that a StandardJob has failed.
Definition: JobManagerMessage.h:55
std::shared_ptr< ComputeService > compute_service
The compute service on which the job ran.
Definition: JobManagerMessage.h:47
JobManagerStandardJobDoneMessage(StandardJob *job, std::shared_ptr< ComputeService > compute_service, std::map< WorkflowTask *, WorkflowTask::State > necessary_state_changes)
Constructor.
Definition: JobManagerMessage.cpp:30
std::set< WorkflowTask * > necessary_failure_count_increments
The tasks whose failure counts need to be incremented.
Definition: JobManagerMessage.h:70
JobManagerMessage(std::string name)
Constructor.
Definition: JobManagerMessage.cpp:19