WRENCH  1.10
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
BatchComputeServiceMessage.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 
25  class BatchComputeServiceMessage : public ComputeServiceMessage {
26  protected:
27  BatchComputeServiceMessage(std::string name, double payload);
28  };
29 
33  class BatchComputeServiceJobRequestMessage : public BatchComputeServiceMessage {
34  public:
35  BatchComputeServiceJobRequestMessage(std::string answer_mailbox, std::shared_ptr<BatchJob> job , double payload);
36 
38  std::string answer_mailbox;
40  std::shared_ptr<BatchJob> job;
41  };
42 
47  class AlarmJobTimeOutMessage : public ServiceMessage {
48  public:
49  AlarmJobTimeOutMessage(std::shared_ptr<BatchJob> job,double payload);
51  std::shared_ptr<BatchJob> job;
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 BatchComputeServiceMessage {
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 BatchComputeServiceMessage {
86  public:
87  BatchSchedReadyMessage(std::string answer_mailbox, double payload);
88 
90  std::string answer_mailbox;
91  };
92  #endif
93 
94 
100  class BatchExecuteJobFromBatSchedMessage : public BatchComputeServiceMessage {
101  public:
102  BatchExecuteJobFromBatSchedMessage(std::string answer_mailbox, std::string batsched_decision_reply, double payload);
103 
105  std::string answer_mailbox;
106 
108  std::string batsched_decision_reply;
109  };
110 
115  class BatchQueryAnswerMessage : public BatchComputeServiceMessage {
116  public:
117  BatchQueryAnswerMessage(double estimated_job_start_time, double payload);
118 
120  double estimated_start_time;
121  };
122 
123  #if 0
124 // /**
125 // * @brief BatchFakeReplyMessage class
126 // */
127 // class BatchFakeJobSubmissionReplyMessage : public BatchComputeServiceMessage {
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 BatchComputeServiceMessage {
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 BatchComputeServiceMessage {
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
wrench
Definition: Alarm.cpp:20