WRENCH  1.10
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 "wrench/services/compute/ComputeService.h"
14 #include "wrench/workflow/job/WorkflowJob.h"
15 
16 namespace wrench {
17 
18 
19  /***********************/
21  /***********************/
22 
27  class PilotJob : public WorkflowJob {
28 
29  public:
30 
32  enum State {
34  NOT_SUBMITTED,
36  PENDING,
38  RUNNING,
40  EXPIRED,
42  FAILED,
44  TERMINATED
45  };
46 
47  std::shared_ptr<ComputeService> getComputeService();
48 
49  PilotJob::State getState();
50 
51  unsigned long getPriority();
52 
53  /***********************/
55  /***********************/
56 
57 
58  void setComputeService(std::shared_ptr<ComputeService> cs);
59 
60  /***********************/
62  /***********************/
63 
64  private:
65 
66  friend class JobManager;
67 
68  PilotJob(Workflow *workflow);
69 
70  State state;
71  std::shared_ptr<ComputeService> compute_service; // Associated compute service, i.e., the running pilot job
72  };
73 
74  /***********************/
76  /***********************/
77 
78 };
79 
80 
81 #endif //WRENCH_PILOTJOB_H
wrench::getComputeService
std::shared_ptr< ComputeService > getComputeService()
Getter.
Definition: JobKilled.cpp:44
wrench
Definition: Alarm.cpp:20