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 
29  protected:
30  explicit JobManagerMessage(std::string name);
31  };
32 
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 
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::SimulationMessage::name
std::string name
The message name.
Definition: SimulationMessage.h:37
wrench::JobManagerStandardJobDoneMessage::necessary_state_changes
std::map< WorkflowTask *, WorkflowTask::State > necessary_state_changes
The necessary task state changes.
Definition: JobManagerMessage.h:47
wrench::JobManagerStandardJobDoneMessage
A message sent by the JobManager to notify some submitter that a StandardJob has completed.
Definition: JobManagerMessage.h:36
wrench::JobManagerStandardJobFailedMessage::job
std::shared_ptr< StandardJob > job
The job that has failed.
Definition: JobManagerMessage.h:62
wrench::SimulationMessage
Top-level class to describe a message communicated by processes in the simulation.
Definition: SimulationMessage.h:27
wrench::JobManagerStandardJobFailedMessage::necessary_state_changes
std::map< WorkflowTask *, WorkflowTask::State > necessary_state_changes
The task state change that should be made.
Definition: JobManagerMessage.h:66
wrench
Definition: Alarm.cpp:20
wrench::JobManagerStandardJobFailedMessage::compute_service
std::shared_ptr< ComputeService > compute_service
The compute service on which the job has failed.
Definition: JobManagerMessage.h:64
wrench::JobManagerStandardJobFailedMessage::cause
std::shared_ptr< FailureCause > cause
The cause of the failure.
Definition: JobManagerMessage.h:70
wrench::JobManagerMessage
Top-level class for messages received/sent by a JobManager.
Definition: JobManagerMessage.h:28
wrench::JobManagerStandardJobFailedMessage
A message sent by the JobManager to notify some submitter that a StandardJob has failed.
Definition: JobManagerMessage.h:53
wrench::JobManagerStandardJobDoneMessage::compute_service
std::shared_ptr< ComputeService > compute_service
The compute service on which the job ran.
Definition: JobManagerMessage.h:45
wrench::JobManagerStandardJobDoneMessage::job
std::shared_ptr< StandardJob > job
The job that is done.
Definition: JobManagerMessage.h:43
wrench::JobManagerStandardJobFailedMessage::JobManagerStandardJobFailedMessage
JobManagerStandardJobFailedMessage(std::shared_ptr< 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
wrench::JobManagerStandardJobDoneMessage::JobManagerStandardJobDoneMessage
JobManagerStandardJobDoneMessage(std::shared_ptr< StandardJob > job, std::shared_ptr< ComputeService > compute_service, std::map< WorkflowTask *, WorkflowTask::State > necessary_state_changes)
Constructor.
Definition: JobManagerMessage.cpp:30
wrench::JobManagerStandardJobFailedMessage::necessary_failure_count_increments
std::set< WorkflowTask * > necessary_failure_count_increments
The tasks whose failure counts need to be incremented.
Definition: JobManagerMessage.h:68
wrench::JobManagerMessage::JobManagerMessage
JobManagerMessage(std::string name)
Constructor.
Definition: JobManagerMessage.cpp:19