diff options
author | Benoit Foucher <benoit@zeroc.com> | 2014-07-10 14:16:59 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2014-07-10 14:16:59 +0200 |
commit | 9962c1c90ddb9a0986bb98f84f2d97685203fce0 (patch) | |
tree | fef7973a98850f43f7118f65b8e8b8586286d987 /cpp/src/IceGrid/WellKnownObjectsManager.cpp | |
parent | Fix background test. (diff) | |
download | ice-9962c1c90ddb9a0986bb98f84f2d97685203fce0.tar.bz2 ice-9962c1c90ddb9a0986bb98f84f2d97685203fce0.tar.xz ice-9962c1c90ddb9a0986bb98f84f2d97685203fce0.zip |
ICE-4612: first cut of the IceGrid discovery plugin and APIs
Diffstat (limited to 'cpp/src/IceGrid/WellKnownObjectsManager.cpp')
-rw-r--r-- | cpp/src/IceGrid/WellKnownObjectsManager.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cpp/src/IceGrid/WellKnownObjectsManager.cpp b/cpp/src/IceGrid/WellKnownObjectsManager.cpp index 44b57c5e0be..596f43644bb 100644 --- a/cpp/src/IceGrid/WellKnownObjectsManager.cpp +++ b/cpp/src/IceGrid/WellKnownObjectsManager.cpp @@ -120,3 +120,14 @@ WellKnownObjectsManager::getEndpoints(const string& name) Lock sync(*this); return _endpoints[name]; } + +LocatorPrx +WellKnownObjectsManager::getLocator() +{ + Lock sync(*this); + Ice::Identity id; + id.name = "Locator"; + id.category = _database->getInstanceName(); + Ice::ObjectPrx prx = _database->getReplicaCache().getEndpoints("Client", _endpoints["Client"]); + return LocatorPrx::uncheckedCast(prx->ice_identity(id)); +} |