diff options
Diffstat (limited to 'TAO/orbsvcs/tests/FT_App/StubFaultAnalyzer.h')
-rw-r--r-- | TAO/orbsvcs/tests/FT_App/StubFaultAnalyzer.h | 133 |
1 files changed, 0 insertions, 133 deletions
diff --git a/TAO/orbsvcs/tests/FT_App/StubFaultAnalyzer.h b/TAO/orbsvcs/tests/FT_App/StubFaultAnalyzer.h deleted file mode 100644 index 2a5067ad4a2..00000000000 --- a/TAO/orbsvcs/tests/FT_App/StubFaultAnalyzer.h +++ /dev/null @@ -1,133 +0,0 @@ -// -*- C++ -*- -// -// $Id$ -#ifndef STUBFAULTANALYZER_H -#define STUBFAULTANALYZER_H -#include /**/ <ace/pre.h> -#include <ace/ACE.h> - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -#pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -#include "StubFaultConsumer.h" -#include "StubBatchConsumer.h" -#include <orbsvcs/FT_NotifierC.h> -#include <orbsvcs/FT_FaultDetectorFactoryC.h> - -#include "ace/Vector_T.h" -#include "ace/SString.h" - -////////////////////// -// Forward references - -///////////////////// -// Class declarations - -/** - * A stub fault analyzer for use in unit testing. - */ -class StubFaultAnalyzer -{ -public: - /** - * Default constructor. - */ - StubFaultAnalyzer (); - - /** - * destructor. - */ - ~StubFaultAnalyzer (); - - /** - * Parse command line arguments. - */ - int parse_args (int argc, char * argv[]); - - /** - * Initialize this object - */ - int init (CORBA::ORB_ptr orb ACE_ENV_ARG_DECL); - - /** - * Return a string to identify this object for logging/console message purposes. - */ - const char * identity () const; - - /** - * idle time activity. - * @param result [out] status code to return from process - * @returns 0 to continue; nonzero to quit - */ - int idle(int &result ACE_ENV_ARG_DECL); - - /** - * Prepare to exit. - * @return zero for success; nonzero is process return code for failure. - */ - int fini (ACE_ENV_SINGLE_ARG_DECL); - - ///////////////// - // Implementation -private: - int readIORFile(const char * fileName, CORBA::String_var & ior); - - /////////////// - // Data Members -private: - /** - * The orb - */ - CORBA::ORB_var orb_; - - /** - * The POA used to activate this object. - */ - PortableServer::POA_var poa_; - - /** - * The CORBA object id assigned to this object. - */ - PortableServer::ObjectId_var objectId_; - - /** - * A human-readable string to distinguish this from other Notifiers. - */ - ACE_CString identity_; - - /** - * a file to write to to signal "ready" - */ - const char * readyFile_; - - /** - * The detecor's IOR (-d option) - */ - const char * detector_ior_; - - ::FT::FaultDetectorFactory_var factory_; - - /** - * The notifier's IOR (-n option) - */ - const char * notifier_ior_; - - ::FT::FaultNotifier_var notifier_; - - /** - * A collection of files containing replica IORs - */ - ACE_Vector < const char * > replicaIORs; - - ACE_Vector < FT::PullMonitorable_var > replicas_; - - - StubFaultConsumer faultConsumer_; - StubBatchConsumer batchConsumer_; - -}; - -#include /**/ <ace/post.h> - -#endif /* STUBFAULTANALYZER_H */ |