|
SimGrid
3.14.159
Versatile Simulation of Distributed Systems
|
SURF Host interface class.
An host represents a machine with a aggregation of a Cpu, a RoutingEdge and a Storage
#include <HostImpl.hpp>
Public Member Functions | |
| HostImpl (s4u::Host *host, xbt_dynar_t storage) | |
| virtual | ~HostImpl () |
| use destroy() instead of this destructor 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 information 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... | |
| simgrid::s4u::Host * | getHost () |
Public Member Functions inherited from simgrid::surf::PropertyHolder | |
| PropertyHolder () | |
| ~PropertyHolder () | |
| const char * | getProperty (const char *id) |
| Return the property associated to the provided key (or nullptr 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... | |
Public Attributes | |
| xbt_dynar_t | storage_ = nullptr |
| simgrid::s4u::Host * | piface_ = nullptr |
| simgrid::surf::HostImpl::HostImpl | ( | s4u::Host * | host, |
| xbt_dynar_t | storage | ||
| ) |
|
virtualdefault |
use destroy() instead of this destructor
|
virtual |
Return the storage of corresponding mount point.
|
virtual |
Get the xbt_dict_t of mount_point: Storage.
|
virtual |
Get the xbt_dynar_t of storages attached to the Host.
|
virtual |
Open a file.
| fullpath | The full path to the file |
|
virtual |
Close a file.
| fd | The file descriptor to close |
|
virtual |
Unlink a file.
[long description]
| fd | [description] |
|
virtual |
Get the size in bytes of the file.
| fd | The file descriptor to read |
|
virtual |
Read a file.
| fd | The file descriptor to read |
| size | The size in bytes to read |
|
virtual |
Write a file.
| fd | The file descriptor to write |
| size | The size in bytes to write |
|
virtual |
Get the information of a file descriptor.
The returned xbt_dynar_t contains:
| fd | The file descriptor |
|
virtual |
Get the current position of the file descriptor.
| fd | The file descriptor |
|
virtual |
Set the position indicator associated with the file descriptor to a new position.
[long description]
| fd | The file descriptor |
| offset | The offset from the origin |
| origin | Position used as a reference for the offset
|
|
virtual |
Move a file to another location on the same mount point.
[long description]
| fd | The file descriptor |
| fullpath | The new full path |
|
inline |
| xbt_dynar_t simgrid::surf::HostImpl::storage_ = nullptr |
| simgrid::s4u::Host* simgrid::surf::HostImpl::piface_ = nullptr |