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.java75
1 files changed, 0 insertions, 75 deletions
diff --git a/java/test/Ice/metrics/InvocationObserverI.java b/java/test/Ice/metrics/InvocationObserverI.java
deleted file mode 100644
index cfb7e2c6547..00000000000
--- a/java/test/Ice/metrics/InvocationObserverI.java
+++ /dev/null
@@ -1,75 +0,0 @@
-// **********************************************************************
-//
-// Copyright (c) 2003-2014 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 InvocationObserverI extends ObserverI implements Ice.Instrumentation.InvocationObserver
-{
- @Override
- public synchronized void
- reset()
- {
- super.reset();
- retriedCount = 0;
- userExceptionCount = 0;
- if(remoteObserver != null)
- {
- remoteObserver.reset();
- }
- if(collocatedObserver != null)
- {
- collocatedObserver.reset();
- }
- }
-
- @Override
- public synchronized void
- retried()
- {
- ++retriedCount;
- }
-
- @Override
- public synchronized void
- userException()
- {
- ++userExceptionCount;
- }
-
- @Override
- public synchronized Ice.Instrumentation.RemoteObserver
- getRemoteObserver(Ice.ConnectionInfo c, Ice.Endpoint e, int a, int b)
- {
- if(remoteObserver == null)
- {
- remoteObserver = new RemoteObserverI();
- remoteObserver.reset();
- }
- return remoteObserver;
- }
-
-
- @Override
- public synchronized Ice.Instrumentation.CollocatedObserver
- getCollocatedObserver(Ice.ObjectAdapter adapter, int a, int b)
- {
- if(collocatedObserver == null)
- {
- collocatedObserver = new CollocatedObserverI();
- collocatedObserver.reset();
- }
- return collocatedObserver;
- }
-
- int userExceptionCount;
- int retriedCount;
-
- RemoteObserverI remoteObserver = null;
- CollocatedObserverI collocatedObserver = null;
-};