summaryrefslogtreecommitdiff
path: root/java/src/Ice/RoutingTable.java
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-04-10 12:36:07 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-04-10 12:36:07 +0000
commit44e9b26499e9e907176af9011e535a32cc0239b0 (patch)
tree9a2ead95f1edd81f003af5ae90381dd02edf60fe /java/src/Ice/RoutingTable.java
parentPorted fix for bug 540 (diff)
downloadice-44e9b26499e9e907176af9011e535a32cc0239b0.tar.bz2
ice-44e9b26499e9e907176af9011e535a32cc0239b0.tar.xz
ice-44e9b26499e9e907176af9011e535a32cc0239b0.zip
Port fix for bug 540
Diffstat (limited to 'java/src/Ice/RoutingTable.java')
-rw-r--r--java/src/Ice/RoutingTable.java76
1 files changed, 0 insertions, 76 deletions
diff --git a/java/src/Ice/RoutingTable.java b/java/src/Ice/RoutingTable.java
deleted file mode 100644
index 0976ab10431..00000000000
--- a/java/src/Ice/RoutingTable.java
+++ /dev/null
@@ -1,76 +0,0 @@
-// **********************************************************************
-//
-// Copyright (c) 2003-2006 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 Ice;
-
-public final class RoutingTable
-{
- public
- RoutingTable()
- {
- }
-
- //
- // Clear the contents of the routing table.
- //
- synchronized public void
- clear()
- {
- _table.clear();
- }
-
- //
- // Returns false if the Proxy exists already.
- //
- public boolean
- add(ObjectPrx prx)
- {
- if(prx == null)
- {
- return false;
- }
-
- //
- // We insert the proxy in its default form into the routing table.
- //
- ObjectPrx proxy = prx.ice_twoway().ice_secure(false);
-
- synchronized(this)
- {
- if(!_table.containsKey(proxy.ice_getIdentity()))
- {
- _table.put(proxy.ice_getIdentity(), proxy);
- return true;
- }
- else
- {
- return false;
- }
- }
- }
-
- //
- // Returns null if no Proxy exists for the given identity.
- //
- public ObjectPrx
- get(Identity ident)
- {
- if(ident.name.length() == 0)
- {
- return null;
- }
-
- synchronized(this)
- {
- return (ObjectPrx)_table.get(ident);
- }
- }
-
- private java.util.HashMap _table = new java.util.HashMap();
-}