Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / TAO / orbsvcs / FT_ReplicationManager / FT_DefaultFaultAnalyzer.h
blob36baa65335cf7ec66c60b54ba1960a1b847799a9
1 /* -*- C++ -*- */
2 //=============================================================================
3 /**
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"
20 #include <ace/ACE.h>
22 #if !defined (ACE_LACKS_PRAGMA_ONCE)
23 #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
31 namespace TAO
33 /**
34 * Default fault analyzer.
37 class TAO_ReplicationManagerLib_Export FT_DefaultFaultAnalyzer
38 : public ::TAO::FT_FaultAnalyzer
40 public:
41 /**
42 * Default constructor.
44 FT_DefaultFaultAnalyzer ();
46 /**
47 * Destructor.
49 virtual ~FT_DefaultFaultAnalyzer ();
51 public:
52 /**
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);
60 /**
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);
68 ////////////////////
69 // Forbidden methods
70 private:
71 /// Copy constructor.
72 FT_DefaultFaultAnalyzer (const FT_DefaultFaultAnalyzer & rhs);
73 /// Assignment operator.
74 FT_DefaultFaultAnalyzer & operator = (const FT_DefaultFaultAnalyzer & rhs);
76 } // namespace TAO
78 TAO_END_VERSIONED_NAMESPACE_DECL
80 #include /**/ "ace/post.h"
82 #endif /* FT_DEFAULT_FAULT_ANALYZER_H_ */