WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
wrench::SimulationTimestampDiskRead Class Reference

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

#include <SimulationTimestampTypes.h>

Inheritance diagram for wrench::SimulationTimestampDiskRead:
wrench::SimulationTimestampPair wrench::SimulationTimestampType wrench::SimulationTimestampDiskReadCompletion wrench::SimulationTimestampDiskReadFailure wrench::SimulationTimestampDiskReadStart

Public Member Functions

double getBytes ()
 retrieves the amount of bytes being read More...
 
int getCounter ()
 To get counter of disk operation. More...
 
SimulationTimestampDiskReadgetEndpoint () override
 Retrieve the matching endpoint, if any. More...
 
std::string getHostname ()
 retrieves the hostname where read occurs More...
 
std::string getMount ()
 retrieves mount point of read More...
 
- Public Member Functions inherited from wrench::SimulationTimestampPair
 SimulationTimestampPair ()
 Constructor.
 
 SimulationTimestampPair (double date, 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

 SimulationTimestampDiskRead (double date, std::string hostname, std::string mount, double bytes, int counter)
 Constructor. More...
 
void setEndpoints ()
 Sets the endpoint of the calling object (SimulationTimestampDiskReadFailure, SimulationTimestampDiskReadTerminated, SimulationTimestampDiskReadStart) with a SimulationTimestampDiskReadStart object.
 

Protected Attributes

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

Static Protected Attributes

static std::unordered_multimap< DiskAccess, SimulationTimestampDiskRead * > pending_disk_reads
 the data structure that holds the ongoing disk reads. More...
 

Detailed Description

A base class for simulation timestamps regarding disk reads.

Constructor & Destructor Documentation

◆ SimulationTimestampDiskRead()

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

Constructor.

Parameters
datethe date
hostnamehostname being read from
mountmountpoint of disk
bytesnumber of bytes read
counterAn integer ID

Member Function Documentation

◆ getBytes()

double wrench::SimulationTimestampDiskRead::getBytes ( )

retrieves the amount of bytes being read

Returns
number of bytes as double

◆ getCounter()

int wrench::SimulationTimestampDiskRead::getCounter ( )

To get counter of disk operation.

Returns
int of counter

◆ getEndpoint()

SimulationTimestampDiskRead * wrench::SimulationTimestampDiskRead::getEndpoint ( )
overridevirtual

Retrieve the matching endpoint, if any.

retrieves the corresponding SimulationTimestampDiskRead object

Returns
a pointer to the start or end SimulationTimestampDiskRead object

Reimplemented from wrench::SimulationTimestampPair.

◆ getHostname()

std::string wrench::SimulationTimestampDiskRead::getHostname ( )

retrieves the hostname where read occurs

Returns
string of hostname

◆ getMount()

std::string wrench::SimulationTimestampDiskRead::getMount ( )

retrieves mount point of read

Returns
string of mount point

Member Data Documentation

◆ pending_disk_reads

std::unordered_multimap< DiskAccess, SimulationTimestampDiskRead * > wrench::SimulationTimestampDiskRead::pending_disk_reads
staticprotected

the data structure that holds the ongoing disk reads.

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


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