VirtualizedClusterServiceMessage.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 ComputeService;
21 
22  /***********************/
24  /***********************/
25 
30  protected:
31  VirtualizedClusterServiceMessage(const std::string &name, double payload);
32  };
33 
38  public:
39  VirtualizedClusterServiceMigrateVMRequestMessage(const std::string &answer_mailbox,
40  const std::string &vm_hostname,
41  const std::string &dest_pm_hostname,
42  double payload);
43 
45  std::string vm_hostname;
47  std::string dest_pm_hostname;
49  std::string answer_mailbox;
50  };
51 
56  public:
58 
60  bool success;
61  };
62 
63  /***********************/
65  /***********************/
66 }
67 
68 #endif //WRENCH_VIRTUALIZEDCLUSTERSERVICEMESSAGE_H
Top-level class for messages received/sent by a ComputeService.
Definition: ComputeServiceMessage.h:32
VirtualizedClusterServiceMessage(const std::string &name, double payload)
Constructor.
Definition: VirtualizedClusterServiceMessage.cpp:21
bool success
Whether the VM migration was successful or not.
Definition: VirtualizedClusterServiceMessage.h:60
std::string vm_hostname
The name of the host on which the VM is currently executed.
Definition: VirtualizedClusterServiceMessage.h:45
double payload
The message size in bytes.
Definition: SimulationMessage.h:39
A message sent to a VirtualizedClusterService to request a VM migration.
Definition: VirtualizedClusterServiceMessage.h:37
std::string name
The message name.
Definition: SimulationMessage.h:37
std::string dest_pm_hostname
The name of the host to which the VM should be migrated.
Definition: VirtualizedClusterServiceMessage.h:47
Top-level class for messages received/sent by a VirtualizedClusterService.
Definition: VirtualizedClusterServiceMessage.h:29
std::string answer_mailbox
The mailbox to which the answer message should be sent.
Definition: VirtualizedClusterServiceMessage.h:49
A message sent by a VirtualizedClusterService in answer to a VM migration request.
Definition: VirtualizedClusterServiceMessage.h:55
Definition: TerminalOutput.cpp:15