A base class for simulation timestamps regarding disk writes. More...

#include <SimulationTimestampTypes.h>

Inheritance diagram for wrench::SimulationTimestampDiskWrite:
wrench::SimulationTimestampPair wrench::SimulationTimestampType wrench::SimulationTimestampDiskWriteCompletion wrench::SimulationTimestampDiskWriteFailure wrench::SimulationTimestampDiskWriteStart

Public Member Functions

double getBytes ()
 retrieves the amount of bytes being written More...
 
int getCounter ()
 retrieves the counter for this disk operation More...
 
SimulationTimestampDiskWritegetEndpoint () override
 Retrieve the matching endpoint, if any. More...
 
std::string getHostname ()
 retrieves the hostname where write occurs More...
 
std::string getMount ()
 retrieves mount point of write More...
 
- Public Member Functions inherited from wrench::SimulationTimestampPair
 SimulationTimestampPair ()
 Constructor.
 
 SimulationTimestampPair (SimulationTimestampPair *endpoint)
 Constructor. More...
 
- Public Member Functions inherited from wrench::SimulationTimestampType
 SimulationTimestampType ()
 
More...
 
double getDate ()
 Retrieve the date recorded for this timestamp. More...
 

Protected Member Functions

 SimulationTimestampDiskWrite (std::string hostname, std::string mount, double bytes, int counter)
 Constructor. More...
 
void setEndpoints ()
 Sets the endpoint of the calling object (SimulationTimestampDiskWriteFailure, SimulationTimestampDiskWriteTerminated, SimulationTimestampDiskWriteStart) with a SimulationTimestampDiskWriteStart object.
 

Protected Attributes

double bytes
 amount of bytes being written
 
int counter
 counter to differentiate writes
 
std::string hostname
 hostname of disk being written to
 
std::string mount
 mount point of disk being written to
 
- Protected Attributes inherited from wrench::SimulationTimestampPair
SimulationTimestampPairendpoint = nullptr
 An optional associated "endpoint" simulation timestamp.
 

Static Protected Attributes

static std::unordered_multimap< DiskAccess, SimulationTimestampDiskWrite * > pending_disk_writes
 the data structure that holds the ongoing disk writes. More...
 

Detailed Description

A base class for simulation timestamps regarding disk writes.

Constructor & Destructor Documentation

◆ SimulationTimestampDiskWrite()

wrench::SimulationTimestampDiskWrite::SimulationTimestampDiskWrite ( std::string  hostname,
std::string  mount,
double  bytes,
int  counter 
)
protected

Constructor.

Parameters
hostnamehostname being write from
mountmountpoint of disk
bytesnumber of bytes written
counteran integer ID

Member Function Documentation

◆ getBytes()

double wrench::SimulationTimestampDiskWrite::getBytes ( )

retrieves the amount of bytes being written

Returns
number of bytes as double

◆ getCounter()

int wrench::SimulationTimestampDiskWrite::getCounter ( )

retrieves the counter for this disk operation

Returns
int of counter

◆ getEndpoint()

SimulationTimestampDiskWrite * wrench::SimulationTimestampDiskWrite::getEndpoint ( )
overridevirtual

Retrieve the matching endpoint, if any.

retrieves the corresponding SimulationTimestampDiskWrite object

Returns
a pointer to the start or end SimulationTimestampDiskWrite object

Reimplemented from wrench::SimulationTimestampPair.

◆ getHostname()

std::string wrench::SimulationTimestampDiskWrite::getHostname ( )

retrieves the hostname where write occurs

Returns
string of hostname

◆ getMount()

std::string wrench::SimulationTimestampDiskWrite::getMount ( )

retrieves mount point of write

Returns
string of mount point

Member Data Documentation

◆ pending_disk_writes

std::unordered_multimap< DiskAccess, SimulationTimestampDiskWrite * > wrench::SimulationTimestampDiskWrite::pending_disk_writes
staticprotected

the data structure that holds the ongoing disk writes.

A static unordered multimap of SimulationTimestampDiskWriteStart objects that have yet to be matched with Failure, Terminated or Completion timestamps.


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