summaryrefslogtreecommitdiff
path: root/java/test/Ice/background/BackgroundControllerI.java
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2014-10-23 16:28:09 -0230
committerMatthew Newhook <matthew@zeroc.com>2014-10-23 16:28:09 -0230
commitf6bb0396e7d8fd12ed50f72ab9fc99436d418576 (patch)
treeee6ef1cb32f2523839f210eb9ec3b924b97d5998 /java/test/Ice/background/BackgroundControllerI.java
parentAdd Object.equals, and minor fix to HashMap.equals (diff)
downloadice-f6bb0396e7d8fd12ed50f72ab9fc99436d418576.tar.bz2
ice-f6bb0396e7d8fd12ed50f72ab9fc99436d418576.tar.xz
ice-f6bb0396e7d8fd12ed50f72ab9fc99436d418576.zip
More gradle changes.
Moved android stuff to its own package. Moved java tests to src/main/java/test subdirectory.
Diffstat (limited to 'java/test/Ice/background/BackgroundControllerI.java')
-rw-r--r--java/test/Ice/background/BackgroundControllerI.java119
1 files changed, 0 insertions, 119 deletions
diff --git a/java/test/Ice/background/BackgroundControllerI.java b/java/test/Ice/background/BackgroundControllerI.java
deleted file mode 100644
index fb1a591e193..00000000000
--- a/java/test/Ice/background/BackgroundControllerI.java
+++ /dev/null
@@ -1,119 +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.background;
-
-import test.Ice.background.Test._BackgroundControllerDisp;
-
-class BackgroundControllerI extends _BackgroundControllerDisp
-{
- @Override
- synchronized public void
- pauseCall(String opName, Ice.Current current)
- {
- _pausedCalls.add(opName);
- }
-
- @Override
- synchronized public void
- resumeCall(String opName, Ice.Current current)
- {
- _pausedCalls.remove(opName);
- notifyAll();
- }
-
- synchronized public void
- checkCallPause(Ice.Current current)
- {
- while(_pausedCalls.contains(current.operation))
- {
- try
- {
- wait();
- break;
- }
- catch(java.lang.InterruptedException ex)
- {
- }
- }
- }
-
- @Override
- public void
- holdAdapter(Ice.Current current)
- {
- _adapter.hold();
- }
-
- @Override
- public void
- resumeAdapter(Ice.Current current)
- {
- _adapter.activate();
- }
-
- @Override
- public void
- initializeSocketStatus(int status, Ice.Current current)
- {
- _configuration.initializeSocketStatus(status);
- }
-
- @Override
- public void
- initializeException(boolean enable, Ice.Current current)
- {
- _configuration.initializeException(enable ? new Ice.SocketException() : null);
- }
-
- @Override
- public void
- readReady(boolean enable, Ice.Current current)
- {
- _configuration.readReady(enable);
- }
-
- @Override
- public void
- readException(boolean enable, Ice.Current current)
- {
- _configuration.readException(enable ? new Ice.SocketException() : null);
- }
-
- @Override
- public void
- writeReady(boolean enable, Ice.Current current)
- {
- _configuration.writeReady(enable);
- }
-
- @Override
- public void
- writeException(boolean enable, Ice.Current current)
- {
- _configuration.writeException(enable ? new Ice.SocketException() : null);
- }
-
- @Override
- public void
- buffered(boolean enable, Ice.Current current)
- {
- _configuration.buffered(enable);
- }
-
- public
- BackgroundControllerI(Configuration configuration, Ice.ObjectAdapter adapter)
- {
- _adapter = adapter;
- _configuration = configuration;
- }
-
- final private Ice.ObjectAdapter _adapter;
- final private java.util.Set<String> _pausedCalls = new java.util.HashSet<String>();
- final private Configuration _configuration;
-}