WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
VirtualizedClusterComputeServiceMessage.h
1 
11 #ifndef WRENCH_VIRTUALIZEDCLUSTERSERVICEMESSAGE_H
12 #define WRENCH_VIRTUALIZEDCLUSTERSERVICEMESSAGE_H
13 
14 #include <vector>
15 
16 #include "../ComputeServiceMessage.h"
17 
18 namespace wrench {
19 
20  class BareMetalComputeService;
21 
22  /***********************/
24  /***********************/
25 
29  class VirtualizedClusterComputeServiceMessage : public ComputeServiceMessage {
30  protected:
31  VirtualizedClusterComputeServiceMessage(const std::string &name, double payload);
32  };
33 
34 
38  class VirtualizedClusterComputeServiceMigrateVMRequestMessage : public VirtualizedClusterComputeServiceMessage {
39  public:
40  VirtualizedClusterComputeServiceMigrateVMRequestMessage(simgrid::s4u::Mailbox *answer_mailbox,
41  const std::string &vm_name,
42  const std::string &dest_pm_hostname,
43  double payload);
44 
46  std::string vm_name;
48  std::string dest_pm_hostname;
50  simgrid::s4u::Mailbox *answer_mailbox;
51  };
52 
56  class VirtualizedClusterComputeServiceMigrateVMAnswerMessage : public VirtualizedClusterComputeServiceMessage {
57  public:
58  VirtualizedClusterComputeServiceMigrateVMAnswerMessage(bool success,
59  std::shared_ptr<FailureCause> failure_cause,
60  double payload);
61 
63  bool success;
65  std::shared_ptr<FailureCause> failure_cause;
66 
67  };
68 
69  /***********************/
71  /***********************/
72 }
73 
74 #endif //WRENCH_VIRTUALIZEDCLUSTERSERVICEMESSAGE_H
wrench
Definition: Action.cpp:28