summaryrefslogtreecommitdiff
path: root/java/test/Ice/metrics/InvocationObserverI.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/test/Ice/metrics/InvocationObserverI.java')
-rw-r--r--java/test/Ice/metrics/InvocationObserverI.java18
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;
};