WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
FCFSBatchScheduler.h
1 
10 #ifndef WRENCH_FCFSBATCHSCHEDULER_H
11 #define WRENCH_FCFSBATCHSCHEDULER_H
12 
13 /***********************/
15 /***********************/
16 
17 #include "wrench/services/compute/batch/batch_schedulers/homegrown/HomegrownBatchScheduler.h"
18 #include "wrench/services/compute/batch/BatchComputeService.h"
19 
20 namespace wrench {
21 
26 
27  public:
28 
35 
36  void processQueuedJobs() override;
37 
38  void processJobSubmission(std::shared_ptr<BatchJob> batch_job) override;
39  void processJobFailure(std::shared_ptr<BatchJob> batch_job) override;
40  void processJobCompletion(std::shared_ptr<BatchJob> batch_job) override;
41  void processJobTermination(std::shared_ptr<BatchJob> batch_job) override;
42 
43  std::shared_ptr<BatchJob> pickNextJobToSchedule();
44 
45  std::map <std::string, std::tuple<unsigned long, double>> scheduleOnHosts(unsigned long, unsigned long, double) override;
46 
47  std::map<std::string, double> getStartTimeEstimates(std::set <std::tuple<std::string, unsigned long, unsigned long, double>> set_of_jobs) override;
48  };
49 
50 }
51 
52 /***********************/
54 /***********************/
55 
56 
57 
58 #endif //WRENCH_FCFSBATCHSCHEDULER_H
wrench::FCFSBatchScheduler::FCFSBatchScheduler
FCFSBatchScheduler(BatchComputeService *cs)
Constructor.
Definition: FCFSBatchScheduler.h:34
wrench::BatchScheduler::cs
BatchComputeService * cs
Compute service for which this scheduler is operating.
Definition: BatchScheduler.h:113
wrench::FCFSBatchScheduler
A class that implements a FCFS batch_standard_and_pilot_jobs scheduler.
Definition: FCFSBatchScheduler.h:25
wrench::FCFSBatchScheduler::processQueuedJobs
void processQueuedJobs() override
Method to process queued jobs.
Definition: FCFSBatchScheduler.cpp:337
wrench::FCFSBatchScheduler::getStartTimeEstimates
std::map< std::string, double > getStartTimeEstimates(std::set< std::tuple< std::string, unsigned long, unsigned long, double >> set_of_jobs) override
Method to get start time estimates.
Definition: FCFSBatchScheduler.cpp:162
wrench::BatchComputeService
A batch_standard_and_pilot_jobs-scheduled compute service that manages a set of compute hosts and con...
Definition: BatchComputeService.h:49
wrench
Definition: Action.cpp:28
wrench::FCFSBatchScheduler::pickNextJobToSchedule
std::shared_ptr< BatchJob > pickNextJobToSchedule()
Overriden Method to pick the next job to schedule.
Definition: FCFSBatchScheduler.cpp:24
wrench::FCFSBatchScheduler::scheduleOnHosts
std::map< std::string, std::tuple< unsigned long, double > > scheduleOnHosts(unsigned long, unsigned long, double) override
Override Method to find hosts on which to scheduled a job.
Definition: FCFSBatchScheduler.cpp:40
wrench::FCFSBatchScheduler::processJobSubmission
void processJobSubmission(std::shared_ptr< BatchJob > batch_job) override
No-op method.
Definition: FCFSBatchScheduler.cpp:387
wrench::HomegrownBatchScheduler
An abstract class that defines a batch_standard_and_pilot_jobs scheduler.
Definition: HomegrownBatchScheduler.h:26
wrench::FCFSBatchScheduler::processJobCompletion
void processJobCompletion(std::shared_ptr< BatchJob > batch_job) override
No-op method.
Definition: FCFSBatchScheduler.cpp:403
wrench::FCFSBatchScheduler::processJobTermination
void processJobTermination(std::shared_ptr< BatchJob > batch_job) override
No-op method.
Definition: FCFSBatchScheduler.cpp:419
wrench::FCFSBatchScheduler::processJobFailure
void processJobFailure(std::shared_ptr< BatchJob > batch_job) override
No-op method.
Definition: FCFSBatchScheduler.cpp:395