WRENCH
1.11
Cyberinfrastructure Simulation Workbench
Overview
Installation
Getting Started
WRENCH 101
WRENCH 102
APIs Reference
User
Developer
Internal
include
wrench
failure_causes
ServiceIsSuspended.h
1
10
#ifndef WRENCH_SERVICE_IS_SUSPENDED_H
11
#define WRENCH_SERVICE_IS_SUSPENDED_H
12
13
#include <set>
14
#include <string>
15
16
#include "wrench/services/Service.h"
17
#include "FailureCause.h"
18
19
namespace
wrench
{
20
21
class
Service;
22
23
/***********************/
25
/***********************/
26
30
class
ServiceIsSuspended :
public
FailureCause {
31
public
:
32
/***********************/
34
/***********************/
35
explicit
ServiceIsSuspended(std::shared_ptr<Service> service);
36
/***********************/
38
/***********************/
39
40
std::shared_ptr<Service> getService();
41
std::string
toString
()
override
;
42
43
private
:
44
std::shared_ptr<Service> service;
45
};
46
47
48
/***********************/
50
/***********************/
51
};
52
53
54
#endif //WRENCH_SERVICE_IS_SUSPENDED_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