From ac587d9f1a6d34e46956fd17c81f99beb7ed97ad Mon Sep 17 00:00:00 2001 From: Bernard Normier Date: Wed, 10 Sep 2014 19:09:53 +0000 Subject: IceGrid::Admin now provides remote access to IceGrid registry and node Admin objects, and icegridadmin uses these new operations to show the Ice log file for IceGrid registries and IceGrid nodes (ICE-2400) --- cpp/src/IceGrid/ReplicaCache.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cpp/src/IceGrid/ReplicaCache.cpp') diff --git a/cpp/src/IceGrid/ReplicaCache.cpp b/cpp/src/IceGrid/ReplicaCache.cpp index 269dffb1d24..f0a22e58d06 100644 --- a/cpp/src/IceGrid/ReplicaCache.cpp +++ b/cpp/src/IceGrid/ReplicaCache.cpp @@ -279,3 +279,13 @@ ReplicaEntry::getProxy() const return _session->getInternalRegistry(); } +Ice::ObjectPrx +ReplicaEntry::getAdminProxy() const +{ + Ice::ObjectPrx prx = getProxy(); + assert(prx); + Ice::Identity adminId; + adminId.name = "RegistryAdmin-" + _name; + adminId.category = prx->ice_getIdentity().category; + return prx->ice_identity(adminId); +} -- cgit v1.2.3