SimGrid  3.13
Versatile Simulation of Distributed Systems
simgrid::surf::VMHL13 Class Reference

#include <vm_hl13.hpp>

Inheritance diagram for simgrid::surf::VMHL13:
simgrid::surf::VirtualMachine simgrid::surf::HostImpl simgrid::surf::Resource simgrid::surf::PropertyHolder

Public Member Functions

 VMHL13 (VMModel *model, const char *name, sg_host_t host_PM)
 
 ~VMHL13 ()
 
void suspend () override
 Suspend the VM. More...
 
void resume () override
 Resume the VM. More...
 
void save () override
 Save the VM (Not yet implemented) More...
 
void restore () override
 Restore the VM (Not yet implemented) More...
 
void migrate (sg_host_t ind_dst_pm) override
 Migrate the VM to the destination host. More...
 
void setBound (double bound) override
 
void setAffinity (Cpu *cpu, unsigned long mask) override
 
- Public Member Functions inherited from simgrid::surf::VirtualMachine
 VirtualMachine (simgrid::surf::HostModel *model, const char *name, simgrid::s4u::Host *host)
 
 ~VirtualMachine ()
 
sg_host_t getPm ()
 Get the physical machine hosting the VM. More...
 
void turnOn () override
 Turn on the current Resource. More...
 
void turnOff () override
 Turn off the current Resource. More...
 
e_surf_vm_state_t getState ()
 
void setState (e_surf_vm_state_t state)
 
- Public Member Functions inherited from simgrid::surf::HostImpl
 HostImpl (HostModel *model, const char *name, xbt_dynar_t storage, Cpu *cpu)
 Host constructor. More...
 
 HostImpl (HostModel *model, const char *name, lmm_constraint_t constraint, xbt_dynar_t storage, Cpu *cpu)
 Host constructor. More...
 
 ~HostImpl ()
 use destroy() instead of this destructor More...
 
HostModelgetModel ()
 
void attach (simgrid::s4u::Host *host)
 
bool isOn () const override
 Check if the current Resource is active. More...
 
bool isOff () const override
 Check if the current Resource is shut down. More...
 
virtual simgrid::surf::StoragefindStorageOnMountList (const char *storage)
 Return the storage of corresponding mount point. More...
 
virtual xbt_dict_t getMountedStorageList ()
 Get the xbt_dict_t of mount_point: Storage. More...
 
virtual xbt_dynar_t getAttachedStorageList ()
 Get the xbt_dynar_t of storages attached to the Host. More...
 
virtual Actionopen (const char *fullpath)
 Open a file. More...
 
virtual Actionclose (surf_file_t fd)
 Close a file. More...
 
virtual int unlink (surf_file_t fd)
 Unlink a file. More...
 
virtual sg_size_t getSize (surf_file_t fd)
 Get the size in bytes of the file. More...
 
virtual Actionread (surf_file_t fd, sg_size_t size)
 Read a file. More...
 
virtual Actionwrite (surf_file_t fd, sg_size_t size)
 Write a file. More...
 
virtual xbt_dynar_t getInfo (surf_file_t fd)
 Get the informations of a file descriptor. More...
 
virtual sg_size_t fileTell (surf_file_t fd)
 Get the current position of the file descriptor. More...
 
virtual int fileSeek (surf_file_t fd, sg_offset_t offset, int origin)
 Set the position indicator associated with the file descriptor to a new position. More...
 
virtual int fileMove (surf_file_t fd, const char *fullpath)
 Move a file to another location on the same mount point. More...
 
bool isUsed () override
 Check if the current Resource is used (if it currently serves an action) More...
 
void apply_event (tmgr_trace_iterator_t event, double value) override
 Apply an event of external load event to that resource. More...
 
xbt_dynar_t getVms ()
 Get the list of virtual machines on the current Host. More...
 
void getParams (vm_params_t params)
 Retrieve a copy of the parameters of that VM/PM. More...
 
void setParams (vm_params_t params)
 Sets the params of that VM/PM. More...
 
simgrid::s4u::Host * getHost ()
 
- Public Member Functions inherited from simgrid::surf::Resource
 Resource (Model *model, const char *name)
 Constructor of non-LMM Resources. More...
 
 Resource (Model *model, const char *name, lmm_constraint_t constraint)
 Constructor of LMM Resources. More...
 
virtual ~Resource ()
 
ModelgetModel () const
 Get the Model of the current Resource. More...
 
const char * getName () const
 Get the name of the current Resource. More...
 
bool operator== (const Resource &other) const
 
lmm_constraint_t getConstraint () const
 Get the lmm constraint associated to this Resource if it is part of a LMM component (or null if none) More...
 
- Public Member Functions inherited from simgrid::surf::PropertyHolder
 PropertyHolder (xbt_dict_t props)
 
 ~PropertyHolder ()
 
const char * getProperty (const char *id)
 Return the property associated to the provided key (or NULL if not existing) More...
 
void setProperty (const char *id, const char *value)
 Change the value of a given key in the property set. More...
 
xbt_dict_t getProperties ()
 Return the whole set of properties. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from simgrid::surf::HostImpl
static void classInit ()
 
- Public Attributes inherited from simgrid::surf::VirtualMachine
CpuActionaction_
 
boost::intrusive::list_member_hook vm_hook
 
- Public Attributes inherited from simgrid::surf::HostImpl
xbt_dynar_t p_storage
 
Cpup_cpu
 
simgrid::s4u::Host * p_host = nullptr
 
- Static Public Attributes inherited from simgrid::surf::HostImpl
static simgrid::xbt::Extension< simgrid::s4u::Host, HostImplEXTENSION_ID
 
- Protected Attributes inherited from simgrid::surf::VirtualMachine
simgrid::s4u::Host * hostPM_
 
e_surf_vm_state_t p_vm_state = SURF_VM_STATE_CREATED
 
- Protected Attributes inherited from simgrid::surf::Resource
lmm_constraint_t constraint_ = nullptr
 

Constructor & Destructor Documentation

simgrid::surf::VMHL13::VMHL13 ( VMModel model,
const char *  name,
sg_host_t  host_PM 
)
simgrid::surf::VMHL13::~VMHL13 ( )

Member Function Documentation

void simgrid::surf::VMHL13::suspend ( )
overridevirtual

Suspend the VM.

Implements simgrid::surf::VirtualMachine.

void simgrid::surf::VMHL13::resume ( )
overridevirtual

Resume the VM.

Implements simgrid::surf::VirtualMachine.

void simgrid::surf::VMHL13::save ( )
overridevirtual

Save the VM (Not yet implemented)

Implements simgrid::surf::VirtualMachine.

void simgrid::surf::VMHL13::restore ( )
overridevirtual

Restore the VM (Not yet implemented)

Implements simgrid::surf::VirtualMachine.

void simgrid::surf::VMHL13::migrate ( sg_host_t  dest_PM)
overridevirtual

Migrate the VM to the destination host.

Implements simgrid::surf::VirtualMachine.

void simgrid::surf::VMHL13::setBound ( double  bound)
overridevirtual
void simgrid::surf::VMHL13::setAffinity ( Cpu cpu,
unsigned long  mask 
)
overridevirtual

The documentation for this class was generated from the following files: