3 //==========================================================================
5 * @file FT_Naming_Service.h
7 * This class provides an override for the Naming_Service class factory
8 * method: create_naming_server ()
10 * @author Kevin Stanley <stanleyk@ociweb.com>
12 //==========================================================================
15 #ifndef TAO_FT_NAMING_SERVICE_H
16 #define TAO_FT_NAMING_SERVICE_H
19 #include "orbsvcs/Naming/FaultTolerant/FT_Naming_Server.h"
23 * @class TAO_FT_Naming_Service
25 * @brief Defines a class that encapsulates the implementation of the
26 * Fault Tolerant Naming Service.
28 class TAO_FT_Naming_Service
31 /// Default Constructor.
32 TAO_FT_Naming_Service ();
34 /// Constructor taking the command-line arguments.
35 TAO_FT_Naming_Service (int argc
, ACE_TCHAR
* argv
[]);
37 /// Initialize the Naming Service with the arguments.
38 virtual int init (int argc
, ACE_TCHAR
* argv
[]);
40 /// The opposite of init().
43 /// Run the TAO_Naming_Service.
46 /// Shut down the TAO_Naming_Service; you must still call fini().
47 virtual void shutdown ();
50 virtual ~TAO_FT_Naming_Service ();
53 /// Parse the command line arguments to find
54 /// the timeout period.
55 int parse_args (int &argc
, ACE_TCHAR
* argv
[]);
60 /// Naming Server instance.
61 TAO_FT_Naming_Server my_naming_server_
;
63 /// After how long the server should stop listening to requests (in
67 /// Number of threads for running the ORB. Default is 1
71 #endif /* TAO_FT_NAMING_SERVICE_H */