diff options
author | Phil Mesnier <mesnierp@ociweb.com> | 2017-03-27 07:33:51 -0500 |
---|---|---|
committer | Phil Mesnier <mesnierp@ociweb.com> | 2017-03-27 07:33:51 -0500 |
commit | 43491d665f8552b9457c876d6e6af8ab42430266 (patch) | |
tree | 320741dd8345f399c508d52560295cc4ac72d7aa /TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Storable_Naming_Context_Factory.cpp | |
parent | 00b8e0b09187145be9535fa85cbab82877a61495 (diff) | |
download | ATCD-43491d665f8552b9457c876d6e6af8ab42430266.tar.gz |
Adding enhanced hot-standby feature to FT_Naming_Service based on code added to OCITAO 2.2a
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Storable_Naming_Context_Factory.cpp')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Storable_Naming_Context_Factory.cpp | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Storable_Naming_Context_Factory.cpp b/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Storable_Naming_Context_Factory.cpp index 3841f3ab41c..6ace5b91bf8 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Storable_Naming_Context_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Storable_Naming_Context_Factory.cpp @@ -1,21 +1,33 @@ + +#include /**/ "ace/pre.h" + #include "orbsvcs/Naming/FaultTolerant/FT_Storable_Naming_Context_Factory.h" #include "orbsvcs/Naming/FaultTolerant/FT_Storable_Naming_Context.h" TAO_BEGIN_VERSIONED_NAMESPACE_DECL /// Constructor. -TAO_FT_Storable_Naming_Context_Factory::TAO_FT_Storable_Naming_Context_Factory ( - size_t hash_table_size) - : TAO_Storable_Naming_Context_Factory (hash_table_size) +TAO_FT_Storable_Naming_Context_Factory:: +TAO_FT_Storable_Naming_Context_Factory (size_t hash_table_size, + TAO_FT_Naming_Replication_Manager *rep) + : TAO_Storable_Naming_Context_Factory (hash_table_size), + replicator_ (rep) { } -/// Destructor. Does not deallocate the hash map: if an instance of -/// this class goes out of scope, its hash_map remains in persistent storage. + /// Destructor. Does not deallocate the hash map: if an instance of + /// this class goes out of scope, its hash_map remains in persistent storage. TAO_FT_Storable_Naming_Context_Factory::~TAO_FT_Storable_Naming_Context_Factory (void) { } + +TAO_FT_Naming_Replication_Manager * +TAO_FT_Storable_Naming_Context_Factory::replicator () +{ + return this->replicator_; +} + TAO_Storable_Naming_Context* TAO_FT_Storable_Naming_Context_Factory::create_naming_context_impl ( CORBA::ORB_ptr orb, @@ -38,4 +50,5 @@ TAO_FT_Storable_Naming_Context_Factory::create_naming_context_impl ( return context_impl; } + TAO_END_VERSIONED_NAMESPACE_DECL |