WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
BatschedNetworkListener.h
1 
10 #ifndef WRENCH_BATSCHEDNETWORKLISTENER_H
11 #define WRENCH_BATSCHEDNETWORKLISTENER_H
12 
13 #include "wrench/services/Service.h"
14 #include "BatchComputeServiceProperty.h"
15 
16 namespace wrench {
17 
18 
19  class BatchComputeService;
20 
21  /***********************/
23  /***********************/
24 
25 #ifdef ENABLE_BATSCHED
26 
29  class BatschedNetworkListener: public Service {
30 
31  public:
32 
33  BatschedNetworkListener(std::string hostname, std::shared_ptr<BatchComputeService> batch_service,
34  simgrid::s4u::Mailbox *batch_service_mailbox, std::string sched_port,
35  std::string data_to_send,WRENCH_PROPERTY_COLLECTION_TYPE property_list = {});
36  private:
37  WRENCH_PROPERTY_COLLECTION_TYPE default_property_values = {
38  };
39 
40 WRENCH_MESSAGE_PAYLOADCOLLECTION_TYPE default_messagepayload_values = {
41  };
42 
43  BatschedNetworkListener(std::string, std::shared_ptr<BatchComputeService> batch_service, simgrid::s4u::Mailbox *batch_service_mailbox, std::string sched_port,
44  std::string data_to_send, WRENCH_PROPERTY_COLLECTION_TYPE property_list, std::string suffix);
45 
46 
47  int main() override;
48  std::string self_port;
49  std::string sched_port;
50  std::string data_to_send;
51  std::string reply_received;
52  std::shared_ptr<BatchComputeService> batch_service;
53  simgrid::s4u::Mailbox *batch_service_mailbox;
54 
55  void sendExecuteMessageToBatchComputeService(simgrid::s4u::Mailbox *answer_mailbox, std::string execute_job_reply_data);
56  void sendQueryAnswerMessageToBatchComputeService(double estimated_waiting_time);
57  void send_receive();
58  };
59 
60 #else // ENABLE_BATSCHED
61 
65 
66  };
67 #endif
68 
69  /***********************/
71  /***********************/
72 }
73 
74 
75 #endif //WRENCH_BATSCHEDNETWORKLISTENER_H
wrench
Definition: Action.cpp:28
wrench::BatschedNetworkListener
An empty class to make Doxygen happy when Batsched is not enabled.
Definition: BatschedNetworkListener.h:64