11 #ifndef WRENCH_CLOUDSERVICEMESSAGE_H
12 #define WRENCH_CLOUDSERVICEMESSAGE_H
15 #include "wrench/services/compute/bare_metal/BareMetalComputeService.h"
17 #include "wrench/services/compute/ComputeServiceMessage.h"
162 std::shared_ptr<BareMetalComputeService>
cs,
169 std::shared_ptr<BareMetalComputeService>
cs;
273 #endif //WRENCH_CLOUDSERVICEMESSAGE_H
A message sent by a CloudComputeService in answer to a VM destroy request.
Definition: CloudComputeServiceMessage.h:256
std::string vm_name
The name of the VM to start.
Definition: CloudComputeServiceMessage.h:151
A message sent to a CloudComputeService to request a VM destruction.
Definition: CloudComputeServiceMessage.h:240
simgrid::s4u::Mailbox * answer_mailbox
The mailbox to which the answer message should be sent.
Definition: CloudComputeServiceMessage.h:248
A message sent to a CloudComputeService to request a VM creation.
Definition: CloudComputeServiceMessage.h:60
CloudComputeServiceCreateVMAnswerMessage(bool success, std::string &vm_name, std::shared_ptr< FailureCause > failure_cause, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:100
A message sent by a CloudComputeService in answer to a VM suspend request.
Definition: CloudComputeServiceMessage.h:193
A message sent by a CloudComputeService in answer to a VM creation request.
Definition: CloudComputeServiceMessage.h:88
bool success
Whether the VM start was successful or not.
Definition: CloudComputeServiceMessage.h:167
TerminationCause
Job termination cause enum.
Definition: ComputeService.h:67
double ram_memory
The VM RAM memory_manager_service capacity (0 means "use all memory_manager_service available on the ...
Definition: CloudComputeServiceMessage.h:76
Top-level class for messages received/sent by a ComputeService.
Definition: ComputeServiceMessage.h:32
std::string vm_name
The VM name if success.
Definition: CloudComputeServiceMessage.h:96
std::string vm_name
The name of the new VM host.
Definition: CloudComputeServiceMessage.h:116
CloudComputeServiceShutdownVMAnswerMessage(bool success, std::shared_ptr< FailureCause > failure_cause, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:143
std::string desired_vm_name
The desired name for the VM ("" means "pick for me")
Definition: CloudComputeServiceMessage.h:78
std::shared_ptr< FailureCause > failure_cause
The failure cause (or nullptr if success)
Definition: CloudComputeServiceMessage.h:265
ComputeService::TerminationCause termination_cause
Termination cause (in case failure notifications are sent)
Definition: CloudComputeServiceMessage.h:120
CloudComputeServiceDestroyVMAnswerMessage(bool success, std::shared_ptr< FailureCause > failure_cause, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:290
CloudComputeServiceMessage(double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:22
A message sent to a CloudComputeService to request a VM start.
Definition: CloudComputeServiceMessage.h:140
std::string vm_name
The name of the VM host.
Definition: CloudComputeServiceMessage.h:218
std::string pm_name
The name of the physical host on which to start the VM (or "" if up to the service")
Definition: CloudComputeServiceMessage.h:153
A message sent to a CloudComputeService to request a VM resume.
Definition: CloudComputeServiceMessage.h:208
std::shared_ptr< BareMetalComputeService > cs
The VM's compute service.
Definition: CloudComputeServiceMessage.h:169
A message sent by a CloudComputeService in answer to a VM start request.
Definition: CloudComputeServiceMessage.h:159
Definition: Action.cpp:28
bool success
Whether the VM suspend was successful or not.
Definition: CloudComputeServiceMessage.h:200
simgrid::s4u::Mailbox * answer_mailbox
The mailbox to which the answer message should be sent.
Definition: CloudComputeServiceMessage.h:114
bool success
Whether the VM shutdown was successful or not.
Definition: CloudComputeServiceMessage.h:132
A message sent by a CloudComputeService in answer to a VM resume request.
Definition: CloudComputeServiceMessage.h:224
bool success
Whether the VM resume was successful or not.
Definition: CloudComputeServiceMessage.h:231
CloudComputeServiceGetExecutionHostsRequestMessage(simgrid::s4u::Mailbox *answer_mailbox, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:34
CloudComputeServiceStartVMAnswerMessage(bool success, std::shared_ptr< BareMetalComputeService > cs, std::shared_ptr< FailureCause > failure_cause, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:182
simgrid::s4u::Mailbox * answer_mailbox
The mailbox to which a reply should be sent.
Definition: CloudComputeServiceMessage.h:43
double payload
The message name.
Definition: SimulationMessage.h:40
A message sent to a CloudComputeService to request a VM suspend.
Definition: CloudComputeServiceMessage.h:177
A message sent to a CloudComputeService to request a VM shutdown.
Definition: CloudComputeServiceMessage.h:104
CloudComputeServiceResumeVMRequestMessage(simgrid::s4u::Mailbox *mailbox, const std::string &vm_name, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:233
bool send_failure_notifications
Whether to send failure notifications.
Definition: CloudComputeServiceMessage.h:118
std::string vm_name
The name of the new VM host.
Definition: CloudComputeServiceMessage.h:187
simgrid::s4u::Mailbox * answer_mailbox
The mailbox to which the answer message should be sent.
Definition: CloudComputeServiceMessage.h:216
CloudComputeServiceSuspendVMAnswerMessage(bool success, std::shared_ptr< FailureCause > failure_cause, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:219
WRENCH_MESSAGE_PAYLOADCOLLECTION_TYPE messagepayload_list
A message payload list for the bare_metal_standard_jobs that will run on the VM ({} means "use all de...
Definition: CloudComputeServiceMessage.h:82
CloudComputeServiceDestroyVMRequestMessage(simgrid::s4u::Mailbox *answer_mailbox, const std::string &vm_name, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:269
CloudComputeServiceSuspendVMRequestMessage(simgrid::s4u::Mailbox *answer_mailbox, const std::string &vm_name, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:198
CloudComputeServiceCreateVMRequestMessage(simgrid::s4u::Mailbox *answer_mailbox, unsigned long num_cores, double ram_memory, std::string desired_vm_name, WRENCH_PROPERTY_COLLECTION_TYPE property_list, WRENCH_MESSAGE_PAYLOADCOLLECTION_TYPE messagepayload_list, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:72
std::shared_ptr< FailureCause > failure_cause
The cause of the failure, or nullptr on success.
Definition: CloudComputeServiceMessage.h:134
unsigned long num_cores
The number of cores the service can use (0 means "use as many as there are cores on the host")
Definition: CloudComputeServiceMessage.h:74
std::shared_ptr< FailureCause > failure_cause
The failure cause (or nullptr if success)
Definition: CloudComputeServiceMessage.h:233
bool success
Whether the VM suspend was successful or not.
Definition: CloudComputeServiceMessage.h:263
std::shared_ptr< FailureCause > failure_cause
The failure cause (or nullptr if success)
Definition: CloudComputeServiceMessage.h:171
Top-level class for messages received/sent by a CloudComputeService.
Definition: CloudComputeServiceMessage.h:30
simgrid::s4u::Mailbox * answer_mailbox
The mailbox to which the answer message should be sent.
Definition: CloudComputeServiceMessage.h:149
CloudComputeServiceResumeVMAnswerMessage(bool success, std::shared_ptr< FailureCause > failure_cause, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:254
simgrid::s4u::Mailbox * answer_mailbox
The mailbox to which the answer message should be sent.
Definition: CloudComputeServiceMessage.h:185
CloudComputeServiceShutdownVMRequestMessage(simgrid::s4u::Mailbox *answer_mailbox, const std::string &vm_name, bool send_failure_notifications, ComputeService::TerminationCause termination_cause, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:118
std::shared_ptr< FailureCause > failure_cause
The failure cause (or nullptr if success)
Definition: CloudComputeServiceMessage.h:202
std::vector< std::string > execution_hosts
The list of execution hosts.
Definition: CloudComputeServiceMessage.h:54
A message sent by a CloudComputeService in answer to a VM shutdown request.
Definition: CloudComputeServiceMessage.h:126
CloudComputeServiceStartVMRequestMessage(simgrid::s4u::Mailbox *answer_mailbox, const std::string &vm_name, const std::string &pm_name, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:158
simgrid::s4u::Mailbox * answer_mailbox
The mailbox to which the answer message should be sent.
Definition: CloudComputeServiceMessage.h:72
A message sent by a CloudComputeService in answer to a list of execution hosts request.
Definition: CloudComputeServiceMessage.h:49
std::string vm_name
The name of the VM host.
Definition: CloudComputeServiceMessage.h:250
CloudComputeServiceGetExecutionHostsAnswerMessage(std::vector< std::string > &execution_hosts, double payload)
Constructor.
Definition: CloudComputeServiceMessage.cpp:53
A message sent to a CloudComputeService to request the list of its execution hosts.
Definition: CloudComputeServiceMessage.h:38
std::shared_ptr< FailureCause > failure_cause
The cause of the failure, or nullptr on success.
Definition: CloudComputeServiceMessage.h:98
bool success
Whether the VM creation was successful or not.
Definition: CloudComputeServiceMessage.h:94
WRENCH_PROPERTY_COLLECTION_TYPE property_list
A property list for the bare_metal_standard_jobs that will run on the VM ({} means "use all defaults"...
Definition: CloudComputeServiceMessage.h:80