diff options
author | Benoit Foucher <benoit@zeroc.com> | 2006-10-18 13:52:25 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2006-10-18 13:52:25 +0000 |
commit | 27cb5b1e6cfa9e23de49f2287795b91e83a74ce2 (patch) | |
tree | f1417e8715d9d61dde6176c2c86c58b071486553 /cpp/src/IceGrid/LocatorI.cpp | |
parent | Changed STLPORT_HOME to USE_STLPORT (diff) | |
download | ice-27cb5b1e6cfa9e23de49f2287795b91e83a74ce2.tar.bz2 ice-27cb5b1e6cfa9e23de49f2287795b91e83a74ce2.tar.xz ice-27cb5b1e6cfa9e23de49f2287795b91e83a74ce2.zip |
Added IceGrid::Locator interface, more replication tests.
Diffstat (limited to 'cpp/src/IceGrid/LocatorI.cpp')
-rw-r--r-- | cpp/src/IceGrid/LocatorI.cpp | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/cpp/src/IceGrid/LocatorI.cpp b/cpp/src/IceGrid/LocatorI.cpp index d517cda134d..3070ac80917 100644 --- a/cpp/src/IceGrid/LocatorI.cpp +++ b/cpp/src/IceGrid/LocatorI.cpp @@ -303,10 +303,14 @@ LocatorI::Request::sendResponse() LocatorI::LocatorI(const Ice::CommunicatorPtr& communicator, const DatabasePtr& database, - const Ice::LocatorRegistryPrx& locatorRegistry) : + const Ice::LocatorRegistryPrx& locatorRegistry, + const RegistryPrx& registry, + const QueryPrx& query) : _communicator(communicator), _database(database), - _locatorRegistry(Ice::LocatorRegistryPrx::uncheckedCast(locatorRegistry->ice_collocationOptimized(false))) + _locatorRegistry(Ice::LocatorRegistryPrx::uncheckedCast(locatorRegistry->ice_collocationOptimized(false))), + _localRegistry(registry), + _localQuery(query) { } @@ -414,6 +418,18 @@ LocatorI::getRegistry(const Ice::Current&) const return _locatorRegistry; } +RegistryPrx +LocatorI::getLocalRegistry(const Ice::Current&) const +{ + return _localRegistry; +} + +QueryPrx +LocatorI::getLocalQuery(const Ice::Current&) const +{ + return _localQuery; +} + bool LocatorI::getDirectProxyRequest(const RequestPtr& request, const AdapterPrx& adapter) { |