summaryrefslogtreecommitdiff
path: root/java/src
diff options
context:
space:
mode:
Diffstat (limited to 'java/src')
-rw-r--r--java/src/IceInternal/RemoteObserverI.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/java/src/IceInternal/RemoteObserverI.java b/java/src/IceInternal/RemoteObserverI.java
new file mode 100644
index 00000000000..ae56064bc86
--- /dev/null
+++ b/java/src/IceInternal/RemoteObserverI.java
@@ -0,0 +1,27 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2012 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+package IceInternal;
+
+public class RemoteObserverI extends IceMX.Observer<IceMX.RemoteMetrics>
+ implements Ice.Instrumentation.RemoteObserver
+{
+ public void
+ reply(final int size)
+ {
+ forEach(new MetricsUpdate<IceMX.RemoteMetrics>()
+ {
+ public void
+ update(IceMX.RemoteMetrics v)
+ {
+ v.replySize += size;
+ }
+ });
+ }
+} \ No newline at end of file