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 {
46  };
47 
48  std::shared_ptr<BareMetalComputeService> getComputeService();
49 
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::PilotJob::PENDING
@ PENDING
Submitted but not running.
Definition: PilotJob.h:37
wrench::Job
Abstraction of a job used for executing tasks in a Workflow.
Definition: Job.h:34
wrench::PilotJob::NOT_SUBMITTED
@ NOT_SUBMITTED
Not submitted yet.
Definition: PilotJob.h:35
wrench::JobManager
A helper daemon (co-located with and explicitly started by an execution controller),...
Definition: JobManager.h:56
wrench::PilotJob::EXPIRED
@ EXPIRED
Expired due to a time-to-live limit.
Definition: PilotJob.h:41
wrench::PilotJob::TERMINATED
@ TERMINATED
Terminated by submitter.
Definition: PilotJob.h:45
wrench
Definition: Action.cpp:28
wrench::Job::job_manager
std::shared_ptr< JobManager > job_manager
The Job Manager in charge of this job.
Definition: Job.h:86
wrench::PilotJob::getComputeService
std::shared_ptr< BareMetalComputeService > getComputeService()
Get the compute service provided by the (running) pilot job.
Definition: PilotJob.cpp:39
wrench::PilotJob::RUNNING
@ RUNNING
Running.
Definition: PilotJob.h:39
wrench::PilotJob::setComputeService
void setComputeService(std::shared_ptr< BareMetalComputeService > cs)
Set the compute service that runs on the pilot job.
Definition: PilotJob.cpp:47
wrench::PilotJob::State
State
Pilot job states.
Definition: PilotJob.h:33
wrench::PilotJob::FAILED
@ FAILED
Failed.
Definition: PilotJob.h:43
wrench::PilotJob::getState
PilotJob::State getState()
Get the state of the pilot job.
Definition: PilotJob.cpp:31
wrench::PilotJob
A pilot (i.e., non-standard) workflow job that can be submitted to a ComputeService by a WMS (via a J...
Definition: PilotJob.h:28