diff options
Diffstat (limited to 'java/test/Ice/metrics/RemoveObserverI.java')
-rw-r--r-- | java/test/Ice/metrics/RemoveObserverI.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/java/test/Ice/metrics/RemoveObserverI.java b/java/test/Ice/metrics/RemoveObserverI.java new file mode 100644 index 00000000000..82ecf2c9016 --- /dev/null +++ b/java/test/Ice/metrics/RemoveObserverI.java @@ -0,0 +1,29 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2013 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 test.Ice.metrics; + +class RemoteObserverI extends ObserverI implements Ice.Instrumentation.RemoteObserver +{ + public synchronized void + reset() + { + super.reset(); + replySize = 0; + } + + public synchronized void + reply(int s) + { + replySize += s; + } + + int replySize; +}; + |