10 #ifndef WRENCH_BATCHSERVICEMESSAGE_H
11 #define WRENCH_BATCHSERVICEMESSAGE_H
14 #include "wrench/services/compute/ComputeServiceMessage.h"
25 class BatchComputeServiceMessage :
public ComputeServiceMessage {
27 BatchComputeServiceMessage(
double payload);
33 class BatchComputeServiceJobRequestMessage :
public BatchComputeServiceMessage {
35 BatchComputeServiceJobRequestMessage(simgrid::s4u::Mailbox *answer_mailbox, std::shared_ptr<BatchJob> job ,
double payload);
38 simgrid::s4u::Mailbox *answer_mailbox;
40 std::shared_ptr<BatchJob> job;
47 class AlarmJobTimeOutMessage :
public ServiceMessage {
49 AlarmJobTimeOutMessage(std::shared_ptr<BatchJob> job,
double payload);
51 std::shared_ptr<BatchJob> job;
58 class AlarmNotifyBatschedMessage :
public ServiceMessage {
60 AlarmNotifyBatschedMessage(std::string job_id,
double payload);
70 class BatchSimulationBeginsToSchedulerMessage :
public BatchComputeServiceMessage {
72 BatchSimulationBeginsToSchedulerMessage(std::string answer_mailbox, std::string job_args_to_scheduler,
double payload);
75 std::string answer_mailbox;
77 std::string job_args_to_scheduler;
85 class BatchSchedReadyMessage :
public BatchComputeServiceMessage {
87 BatchSchedReadyMessage(std::string answer_mailbox,
double payload);
90 std::string answer_mailbox;
100 class BatchExecuteJobFromBatSchedMessage :
public BatchComputeServiceMessage {
102 BatchExecuteJobFromBatSchedMessage(simgrid::s4u::Mailbox *answer_mailbox, std::string batsched_decision_reply,
double payload);
105 simgrid::s4u::Mailbox *answer_mailbox;
108 std::string batsched_decision_reply;
115 class BatchQueryAnswerMessage :
public BatchComputeServiceMessage {
117 BatchQueryAnswerMessage(
double estimated_job_start_time,
double payload);
120 double estimated_start_time;
141 class BatchJobSubmissionToSchedulerMessage :
public BatchComputeServiceMessage {
143 BatchJobSubmissionToSchedulerMessage(simgrid::s4u::Mailbox *answer_mailbox, Job* job, std::string job_args_to_scheduler,
double payload);
146 simgrid::s4u::Mailbox *answer_mailbox;
150 std::string job_args_to_scheduler;
158 class BatchJobReplyFromSchedulerMessage :
public BatchComputeServiceMessage {
160 BatchJobReplyFromSchedulerMessage(std::string,
double);
174 #endif //WRENCH_BATCHSERVICEMESSAGE_H