summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/InstrumentationI.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2012-09-13 15:33:46 +0200
committerBenoit Foucher <benoit@zeroc.com>2012-09-13 15:33:46 +0200
commit0ed3e3fff565b80f84ec7e23d821fd30fac89b86 (patch)
treec9f4157f23727413b34d33f12f67e891879d3a77 /cpp/src/Ice/InstrumentationI.cpp
parentMerge remote-tracking branch 'origin/mx' into mx (diff)
downloadice-0ed3e3fff565b80f84ec7e23d821fd30fac89b86.tar.bz2
ice-0ed3e3fff565b80f84ec7e23d821fd30fac89b86.tar.xz
ice-0ed3e3fff565b80f84ec7e23d821fd30fac89b86.zip
Added Ice/metrics test
Diffstat (limited to 'cpp/src/Ice/InstrumentationI.cpp')
-rw-r--r--cpp/src/Ice/InstrumentationI.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/cpp/src/Ice/InstrumentationI.cpp b/cpp/src/Ice/InstrumentationI.cpp
index 139e304a673..718d132f053 100644
--- a/cpp/src/Ice/InstrumentationI.cpp
+++ b/cpp/src/Ice/InstrumentationI.cpp
@@ -257,6 +257,7 @@ public:
add("parent", &DispatchHelper::getParent);
add("id", &DispatchHelper::getId);
add("endpoint", &DispatchHelper::getEndpoint);
+ add("connection", &DispatchHelper::getConnection);
addConnectionAttributes<DispatchHelper>(*this);
@@ -333,6 +334,12 @@ public:
return _current.con->getEndpoint();
}
+ const ConnectionPtr&
+ getConnection() const
+ {
+ return _current.con;
+ }
+
const EndpointInfoPtr&
getEndpointInfo() const
{
@@ -656,7 +663,7 @@ public:
{
add("parent", &EndpointHelper::getParent);
add("id", &EndpointHelper::getId);
- add("endpoint", &EndpointHelper::getId);
+ add("endpoint", &EndpointHelper::getEndpoint);
addEndpointAttributes<EndpointHelper>(*this);
}
};
@@ -701,6 +708,12 @@ public:
return _id;
}
+ string
+ getEndpoint() const
+ {
+ return _endpoint->toString();
+ }
+
private:
const EndpointPtr _endpoint;