diff options
Diffstat (limited to 'java/src/Ice/RoutingTable.java')
-rw-r--r-- | java/src/Ice/RoutingTable.java | 76 |
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(); -} |