WorkloadTraceFileReplayer.h
1 
11 #ifndef WRENCH_WORKLOADTRACEFILEREPLAYER_H
12 #define WRENCH_WORKLOADTRACEFILEREPLAYER_H
13 
14 #include "wrench/services/Service.h"
15 
16 /***********************/
18 /***********************/
19 
20 namespace wrench {
21 
22  class BatchService;
23 
28  class WorkloadTraceFileReplayer : public WMS {
29 
30  public:
32  std::string hostname,
33  BatchService *batch_service,
34  unsigned long num_cores_per_node,
35  bool use_actual_runtimes_as_requested_runtimes,
36  std::vector<std::tuple<std::string, double, double, double, double, unsigned int>> &workload_trace
37  );
38 
39  private:
40  std::vector<std::tuple<std::string, double, double, double, double, unsigned int>> &workload_trace;
41  BatchService *batch_service;
42  unsigned long num_cores_per_node;
43  bool use_actual_runtimes_as_requested_runtimes;
44 
45  int main() override;
46  };
47 
48 };
49 
50 /***********************/
52 /***********************/
53 
54 
55 
56 #endif //WRENCH_WORKLOADTRACEFILEREPLAYER_H
A batch-scheduled compute service that manages a set of compute hosts and controls access to their re...
Definition: BatchService.h:47
A service that goes through a job submission trace (as loaded by a TraceFileLoader), and "replays" it on a given BatchService.
Definition: WorkloadTraceFileReplayer.h:28
std::string hostname
The name of the host on which the daemon is running.
Definition: S4U_Daemon.h:47
A class that provides basic simulation methods.
Definition: Simulation.h:34
Simulation * simulation
a pointer to the simulation object
Definition: S4U_Daemon.h:84
A workflow management system (WMS)
Definition: WMS.h:33
WorkloadTraceFileReplayer(Simulation *simulation, std::string hostname, BatchService *batch_service, unsigned long num_cores_per_node, bool use_actual_runtimes_as_requested_runtimes, std::vector< std::tuple< std::string, double, double, double, double, unsigned int >> &workload_trace)
Constructor.
Definition: WorkloadTraceFileReplayer.cpp:30
Definition: TerminalOutput.cpp:15