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
35 * Default fault analyzer.
38 class TAO_ReplicationManagerLib_Export FT_DefaultFaultAnalyzer
39 : public ::TAO::FT_FaultAnalyzer
44 * Default constructor.
46 FT_DefaultFaultAnalyzer ();
51 virtual ~FT_DefaultFaultAnalyzer ();
56 * Validate event type to make sure it is one we can handle.
57 * @param event The structured fault event, as from the Fault Notifier.
58 * @return 0 if it is a valid event type, -1 otherwise.
60 virtual int validate_event_type (
61 const CosNotification::StructuredEvent
& event
);
64 * Analyze a fault event.
65 * @param event The structured fault event, as from the Fault Notifier.
66 * @return 0 on success, -1 on failure.
68 virtual int analyze_fault_event (
69 const CosNotification::StructuredEvent
& event
);
75 FT_DefaultFaultAnalyzer (const FT_DefaultFaultAnalyzer
& rhs
);
76 /// Assignment operator.
77 FT_DefaultFaultAnalyzer
& operator = (const FT_DefaultFaultAnalyzer
& rhs
);
83 TAO_END_VERSIONED_NAMESPACE_DECL
85 #include /**/ "ace/post.h"
87 #endif /* FT_DEFAULT_FAULT_ANALYZER_H_ */