wrench::StorageServiceNotEnoughSpace

class StorageServiceNotEnoughSpace : public wrench::FailureCause

A “not enough space on storage service” failure cause.

Public Functions

StorageServiceNotEnoughSpace(std::shared_ptr<DataFile> file, std::shared_ptr<StorageService> storage_service)

Constructor.

Parameters:
  • file – the file that could not be written

  • storage_service – the storage service that ran out of space

std::shared_ptr<DataFile> getFile()

Getter.

Returns:

the file

std::shared_ptr<StorageService> getStorageService()

Getter.

Returns:

the storage service

virtual std::string toString() override

Get the human-readable failure message.

Returns:

the message