2016-06-15 23:48:41 +02:00
|
|
|
#ifndef FRAMEWORK_DEVICEHANDLERS_CHILDHANDLERFDIR_H_
|
|
|
|
#define FRAMEWORK_DEVICEHANDLERS_CHILDHANDLERFDIR_H_
|
|
|
|
|
2020-08-13 20:53:35 +02:00
|
|
|
#include "DeviceHandlerFailureIsolation.h"
|
2016-06-15 23:48:41 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Very simple extension to normal FDIR.
|
|
|
|
* Does not have a default fault tree parent and
|
|
|
|
* allows to make the recovery count settable to 0.
|
|
|
|
*/
|
2018-07-12 16:29:32 +02:00
|
|
|
class ChildHandlerFDIR: public DeviceHandlerFailureIsolation {
|
2016-06-15 23:48:41 +02:00
|
|
|
public:
|
|
|
|
ChildHandlerFDIR(object_id_t owner, object_id_t faultTreeParent =
|
|
|
|
NO_FAULT_TREE_PARENT, uint32_t recoveryCount = 0);
|
2018-07-12 16:29:32 +02:00
|
|
|
virtual ~ChildHandlerFDIR();
|
2016-06-15 23:48:41 +02:00
|
|
|
protected:
|
|
|
|
static const object_id_t NO_FAULT_TREE_PARENT = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* FRAMEWORK_DEVICEHANDLERS_CHILDHANDLERFDIR_H_ */
|