diff options
author | Benoit Foucher <benoit@zeroc.com> | 2014-07-01 17:42:04 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2014-07-01 17:42:04 +0200 |
commit | 344a7fd6e0d716f81dc27495e97a7ad9c2ab07b8 (patch) | |
tree | bd06f4919e5a5827f60e2a536e43e47a4fbed6d2 /java/test/Ice/metrics/InvocationObserverI.java | |
parent | Fixed ICE-5569: IceStorm IceMX debug iterator assert (diff) | |
download | ice-344a7fd6e0d716f81dc27495e97a7ad9c2ab07b8.tar.bz2 ice-344a7fd6e0d716f81dc27495e97a7ad9c2ab07b8.tar.xz ice-344a7fd6e0d716f81dc27495e97a7ad9c2ab07b8.zip |
IceMX and Python support for the new collocation optimization
Diffstat (limited to 'java/test/Ice/metrics/InvocationObserverI.java')
-rw-r--r-- | java/test/Ice/metrics/InvocationObserverI.java | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/java/test/Ice/metrics/InvocationObserverI.java b/java/test/Ice/metrics/InvocationObserverI.java index 2eee2947704..5457f85aff0 100644 --- a/java/test/Ice/metrics/InvocationObserverI.java +++ b/java/test/Ice/metrics/InvocationObserverI.java @@ -21,6 +21,10 @@ class InvocationObserverI extends ObserverI implements Ice.Instrumentation.Invoc { remoteObserver.reset(); } + if(collocatedObserver != null) + { + collocatedObserver.reset(); + } } public synchronized void @@ -46,19 +50,21 @@ class InvocationObserverI extends ObserverI implements Ice.Instrumentation.Invoc return remoteObserver; } - public synchronized Ice.Instrumentation.RemoteObserver - getCollocatedObserver(int a, int b) + + public synchronized Ice.Instrumentation.CollocatedObserver + getCollocatedObserver(Ice.ObjectAdapter adapter, int a, int b) { - if(remoteObserver == null) + if(collocatedObserver == null) { - remoteObserver = new RemoteObserverI(); - remoteObserver.reset(); + collocatedObserver = new CollocatedObserverI(); + collocatedObserver.reset(); } - return remoteObserver; + return collocatedObserver; } int userExceptionCount; int retriedCount; RemoteObserverI remoteObserver = null; + CollocatedObserverI collocatedObserver = null; }; |