VirtualizedClusterComputeServiceMessage.h
1 
11 #ifndef WRENCH_VIRTUALIZEDCLUSTERSERVICEMESSAGE_H
12 #define WRENCH_VIRTUALIZEDCLUSTERSERVICEMESSAGE_H
13 
14 #include <vector>
15 
16 #include "wrench/services/compute/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  std::string 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
VirtualizedClusterComputeServiceMessage(const std::string &name, double payload)
Constructor.
Definition: VirtualizedClusterComputeServiceMessage.cpp:21
std::string name
The message name.
Definition: SimulationMessage.h:37
Top-level class for messages received/sent by a ComputeService.
Definition: ComputeServiceMessage.h:32
A message sent to a VirtualizedClusterComputeService to request a VM migration.
Definition: VirtualizedClusterComputeServiceMessage.h:38
VirtualizedClusterComputeServiceMigrateVMAnswerMessage(bool success, std::shared_ptr< FailureCause > failure_cause, double payload)
Constructor.
Definition: VirtualizedClusterComputeServiceMessage.cpp:59
std::string vm_name
The name of the host on which the VM is currently executed.
Definition: VirtualizedClusterComputeServiceMessage.h:46
std::string answer_mailbox
The mailbox to which the answer message should be sent.
Definition: VirtualizedClusterComputeServiceMessage.h:50
Definition: Alarm.cpp:20
double payload
The message size in bytes.
Definition: SimulationMessage.h:39
std::shared_ptr< FailureCause > failure_cause
A failure cause (or nullptr if success)
Definition: VirtualizedClusterComputeServiceMessage.h:65
Top-level class for messages received/sent by a VirtualizedClusterComputeService.
Definition: VirtualizedClusterComputeServiceMessage.h:29
bool success
Whether the VM migration was successful or not.
Definition: VirtualizedClusterComputeServiceMessage.h:63
A message sent by a VirtualizedClusterComputeService in answer to a VM migration request.
Definition: VirtualizedClusterComputeServiceMessage.h:56
VirtualizedClusterComputeServiceMigrateVMRequestMessage(const std::string &answer_mailbox, const std::string &vm_name, const std::string &dest_pm_hostname, double payload)
Constructor.
Definition: VirtualizedClusterComputeServiceMessage.cpp:36
std::string dest_pm_hostname
The name of the host to which the VM should be migrated.
Definition: VirtualizedClusterComputeServiceMessage.h:48