11 #ifndef WRENCH_COMPUTESERVICEMESSAGE_H
12 #define WRENCH_COMPUTESERVICEMESSAGE_H
16 #include "wrench/workflow/failure_causes/FailureCause.h"
17 #include "wrench/services/ServiceMessage.h"
49 std::shared_ptr<StandardJob>
job;
63 std::shared_ptr<StandardJob>
job;
80 std::shared_ptr<StandardJob>
job;
91 std::shared_ptr<FailureCause>
cause,
95 std::shared_ptr<StandardJob>
job;
99 std::shared_ptr<FailureCause>
cause;
112 std::shared_ptr<StandardJob>
job;
124 std::shared_ptr<StandardJob>
job;
145 std::shared_ptr<PilotJob>
job;
156 std::shared_ptr<FailureCause> cause,
160 std::shared_ptr<PilotJob>
job;
178 std::shared_ptr<PilotJob>
job;
191 std::shared_ptr<PilotJob>
job;
204 std::shared_ptr<PilotJob>
job;
219 std::shared_ptr<PilotJob>
job;
232 std::shared_ptr<PilotJob>
job;
262 std::map<std::string, std::map<std::string, double>>
info;
271 #endif //WRENCH_COMPUTESERVICEMESSAGE_H
A message sent by a ComputeService when a StandardJob has completed execution.
Definition: ComputeServiceMessage.h:75
A message sent by a ComputeService when a StandardJob has failed to execute.
Definition: ComputeServiceMessage.h:88
bool success
Whether to job submission was successful.
Definition: ComputeServiceMessage.h:67
std::string name
The message name.
Definition: SimulationMessage.h:37
std::shared_ptr< PilotJob > job
The job to terminate.
Definition: ComputeServiceMessage.h:232
ComputeServiceTerminatePilotJobRequestMessage(std::string answer_mailbox, std::shared_ptr< PilotJob >, double payload)
Constructor.
Definition: ComputeServiceMessage.cpp:293
Top-level class for messages received/sent by a ComputeService.
Definition: ComputeServiceMessage.h:32
std::shared_ptr< StandardJob > job
The submitted job.
Definition: ComputeServiceMessage.h:49
std::shared_ptr< ComputeService > compute_service
The compute service on which the job has completed.
Definition: ComputeServiceMessage.h:82
std::shared_ptr< FailureCause > cause
The cause of the failure.
Definition: ComputeServiceMessage.h:99
std::shared_ptr< FailureCause > failure_cause
The cause of the failure, or nullptr on success.
Definition: ComputeServiceMessage.h:238
std::shared_ptr< PilotJob > job
The submitted pilot job.
Definition: ComputeServiceMessage.h:160
std::shared_ptr< PilotJob > job
The pilot job that has failed.
Definition: ComputeServiceMessage.h:204
std::shared_ptr< ComputeService > compute_service
The compute service to which the job was submitted.
Definition: ComputeServiceMessage.h:65
std::string answer_mailbox
The mailbox to which the answer message should be sent.
Definition: ComputeServiceMessage.h:47
std::shared_ptr< FailureCause > failure_cause
The cause of the failure, or nullptr on success.
Definition: ComputeServiceMessage.h:166
std::shared_ptr< ComputeService > compute_service
The compute service on which the pilot job failed.
Definition: ComputeServiceMessage.h:206
std::map< std::string, std::string > service_specific_args
Service specific arguments.
Definition: ComputeServiceMessage.h:51
A message sent by a ComputeService when a PilotJob has started its execution.
Definition: ComputeServiceMessage.h:173
std::shared_ptr< ComputeService > compute_service
The compute service on which the pilot job has started.
Definition: ComputeServiceMessage.h:180
bool success
Whether to job termination was successful.
Definition: ComputeServiceMessage.h:236
std::shared_ptr< StandardJob > job
The job that has failed.
Definition: ComputeServiceMessage.h:95
std::shared_ptr< StandardJob > job
The job to terminate.
Definition: ComputeServiceMessage.h:112
Top-level class for messages received/sent by a Service.
Definition: ServiceMessage.h:27
ComputeServiceTerminateStandardJobRequestMessage(std::string answer_mailbox, std::shared_ptr< StandardJob >, double payload)
Constructor.
Definition: ComputeServiceMessage.cpp:129
ComputeServicePilotJobFailedMessage(std::shared_ptr< PilotJob >, std::shared_ptr< ComputeService >, double payload)
Constructor.
Definition: ComputeServiceMessage.cpp:273
std::shared_ptr< FailureCause > failure_cause
The cause of the failure, or nullptr on success.
Definition: ComputeServiceMessage.h:130
A message sent by a ComputeService when a PilotJob has expired.
Definition: ComputeServiceMessage.h:186
std::shared_ptr< ComputeService > compute_service
The compute service to which the job had been submitted.
Definition: ComputeServiceMessage.h:126
std::shared_ptr< PilotJob > job
The pilot job that has expired.
Definition: ComputeServiceMessage.h:191
ComputeServiceSubmitStandardJobAnswerMessage(std::shared_ptr< StandardJob >, std::shared_ptr< ComputeService >, bool success, std::shared_ptr< FailureCause > failure_cause, double payload)
Constructor.
Definition: ComputeServiceMessage.cpp:60
ComputeServiceMessage(std::string name, double payload)
Constructor.
Definition: ComputeServiceMessage.cpp:21
A message sent to a ComputeService to submit a StandardJob for execution.
Definition: ComputeServiceMessage.h:40
A message sent by a ComputeService when a PilotJob has failed.
Definition: ComputeServiceMessage.h:199
std::shared_ptr< PilotJob > job
The job to terminate.
Definition: ComputeServiceMessage.h:219
bool success
Whether the job submission was successful or not.
Definition: ComputeServiceMessage.h:164
ComputeServiceTerminatePilotJobAnswerMessage(std::shared_ptr< PilotJob >, std::shared_ptr< ComputeService > compute_service, bool success, std::shared_ptr< FailureCause > failure_cause, double payload)
Constructor.
Definition: ComputeServiceMessage.cpp:316
std::shared_ptr< PilotJob > job
The pilot job that has started.
Definition: ComputeServiceMessage.h:178
double payload
The message size in bytes.
Definition: SimulationMessage.h:39
A message sent by a ComputeService in answer to a StandardJob submission request.
Definition: ComputeServiceMessage.h:57
ComputeServiceSubmitStandardJobRequestMessage(const std::string answer_mailbox, std::shared_ptr< StandardJob >, const std::map< std::string, std::string > service_specific_args, double payload)
Constructor.
Definition: ComputeServiceMessage.cpp:35
ComputeServiceStandardJobFailedMessage(std::shared_ptr< StandardJob >, std::shared_ptr< ComputeService >, std::shared_ptr< FailureCause > cause, double payload)
Constructor.
Definition: ComputeServiceMessage.cpp:107
std::shared_ptr< ComputeService > compute_service
The compute service to which the job had been submitted.
Definition: ComputeServiceMessage.h:234
std::shared_ptr< StandardJob > job
The job that has completed.
Definition: ComputeServiceMessage.h:80
bool success
Whether to job termination was successful.
Definition: ComputeServiceMessage.h:128
std::shared_ptr< ComputeService > compute_service
The compute service on which the pilot job has expired.
Definition: ComputeServiceMessage.h:193
ComputeServicePilotJobExpiredMessage(std::shared_ptr< PilotJob >, std::shared_ptr< ComputeService >, double payload)
Constructor.
Definition: ComputeServiceMessage.cpp:253
A message sent to a ComputeService to terminate a StandardJob previously submitted for execution.
Definition: ComputeServiceMessage.h:105
ComputeServiceStandardJobDoneMessage(std::shared_ptr< StandardJob >, std::shared_ptr< ComputeService >, double payload)
Constructor.
Definition: ComputeServiceMessage.cpp:86
A message sent by a ComputeService in answer to a StandardJob termination request.
Definition: ComputeServiceMessage.h:118
ComputeServiceTerminateStandardJobAnswerMessage(std::shared_ptr< StandardJob >, std::shared_ptr< ComputeService >, bool success, std::shared_ptr< FailureCause > failure_cause, double payload)
Constructor.
Definition: ComputeServiceMessage.cpp:152
std::shared_ptr< StandardJob > job
The standard job to terminate.
Definition: ComputeServiceMessage.h:124
A message sent by a ComputeService in answer to a PilotJob submission request.
Definition: ComputeServiceMessage.h:153
std::shared_ptr< FailureCause > failure_cause
The cause of the failure, or nullptr on success.
Definition: ComputeServiceMessage.h:69
std::string answer_mailbox
The mailbox to which the answer message should be sent.
Definition: ComputeServiceMessage.h:217
std::map< std::string, std::string > service_specific_args
Service specific arguments.
Definition: ComputeServiceMessage.h:147
std::shared_ptr< ComputeService > compute_service
The compute service on which the job has failed.
Definition: ComputeServiceMessage.h:97
std::shared_ptr< ComputeService > compute_service
The compute service to which the job was submitted.
Definition: ComputeServiceMessage.h:162
std::shared_ptr< StandardJob > job
The standard job that was submitted.
Definition: ComputeServiceMessage.h:63
std::string answer_mailbox
The mailbox to which the answer message should be sent.
Definition: ComputeServiceMessage.h:110
ComputeServiceSubmitPilotJobRequestMessage(std::string answer_mailbox, std::shared_ptr< PilotJob >, const std::map< std::string, std::string > service_specific_args, double payload)
Constructor.
Definition: ComputeServiceMessage.cpp:180
ComputeServicePilotJobStartedMessage(std::shared_ptr< PilotJob >, std::shared_ptr< ComputeService >, double payload)
Constructor.
Definition: ComputeServiceMessage.cpp:232
A message sent to a ComputeService to submit a PilotJob for execution.
Definition: ComputeServiceMessage.h:136
std::string answer_mailbox
The mailbox to which the answer message should be sent.
Definition: ComputeServiceMessage.h:143
A message sent by a ComputeService in answer to a PilotJob termination request.
Definition: ComputeServiceMessage.h:225
std::shared_ptr< PilotJob > job
The submitted pilot job.
Definition: ComputeServiceMessage.h:145
ComputeServiceSubmitPilotJobAnswerMessage(std::shared_ptr< PilotJob >, std::shared_ptr< ComputeService >, bool success, std::shared_ptr< FailureCause > cause, double payload)
Constructor.
Definition: ComputeServiceMessage.cpp:205
A message sent to a ComputeService to terminate a PilotJob previously submitted for execution.
Definition: ComputeServiceMessage.h:212