diff options
author | Benoit Foucher <benoit@zeroc.com> | 2005-01-20 11:04:02 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2005-01-20 11:04:02 +0000 |
commit | 46bc9a1b8b086902e99eb5ae3d281dd2c6cd43ae (patch) | |
tree | 64b38c0ff3cf9496a49462cb56cc98464cab6be1 /cpp/src/IcePack/ApplicationRegistryI.cpp | |
parent | :changeLocator() (diff) | |
download | ice-46bc9a1b8b086902e99eb5ae3d281dd2c6cd43ae.tar.bz2 ice-46bc9a1b8b086902e99eb5ae3d281dd2c6cd43ae.tar.xz ice-46bc9a1b8b086902e99eb5ae3d281dd2c6cd43ae.zip |
Improved IcePack reliability.
Diffstat (limited to 'cpp/src/IcePack/ApplicationRegistryI.cpp')
-rw-r--r-- | cpp/src/IcePack/ApplicationRegistryI.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/cpp/src/IcePack/ApplicationRegistryI.cpp b/cpp/src/IcePack/ApplicationRegistryI.cpp index 3a7fa001038..98c6e44c5ed 100644 --- a/cpp/src/IcePack/ApplicationRegistryI.cpp +++ b/cpp/src/IcePack/ApplicationRegistryI.cpp @@ -14,23 +14,23 @@ using namespace std; using namespace IcePack; -IcePack::ApplicationRegistryI::ApplicationRegistryI(const Ice::CommunicatorPtr& communicator, - const ServerRegistryPtr& serverRegistry, - const string& envName, - const string& dbName, - const TraceLevelsPtr& traceLevels) : +const string ApplicationRegistryI::_dbName = "applicationregistry"; + +ApplicationRegistryI::ApplicationRegistryI(const Ice::CommunicatorPtr& communicator, + const ServerRegistryPtr& serverRegistry, + const string& envName, + const TraceLevelsPtr& traceLevels) : _serverRegistry(serverRegistry), _connectionCache(Freeze::createConnection(communicator, envName)), - _dictCache(_connectionCache, dbName), + _dictCache(_connectionCache, _dbName), _traceLevels(traceLevels), _envName(envName), - _communicator(communicator), - _dbName(dbName) + _communicator(communicator) { } void -IcePack::ApplicationRegistryI::add(const string& name, const Ice::Current&) +ApplicationRegistryI::add(const string& name, const Ice::Current&) { Freeze::ConnectionPtr connection = Freeze::createConnection(_communicator, _envName); StringStringSeqDict dict(connection, _dbName); @@ -51,7 +51,7 @@ IcePack::ApplicationRegistryI::add(const string& name, const Ice::Current&) } void -IcePack::ApplicationRegistryI::remove(const string& name, const Ice::Current&) +ApplicationRegistryI::remove(const string& name, const Ice::Current&) { Freeze::ConnectionPtr connection = Freeze::createConnection(_communicator, _envName); StringStringSeqDict dict(connection, _dbName); @@ -140,7 +140,7 @@ ApplicationRegistryI::getDescriptor(const string& name, const Ice::Current&) } Ice::StringSeq -IcePack::ApplicationRegistryI::getAll(const Ice::Current&) const +ApplicationRegistryI::getAll(const Ice::Current&) const { Freeze::ConnectionPtr connection = Freeze::createConnection(_communicator, _envName); StringStringSeqDict dict(connection, _dbName); |