diff options
Diffstat (limited to 'cpp/src/IceGrid/AdapterRegistryI.h')
-rw-r--r-- | cpp/src/IceGrid/AdapterRegistryI.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/cpp/src/IceGrid/AdapterRegistryI.h b/cpp/src/IceGrid/AdapterRegistryI.h new file mode 100644 index 00000000000..b89b0d954c7 --- /dev/null +++ b/cpp/src/IceGrid/AdapterRegistryI.h @@ -0,0 +1,48 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2005 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +#ifndef ICE_GRID_ADAPTER_REGISTRY_I_H +#define ICE_GRID_ADAPTER_REGISTRY_I_H + +#include <IceGrid/Internal.h> +#include <IceGrid/StringObjectProxyDict.h> + +namespace IceGrid +{ + +class TraceLevels; +typedef IceUtil::Handle<TraceLevels> TraceLevelsPtr; + +class AdapterRegistryI : public AdapterRegistry +{ +public: + + AdapterRegistryI(const Ice::CommunicatorPtr&, const std::string&, const TraceLevelsPtr&); + + virtual void add(const std::string&, const AdapterPrx&, const ::Ice::Current&); + virtual AdapterPrx remove(const std::string&, const AdapterPrx&, const ::Ice::Current&); + + virtual AdapterPrx findById(const ::std::string&, const ::Ice::Current&); + virtual Ice::StringSeq getAll(const ::Ice::Current&) const; + +private: + + static const std::string _dbName; + + Freeze::ConnectionPtr _connectionCache; + StringObjectProxyDict _dictCache; + TraceLevelsPtr _traceLevels; + const std::string _envName; + const Ice::CommunicatorPtr _communicator; + +}; + +} + +#endif |