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 
30  protected:
31  VirtualizedClusterComputeServiceMessage(const std::string &name, double payload);
32  };
33 
34 
39  public:
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 
57  public:
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::VirtualizedClusterComputeServiceMessage::VirtualizedClusterComputeServiceMessage
VirtualizedClusterComputeServiceMessage(const std::string &name, double payload)
Constructor.
Definition: VirtualizedClusterComputeServiceMessage.cpp:21
wrench::ComputeServiceMessage
Top-level class for messages received/sent by a ComputeService.
Definition: ComputeServiceMessage.h:32
wrench::VirtualizedClusterComputeServiceMigrateVMRequestMessage
A message sent to a VirtualizedClusterComputeService to request a VM migration.
Definition: VirtualizedClusterComputeServiceMessage.h:38
wrench::VirtualizedClusterComputeServiceMigrateVMAnswerMessage::VirtualizedClusterComputeServiceMigrateVMAnswerMessage
VirtualizedClusterComputeServiceMigrateVMAnswerMessage(bool success, std::shared_ptr< FailureCause > failure_cause, double payload)
Constructor.
Definition: VirtualizedClusterComputeServiceMessage.cpp:59
wrench::VirtualizedClusterComputeServiceMigrateVMRequestMessage::vm_name
std::string vm_name
The name of the host on which the VM is currently executed.
Definition: VirtualizedClusterComputeServiceMessage.h:46
wrench::VirtualizedClusterComputeServiceMigrateVMRequestMessage::answer_mailbox
simgrid::s4u::Mailbox * answer_mailbox
The mailbox to which the answer message should be sent.
Definition: VirtualizedClusterComputeServiceMessage.h:50
wrench
Definition: Action.cpp:28
wrench::SimulationMessage::payload
double payload
The message name.
Definition: SimulationMessage.h:40
wrench::VirtualizedClusterComputeServiceMigrateVMAnswerMessage::failure_cause
std::shared_ptr< FailureCause > failure_cause
A failure cause (or nullptr if success)
Definition: VirtualizedClusterComputeServiceMessage.h:65
wrench::VirtualizedClusterComputeServiceMessage
Top-level class for messages received/sent by a VirtualizedClusterComputeService.
Definition: VirtualizedClusterComputeServiceMessage.h:29
wrench::VirtualizedClusterComputeServiceMigrateVMAnswerMessage::success
bool success
Whether the VM migration was successful or not.
Definition: VirtualizedClusterComputeServiceMessage.h:63
wrench::VirtualizedClusterComputeServiceMigrateVMAnswerMessage
A message sent by a VirtualizedClusterComputeService in answer to a VM migration request.
Definition: VirtualizedClusterComputeServiceMessage.h:56
wrench::VirtualizedClusterComputeServiceMigrateVMRequestMessage::dest_pm_hostname
std::string dest_pm_hostname
The name of the host to which the VM should be migrated.
Definition: VirtualizedClusterComputeServiceMessage.h:48
wrench::VirtualizedClusterComputeServiceMigrateVMRequestMessage::VirtualizedClusterComputeServiceMigrateVMRequestMessage
VirtualizedClusterComputeServiceMigrateVMRequestMessage(simgrid::s4u::Mailbox *answer_mailbox, const std::string &vm_name, const std::string &dest_pm_hostname, double payload)
Constructor.
Definition: VirtualizedClusterComputeServiceMessage.cpp:36