wrench::DataMovementManagerFileReaderThreadMessage

class DataMovementManagerFileReaderThreadMessage : public wrench::DataMovementManagerMessage

A message sent to a DataMovementManager from a FileReaderThread.

Public Functions

DataMovementManagerFileReaderThreadMessage(std::shared_ptr<FileLocation> location, double num_bytes, bool success, std::shared_ptr<FailureCause> failure_cause)

Constructor.

Parameters:
  • location – a location

  • num_bytes – a number of bytes to read

  • success – true if success, false otherwise

  • failure_cause – a failure cause (nullptr is success if false)

Public Members

std::shared_ptr<FailureCause> failure_cause

The failure cause, if any.

std::shared_ptr<FileLocation> location

The read location.

double num_bytes

The number of bytes to read.

bool success

Whether the operation succeeded.