A base class for simulation timestamps regarding file reads. More...
#include <SimulationTimestampTypes.h>
Public Member Functions | |
SimulationTimestampFileRead * | getEndpoint () override |
Retrieve the matching endpoint, if any. More... | |
WorkflowFile * | getFile () |
retrieves the WorkflowFile being read More... | |
StorageService * | getService () |
retrieves the storage service for file read More... | |
FileLocation * | getSource () |
retrieves the location from which the WorkflowFile is being copied More... | |
WorkflowTask * | getTask () |
retrieves task associated w/ file read More... | |
Public Member Functions inherited from wrench::SimulationTimestampPair | |
SimulationTimestampPair () | |
Constructor. | |
SimulationTimestampPair (SimulationTimestampPair *endpoint) | |
Constructor. More... | |
Public Member Functions inherited from wrench::SimulationTimestampType | |
SimulationTimestampType () | |
double | getDate () |
Retrieve the date recorded for this timestamp. More... | |
Protected Member Functions | |
SimulationTimestampFileRead (WorkflowFile *file, FileLocation *src, StorageService *service, WorkflowTask *task=nullptr) | |
Constructor. More... | |
void | setEndpoints () |
Sets the endpoint of the calling object (SimulationTimestampFileReadFailure, SimulationTimestampFileReadTerminated, SimulationTimestampFileReadStart) with a SimulationTimestampFileReadStart object. | |
Protected Attributes | |
WorkflowFile * | file |
The WorkflowFile that was being read. | |
StorageService * | service |
Service that initiated the read. | |
FileLocation * | source |
The location where the WorkflowFile was being read from. | |
WorkflowTask * | task |
Task tied to read. | |
Protected Attributes inherited from wrench::SimulationTimestampPair | |
SimulationTimestampPair * | endpoint = nullptr |
An optional associated "endpoint" simulation timestamp. | |
Static Protected Attributes | |
static std::unordered_multimap< File, std::pair< SimulationTimestampFileRead *, WorkflowTask * > > | pending_file_reads |
the data structure that holds the ongoing file reads. More... | |
Detailed Description
A base class for simulation timestamps regarding file reads.
Constructor & Destructor Documentation
◆ SimulationTimestampFileRead()
|
protected |
Constructor.
- Parameters
-
file the WorkflowFile associated with this file read src_location the source location service service requesting file read task a task associated to this file read (or nullptr)
Member Function Documentation
◆ getEndpoint()
|
overridevirtual |
Retrieve the matching endpoint, if any.
retrieves the corresponding SimulationTimestampFileRead object
- Returns
- a pointer to the start or end SimulationTimestampFileRead object
Reimplemented from wrench::SimulationTimestampPair.
◆ getFile()
WorkflowFile * wrench::SimulationTimestampFileRead::getFile | ( | ) |
retrieves the WorkflowFile being read
- Returns
- a pointer to the WorkflowFile associated with this reads
◆ getService()
StorageService * wrench::SimulationTimestampFileRead::getService | ( | ) |
retrieves the storage service for file read
- Returns
- point to the service associated with this read
◆ getSource()
FileLocation * wrench::SimulationTimestampFileRead::getSource | ( | ) |
retrieves the location from which the WorkflowFile is being copied
- Returns
- the read's source location
◆ getTask()
WorkflowTask * wrench::SimulationTimestampFileRead::getTask | ( | ) |
retrieves task associated w/ file read
- Returns
- a pointer to the WorkflowTask associated with this timestamp
Member Data Documentation
◆ pending_file_reads
|
staticprotected |
the data structure that holds the ongoing file reads.
A static unordered multimap of SimulationTimestampFileReadStart objects that have yet to be matched with Failure, Terminated or Completion timestamps.
static std::unordered_multimap<File, std::pair<SimulationTimestampFileRead *, double>, decltype(&file_hash)> pending_file_reads;
The documentation for this class was generated from the following files:
- SimulationTimestampTypes.h
- SimulationTimestampTypes.cpp