WRENCH
1.11
Cyberinfrastructure Simulation Workbench
|
Overview | Installation | Getting Started | WRENCH 101 | WRENCH 102 |
A base class for simulation timestamps regarding file copies. More...
#include <SimulationTimestampTypes.h>
Public Member Functions | |
std::shared_ptr< FileLocation > | getDestination () |
retrieves the location where the DataFile will be copied More... | |
SimulationTimestampFileCopy * | getEndpoint () override |
Retrieve the matching endpoint, if any. More... | |
std::shared_ptr< DataFile > | getFile () |
retrieves the DataFile being copied More... | |
std::shared_ptr< FileLocation > | getSource () |
retrieves the location from which the DataFile is being copied More... | |
Public Member Functions inherited from wrench::SimulationTimestampType | |
SimulationTimestampType () | |
double | getDate () |
Retrieve the date recorded for this timestamp. More... | |
Protected Member Functions | |
SimulationTimestampFileCopy (double date, std::shared_ptr< DataFile > file, std::shared_ptr< FileLocation > src, std::shared_ptr< FileLocation > dst) | |
Constructor. More... | |
void | setEndpoints () |
Sets the endpoint of the calling object (SimulationTimestampFileCopyFailure, SimulationTimestampFileCopyCompletion, SimulationTimestampFileCopyStart) with a SimulationTimestampFileCopyStart object. | |
Protected Attributes | |
std::shared_ptr< FileLocation > | destination |
The location where the DataFile was being copied to. | |
std::shared_ptr< DataFile > | file |
The DataFile that was being copied. | |
std::shared_ptr< FileLocation > | source |
The location where the DataFile was being copied from. | |
Protected Attributes inherited from wrench::SimulationTimestampPair | |
SimulationTimestampPair * | endpoint = 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< FileCopy, SimulationTimestampFileCopy * > | pending_file_copies |
the data structure that holds the ongoing file writes. More... | |
A base class for simulation timestamps regarding file copies.
|
protected |
Constructor.
date | the date |
file | the DataFile associated with this file copy |
src_location | the source location |
dst_location | the destination location |
std::shared_ptr< FileLocation > wrench::SimulationTimestampFileCopy::getDestination | ( | ) |
retrieves the location where the DataFile will be copied
|
overridevirtual |
Retrieve the matching endpoint, if any.
retrieves the corresponding SimulationTimestampFileCopy object
Reimplemented from wrench::SimulationTimestampPair.
std::shared_ptr< DataFile > wrench::SimulationTimestampFileCopy::getFile | ( | ) |
std::shared_ptr< FileLocation > wrench::SimulationTimestampFileCopy::getSource | ( | ) |
retrieves the location from which the DataFile is being copied
|
staticprotected |
the data structure that holds the ongoing file writes.
A static unordered multimap of SimulationTimestampFileCopyStart objects that have yet to be matched with Failure, Terminated or Completion timestamps.