WRENCH
1.11
Cyberinfrastructure Simulation Workbench
Overview
Installation
Getting Started
WRENCH 101
WRENCH 102
APIs Reference
User
Developer
Internal
include
wrench
failure_causes
FileAlreadyBeingCopied.h
1
10
#ifndef WRENCH_FILE_ALREADY_BEING_COPIED_H
11
#define WRENCH_FILE_ALREADY_BEING_COPIED_H
12
13
#include <set>
14
#include <string>
15
16
#include "FailureCause.h"
17
18
namespace
wrench
{
19
20
class
DataFile;
21
class
FileLocation;
22
23
/***********************/
25
/***********************/
26
27
class
FileLocation;
28
32
class
FileAlreadyBeingCopied
:
public
FailureCause
{
33
34
35
public
:
36
/***********************/
38
/***********************/
39
FileAlreadyBeingCopied
(std::shared_ptr<DataFile>file,
40
std::shared_ptr<FileLocation> src,
41
std::shared_ptr<FileLocation> dst);
42
/***********************/
44
/***********************/
45
46
std::shared_ptr<DataFile>
getFile
();
47
std::shared_ptr<FileLocation>
getSourceLocation
();
48
std::shared_ptr<FileLocation>
getDestinationLocation
();
49
std::string
toString
()
override
;
50
51
private
:
52
std::shared_ptr<DataFile>file;
53
std::shared_ptr<FileLocation> src_location;
54
std::shared_ptr<FileLocation> dst_location;
55
};
56
57
58
/***********************/
60
/***********************/
61
};
62
63
64
#endif //WRENCH_FILE_ALREADY_BEING_COPIED_H
wrench::FileAlreadyBeingCopied
A "file is already being copied" failure cause.
Definition:
FileAlreadyBeingCopied.h:32
wrench::FileAlreadyBeingCopied::getFile
std::shared_ptr< DataFile > getFile()
Getter.
Definition:
FileAlreadyBeingCopied.cpp:38
wrench::FileAlreadyBeingCopied::getSourceLocation
std::shared_ptr< FileLocation > getSourceLocation()
Getter.
Definition:
FileAlreadyBeingCopied.cpp:46
wrench
Definition:
Action.cpp:28
wrench::FileAlreadyBeingCopied::toString
std::string toString() override
Get the human-readable failure message.
Definition:
FileAlreadyBeingCopied.cpp:62
wrench::FailureCause
A top-level class to describe all simulation-valid failures that can occur during workflow execution ...
Definition:
FailureCause.h:31
wrench::FileAlreadyBeingCopied::getDestinationLocation
std::shared_ptr< FileLocation > getDestinationLocation()
Getter.
Definition:
FileAlreadyBeingCopied.cpp:54