WRENCH
1.11
Cyberinfrastructure Simulation Workbench
Overview
Installation
Getting Started
WRENCH 101
WRENCH 102
APIs Reference
User
Developer
Internal
include
wrench
failure_causes
FunctionalityNotAvailable.h
1
10
#ifndef WRENCH_FUNCTIONALITY_NOT_AVAILABLE_H
11
#define WRENCH_FUNCTIONALITY_NOT_AVAILABLE_H
12
13
#include <set>
14
#include <string>
15
16
#include "FailureCause.h"
17
#include "wrench/services/storage/StorageService.h"
18
#include "wrench/services/compute/ComputeService.h"
19
20
namespace
wrench
{
21
22
class
Service;
23
24
/***********************/
26
/***********************/
27
28
32
class
FunctionalityNotAvailable :
public
FailureCause {
33
public
:
34
/***********************/
36
/***********************/
37
FunctionalityNotAvailable(std::shared_ptr<Service> service, std::string functionality_name);
38
/***********************/
40
/***********************/
41
42
std::shared_ptr<Service> getService();
43
std::string
getFunctionalityName
();
44
std::string
toString
()
override
;
45
46
private
:
47
std::shared_ptr<Service> service;
48
std::string functionality_name;
49
};
50
51
52
/***********************/
54
/***********************/
55
};
56
57
58
#endif //WRENCH_FUNCTIONALITY_NOT_AVAILABLE_H
wrench::toString
std::string toString() override
Return an error message that describes the failure cause (to be overridden)
Definition:
ComputeThreadHasDied.cpp:29
wrench
Definition:
Action.cpp:28
wrench::getFunctionalityName
std::string getFunctionalityName()
Getter.
Definition:
FunctionalityNotAvailable.cpp:44