2 //=============================================================================
4 * @file FT_DefaultFaultAnalyzer.h
6 * This file is part of TAO's implementation of Fault Tolerant CORBA.
7 * This is the default implementation of a fault analyzer that
8 * implements the interface of the abstract base class
9 * TAO::FT_FaultAnalyzer.
11 * @author Steve Totten <totten_s@ociweb.com>
13 //=============================================================================
16 #ifndef FT_DEFAULT_FAULT_ANALYZER_H_
17 #define FT_DEFAULT_FAULT_ANALYZER_H_
19 #include /**/ "ace/pre.h"
22 #if !defined (ACE_LACKS_PRAGMA_ONCE)
24 #endif /* ACE_LACKS_PRAGMA_ONCE */
26 #include "FT_ReplicationManagerLib_export.h"
27 #include "FT_FaultAnalyzer.h"
29 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
34 * Default fault analyzer.
37 class TAO_ReplicationManagerLib_Export FT_DefaultFaultAnalyzer
38 : public ::TAO::FT_FaultAnalyzer
42 * Default constructor.
44 FT_DefaultFaultAnalyzer ();
49 virtual ~FT_DefaultFaultAnalyzer ();
53 * Validate event type to make sure it is one we can handle.
54 * @param event The structured fault event, as from the Fault Notifier.
55 * @return 0 if it is a valid event type, -1 otherwise.
57 virtual int validate_event_type (
58 const CosNotification::StructuredEvent
& event
);
61 * Analyze a fault event.
62 * @param event The structured fault event, as from the Fault Notifier.
63 * @return 0 on success, -1 on failure.
65 virtual int analyze_fault_event (
66 const CosNotification::StructuredEvent
& event
);
72 FT_DefaultFaultAnalyzer (const FT_DefaultFaultAnalyzer
& rhs
);
73 /// Assignment operator.
74 FT_DefaultFaultAnalyzer
& operator = (const FT_DefaultFaultAnalyzer
& rhs
);
78 TAO_END_VERSIONED_NAMESPACE_DECL
80 #include /**/ "ace/post.h"
82 #endif /* FT_DEFAULT_FAULT_ANALYZER_H_ */