BatchServiceMessage.h
1 
10 #ifndef WRENCH_BATCHSERVICEMESSAGE_H
11 #define WRENCH_BATCHSERVICEMESSAGE_H
12 
13 
14 #include "wrench/services/compute/ComputeServiceMessage.h"
15 #include "BatchJob.h"
16 
17 namespace wrench{
18  /***********************/
20  /***********************/
21 
26  protected:
27  BatchServiceMessage(std::string name, double payload);
28  };
29 
34  public:
35  BatchServiceJobRequestMessage(std::string answer_mailbox, BatchJob* job , double payload);
36 
38  std::string answer_mailbox;
41  };
42 
48  public:
52  };
53 
54  #if 0
55 
58  class AlarmNotifyBatschedMessage : public ServiceMessage {
59  public:
60  AlarmNotifyBatschedMessage(std::string job_id, double payload);
62  std::string job_id;
63  };
64  #endif
65 
66 #if 0
67 
70  class BatchSimulationBeginsToSchedulerMessage : public BatchServiceMessage {
71  public:
72  BatchSimulationBeginsToSchedulerMessage(std::string answer_mailbox, std::string job_args_to_scheduler, double payload);
73 
75  std::string answer_mailbox;
77  std::string job_args_to_scheduler;
78  };
79 #endif
80 
81  #if 0
82 
85  class BatchSchedReadyMessage : public BatchServiceMessage {
86  public:
87  BatchSchedReadyMessage(std::string answer_mailbox, double payload);
88 
90  std::string answer_mailbox;
91  };
92  #endif
93 
94 
101  public:
102  BatchExecuteJobFromBatSchedMessage(std::string answer_mailbox, std::string batsched_decision_reply, double payload);
103 
105  std::string answer_mailbox;
106 
109  };
110 
116  public:
117  BatchQueryAnswerMessage(double estimated_job_start_time, double payload);
118 
121  };
122 
123  #if 0
124 // /**
125 // * @brief BatchFakeReplyMessage class
126 // */
127 // class BatchFakeJobSubmissionReplyMessage : public BatchServiceMessage {
128 // public:
129 // BatchFakeJobSubmissionReplyMessage(std::string json_data_string, double payload);
130 //
131 // /** @brief The resources info in json data string */
132 // std::string json_data_string;
133 // };
134  #endif
135 
136 
137  #if 0
138 
141  class BatchJobSubmissionToSchedulerMessage : public BatchServiceMessage {
142  public:
143  BatchJobSubmissionToSchedulerMessage(std::string answer_mailbox, WorkflowJob* job, std::string job_args_to_scheduler, double payload);
144 
146  std::string answer_mailbox;
148  WorkflowJob *job;
150  std::string job_args_to_scheduler;
151  };
152  #endif
153 
154  #if 0
155 
158  class BatchJobReplyFromSchedulerMessage : public BatchServiceMessage {
159  public:
160  BatchJobReplyFromSchedulerMessage(std::string, double);
161 
163  std::string reply;
164  };
165  #endif
166 
167  /***********************/
169  /***********************/
170 
171 }
172 
173 
174 #endif //WRENCH_BATCHSERVICEMESSAGE_H
Top-level class for messages received/sent by a ComputeService.
Definition: ComputeServiceMessage.h:32
BatchJob * job
The batch job.
Definition: BatchServiceMessage.h:51
double estimated_start_time
The estimated job start time.
Definition: BatchServiceMessage.h:120
double payload
The message size in bytes.
Definition: SimulationMessage.h:39
Abstraction of a job used for executing tasks in a Workflow.
Definition: WorkflowJob.h:31
std::string name
The message name.
Definition: SimulationMessage.h:37
A message sent to a BatchService to submit a batch job for execution.
Definition: BatchServiceMessage.h:33
std::string answer_mailbox
The mailbox to answer to.
Definition: BatchServiceMessage.h:105
A message sent by a BatschedNetworkListener to a Batsched-enabled BatchService to tell it to start a ...
Definition: BatchServiceMessage.h:100
Top-level class for messages received/sent by a Service.
Definition: ServiceMessage.h:27
A message sent by an alarm when a job goes over its requested execution time.
Definition: BatchServiceMessage.h:47
BatchJob * job
The batch job.
Definition: BatchServiceMessage.h:40
BatchServiceMessage(std::string name, double payload)
Constructor.
Definition: BatchServiceMessage.cpp:20
A batch job, which encapsulates a WorkflowJob and additional information used by a BatchService...
Definition: BatchJob.h:16
std::string answer_mailbox
The mailbox to answer to.
Definition: BatchServiceMessage.h:38
std::string batsched_decision_reply
The decision reply from Batsched.
Definition: BatchServiceMessage.h:108
Top-level class for messages received/sent by a BatchService.
Definition: BatchServiceMessage.h:25
A message send by a BatschedNetworkListener to a Batsched-enabled BatchService with a job start time ...
Definition: BatchServiceMessage.h:115
Definition: TerminalOutput.cpp:15