WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
PilotJob.h
1 
10 #ifndef WRENCH_PILOTJOB_H
11 #define WRENCH_PILOTJOB_H
12 
13 #include "Job.h"
14 
15 namespace wrench {
16 
17 
18  /***********************/
20  /***********************/
21 
22  class BareMetalComputeService;
23 
28  class PilotJob : public Job {
29 
30  public:
31 
33  enum State {
35  NOT_SUBMITTED,
37  PENDING,
39  RUNNING,
41  EXPIRED,
43  FAILED,
45  TERMINATED
46  };
47 
48  std::shared_ptr<BareMetalComputeService> getComputeService();
49 
50  PilotJob::State getState();
51 
52  /***********************/
54  /***********************/
55 
56 
57  void setComputeService(std::shared_ptr<BareMetalComputeService> cs);
58 
59  /***********************/
61  /***********************/
62 
63  private:
64 
65  std::shared_ptr<CompoundJob> compound_job;
66 
67  friend class JobManager;
68 
69  PilotJob(std::shared_ptr<JobManager> job_manager);
70 
71  State state;
72  std::shared_ptr<BareMetalComputeService> compute_service; // Associated compute service, i.e., the running pilot job
73  };
74 
75  /***********************/
77  /***********************/
78 
79 };
80 
81 
82 #endif //WRENCH_PILOTJOB_H
wrench
Definition: Action.cpp:28