wrench::S4U_VirtualMachine Class Reference
A wrapper for the simgrid::s4u::VirtualMachine class. More...
#include <S4U_VirtualMachine.h>
Public Member Functions | |
S4U_VirtualMachine (const std::string &vm_hostname, const std::string &pm_hostname, unsigned long num_cores, double ram_memory) | |
Constructor. More... | |
simgrid::s4u::VirtualMachine * | get () |
Get a pointer to the simgrid::s4u::VirtualMachine object. More... | |
simgrid::s4u::Host * | getPm () |
Get a pointer to the physical machine host. More... | |
bool | isRunning () |
Check whether the VM is running. More... | |
bool | isSuspended () |
Check whether the VM is suspended. More... | |
void | resume () |
Resume the virtual machine. | |
void | shutdown () |
Shutdown the virtual machine. | |
void | start () |
Start the virtual machine. | |
void | stop () |
Stop the virtual machine. | |
void | suspend () |
Suspend the virtual machine. | |
Detailed Description
A wrapper for the simgrid::s4u::VirtualMachine class.
Constructor & Destructor Documentation
◆ S4U_VirtualMachine()
wrench::S4U_VirtualMachine::S4U_VirtualMachine | ( | const std::string & | vm_hostname, |
const std::string & | pm_hostname, | ||
unsigned long | num_cores, | ||
double | ram_memory | ||
) |
Constructor.
- Parameters
-
vm_hostname the name of the VM host pm_hostname the name of the physical machine host num_cores the number of cores the VM can use ram_memory the VM RAM memory capacity
Member Function Documentation
◆ get()
simgrid::s4u::VirtualMachine * wrench::S4U_VirtualMachine::get | ( | ) |
Get a pointer to the simgrid::s4u::VirtualMachine object.
- Returns
- a pointer to the simgrid::s4u::VirtualMachine object
◆ getPm()
simgrid::s4u::Host * wrench::S4U_VirtualMachine::getPm | ( | ) |
Get a pointer to the physical machine host.
- Returns
- a pointer to the physical machine host
◆ isRunning()
bool wrench::S4U_VirtualMachine::isRunning | ( | ) |
Check whether the VM is running.
- Returns
- True if the VM is running, false otherwise
◆ isSuspended()
bool wrench::S4U_VirtualMachine::isSuspended | ( | ) |
Check whether the VM is suspended.
- Returns
- True if the VM is suspended, false otherwise
The documentation for this class was generated from the following files:
- /Users/rafsilva/Documents/isi/workspace/wrench/wrench/include/wrench/simgrid_S4U_util/S4U_VirtualMachine.h
- /Users/rafsilva/Documents/isi/workspace/wrench/wrench/src/wrench/simgrid_S4U_util/S4U_VirtualMachine.cpp