|
| VirtualMachine (simgrid::surf::HostModel *model, const char *name, simgrid::s4u::Host *host) |
|
| ~VirtualMachine () |
|
virtual void | suspend ()=0 |
| Suspend the VM. More...
|
|
virtual void | resume ()=0 |
| Resume the VM. More...
|
|
virtual void | save ()=0 |
| Save the VM (Not yet implemented) More...
|
|
virtual void | restore ()=0 |
| Restore the VM (Not yet implemented) More...
|
|
virtual void | migrate (sg_host_t dest_PM)=0 |
| Migrate the VM to the destination host. More...
|
|
sg_host_t | getPm () |
| Get the physical machine hosting the VM. More...
|
|
virtual void | setBound (double bound)=0 |
|
virtual void | setAffinity (Cpu *cpu, unsigned long mask)=0 |
|
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) |
|
| 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...
|
|
HostModel * | getModel () |
|
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::Storage * | findStorageOnMountList (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 Action * | open (const char *fullpath) |
| Open a file. More...
|
|
virtual Action * | close (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 Action * | read (surf_file_t fd, sg_size_t size) |
| Read a file. More...
|
|
virtual Action * | write (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 () |
|
| 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 () |
|
Model * | getModel () 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...
|
|
| 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...
|
|
SURF VM interface class.
A VM represent a virtual machine