WRENCH  1.10
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
BatschedBatchScheduler.h
1 
10 #ifndef WRENCH_BATSCHEDBATCHSCHEDULER_H
11 #define WRENCH_BATSCHEDBATCHSCHEDULER_H
12 
13 #include "wrench/services/compute/batch/batch_schedulers/BatchScheduler.h"
14 
15 namespace wrench {
16 
17 /***********************/
19 /***********************/
20 
24  class BatschedBatchScheduler : public BatchScheduler {
25 
26  public:
27 
32  explicit BatschedBatchScheduler(BatchComputeService *cs) : BatchScheduler(cs) {}
33 
37  void init() override;
38 
42  void launch() override;
43 
47  void shutdown() override;
48 
52  void processQueuedJobs() override;
53 
58  void processJobSubmission(std::shared_ptr<BatchJob> batch_job) override;
59 
64  void processJobFailure(std::shared_ptr<BatchJob> batch_job) override;
65 
70  void processJobCompletion(std::shared_ptr<BatchJob> batch_job) override;
71 
76  void processJobTermination(std::shared_ptr<BatchJob> batch_job) override;
77 
82  void processUnknownJobTermination(std::string job_id) override;
83 
92  std::map<std::string, double> getStartTimeEstimates(std::set<std::tuple<std::string, unsigned long, unsigned long, double>> set_of_jobs) override;
93 
94  private:
95 #ifdef ENABLE_BATSCHED
96 
97  void notifyJobEventsToBatSched(std::string job_id, std::string status, std::string job_state,
98  std::string kill_reason, std::string event_type);
99 
100  void appendJobInfoToCSVOutputFile(BatchJob *batch_job, std::string status);
101 
102  void startBatschedNetworkListener();
103 
104 
105  pid_t pid;
106 
107  unsigned long batsched_port;
108 
109 
110 #endif
111 
112  };
113 
114 /***********************/
116 /***********************/
117 
118 }
119 
120 
121 #endif //WRENCH_BATSCHEDBATCHSCHEDULER_H
wrench
Definition: Alarm.cpp:20
wrench::processUnknownJobTermination
void processUnknownJobTermination(std::string job_id)
No-op method.
Definition: FCFSBatchScheduler.cpp:410