|
SimGrid
3.16
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) | |
| virtual | ~HostImpl ()=default |
| virtual simgrid::surf::StorageImpl * | findStorageOnMountList (const char *storage) |
| Return the storage of corresponding mount point. More... | |
| virtual void | getAttachedStorageList (std::vector< const char *> *storages) |
| Get the xbt_dynar_t of storages attached to the Host. 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 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 | |
| std::map< std::string, simgrid::surf::StorageImpl * > | storage_ |
| simgrid::s4u::Host * | piface_ = nullptr |
|
explicit |
|
virtualdefault |
|
virtual |
Return the storage of corresponding mount point.
|
virtual |
Get the xbt_dynar_t of storages attached to the Host.
|
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 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 |
| std::map<std::string, simgrid::surf::StorageImpl*> simgrid::surf::HostImpl::storage_ |
| simgrid::s4u::Host* simgrid::surf::HostImpl::piface_ = nullptr |