wrench::SimpleStorageServiceNonBufferized

class SimpleStorageServiceNonBufferized : public wrench::SimpleStorageService

The non-bufferized (i.e., BUFFER_SIZE == 0) implementation.

Public Functions

int getNumRunningTransactionsOnDisk(simgrid::s4u::Disk *disk)

Returns the number of running transactions on a disk, as far as this storage service know.

Parameters:

disk – a disk

Returns:

a number of transactions

struct Transaction

Internal structure to describe transaction.

Public Functions

inline Transaction(std::shared_ptr<FileLocation> src_location, simgrid::s4u::Host *src_host, simgrid::s4u::Disk *src_disk, std::shared_ptr<FileLocation> dst_location, simgrid::s4u::Host *dst_host, simgrid::s4u::Disk *dst_disk, S4U_CommPort *commport, double transfer_size)

Constructor.

Parameters:
  • src_location – source location

  • src_host – source host

  • src_disk – source disk

  • dst_location – destination location

  • dst_host – destination host

  • dst_disk – destination disk

  • commport – commport to report to

  • transfer_size – transfer size

Public Members

S4U_CommPort *commport

commport_name to report to

simgrid::s4u::Disk *dst_disk

destination disk

simgrid::s4u::Host *dst_host

destination host

std::shared_ptr<FileLocation> dst_location

destination location

simgrid::s4u::Disk *src_disk

source disk

simgrid::s4u::Host *src_host

source host

std::shared_ptr<FileLocation> src_location

source location

simgrid::s4u::IoPtr stream

SG IO op.

double transfer_size

transfer size