WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
BareMetalComputeServiceOneShot.h
1 
10 #ifndef WRENCH_BAREMETALCOMPUTESERVICEONESHOT_H
11 #define WRENCH_BAREMETALCOMPUTESERVICEONESHOT_H
12 
13 
14 #include <queue>
15 
16 #include "wrench/services/compute/bare_metal/BareMetalComputeService.h"
17 #include "BareMetalComputeServiceProperty.h"
18 #include "BareMetalComputeServiceMessagePayload.h"
19 
20 
21 
22 namespace wrench {
23 
24  class Simulation;
25  class StorageService;
26  class FailureCause;
27  class Alarm;
28  class Action;
29  class ActionExecutionService;
30 
31 
36 
37  friend class BatchComputeService;
38 
39  public:
40 
41  protected:
42 
43  private:
44 
45  friend class Simulation;
46  friend class BatchComputeService;
47 
48  BareMetalComputeServiceOneShot(std::shared_ptr<CompoundJob> job,
49  const std::string &hostname,
50  std::map<std::string, std::tuple<unsigned long, double>> compute_resources,
51  WRENCH_PROPERTY_COLLECTION_TYPE property_list,
52  WRENCH_MESSAGE_PAYLOADCOLLECTION_TYPE messagepayload_list,
53  double ttl,
54  std::shared_ptr<PilotJob> pj,
55  std::string suffix,
56  std::shared_ptr<StorageService> scratch_space); // reference to upper level scratch space
57 
58  int main() override;
59 
60  std::shared_ptr<CompoundJob> job;
61 
62  };
63 };
64 
65 
66 #endif //WRENCH_BAREMETALCOMPUTESERVICEONESHOT_H
wrench::Service::property_list
WRENCH_PROPERTY_COLLECTION_TYPE property_list
The service's property list.
Definition: Service.h:110
wrench::Service::messagepayload_list
WRENCH_MESSAGE_PAYLOADCOLLECTION_TYPE messagepayload_list
The service's messagepayload list.
Definition: Service.h:113
wrench::BareMetalComputeService
A compute service that manages a set of multi-core compute hosts and provides access to their resourc...
Definition: BareMetalComputeService.h:45
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::S4U_Daemon::hostname
std::string hostname
The name of the host on which the daemon is running.
Definition: S4U_Daemon.h:60
wrench::Simulation
A class that provides basic simulation methods. Once the simulation object has been explicitly or imp...
Definition: Simulation.h:48
wrench::BareMetalComputeServiceOneShot
A bare-metal compute service that only runs one job, provided to its constructor.
Definition: BareMetalComputeServiceOneShot.h:35