blob: 814162e66625114a28a662717ff5d1b29acacba7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
/* -*- C++ -*- */
//=============================================================================
/**
* @file FT_FaultAnalyzer.h
*
* $Id$
*
* This file is part of TAO's implementation of Fault Tolerant CORBA.
*
* @author Steve Totten <totten_s@ociweb.com>
*/
//=============================================================================
#ifndef FT_FAULT_ANALYZER_H_
#define FT_FAULT_ANALYZER_H_
#include /**/ "ace/pre.h"
#include <ace/ACE.h>
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "FT_ReplicationManagerLib_export.h"
#include "orbsvcs/CosNotifyCommC.h"
namespace TAO
{
/**
* Abstract base class for application-defined fault analyzers.
*
*/
class TAO_ReplicationManagerLib_Export FT_FaultAnalyzer
{
public:
/**
* Default constructor.
*/
FT_FaultAnalyzer ();
/**
* Destructor.
*/
virtual ~FT_FaultAnalyzer ();
public:
/**
* Validate event type to make sure it is one we can handle.
* @param event The structured fault event, as from the Fault Notifier.
* @return 0 if it is a valid event type, -1 otherwise.
*/
virtual int validate_event_type (
const CosNotification::StructuredEvent & event) = 0;
/**
* Analyze a fault event.
* @param event The structured fault event, as from the Fault Notifier.
* @return 0 on success, -1 on failure.
*/
virtual int analyze_fault_event (
const CosNotification::StructuredEvent & event) = 0;
////////////////////
// Forbidden methods
private:
/// Copy constructor.
FT_FaultAnalyzer (const FT_FaultAnalyzer & rhs);
/// Assignment operator.
FT_FaultAnalyzer & operator = (const FT_FaultAnalyzer & rhs);
///////////////
// Data Members
private:
};
} // namespace TAO
#include /**/ "ace/post.h"
#endif /* FT_FAULT_ANALYZER_H_ */
|