diff options
author | Matthew Newhook <matthew@zeroc.com> | 2014-10-20 11:40:05 -0230 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2014-10-20 11:40:05 -0230 |
commit | b51469b41167fb86ae2059a15cf0475c53fdda7b (patch) | |
tree | fc85d6ca2efd89c67e1e4e7438f437c3e08313f4 /java/src/IceInternal/RouterManager.java | |
parent | Fixed (ICE-5695) - IceSSL: misleading exception (diff) | |
download | ice-b51469b41167fb86ae2059a15cf0475c53fdda7b.tar.bz2 ice-b51469b41167fb86ae2059a15cf0475c53fdda7b.tar.xz ice-b51469b41167fb86ae2059a15cf0475c53fdda7b.zip |
Down with ant. From the gradle to the grave.
Diffstat (limited to 'java/src/IceInternal/RouterManager.java')
-rw-r--r-- | java/src/IceInternal/RouterManager.java | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/java/src/IceInternal/RouterManager.java b/java/src/IceInternal/RouterManager.java deleted file mode 100644 index c97a51a4899..00000000000 --- a/java/src/IceInternal/RouterManager.java +++ /dev/null @@ -1,76 +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 IceInternal; - -public final class RouterManager -{ - RouterManager() - { - } - - synchronized void - destroy() - { - for(RouterInfo info : _table.values()) - { - info.destroy(); - } - _table.clear(); - } - - // - // Returns router info for a given router. Automatically creates - // the router info if it doesn't exist yet. - // - public RouterInfo - get(Ice.RouterPrx rtr) - { - if(rtr == null) - { - return null; - } - - // - // The router cannot be routed. - // - Ice.RouterPrx router = Ice.RouterPrxHelper.uncheckedCast(rtr.ice_router(null)); - - synchronized(this) - { - RouterInfo info = _table.get(router); - if(info == null) - { - info = new RouterInfo(router); - _table.put(router, info); - } - - return info; - } - } - - public RouterInfo - erase(Ice.RouterPrx rtr) - { - RouterInfo info = null; - if(rtr != null) - { - // The router cannot be routed. - Ice.RouterPrx router = Ice.RouterPrxHelper.uncheckedCast(rtr.ice_router(null)); - - synchronized(this) - { - info = _table.remove(router); - } - } - return info; - } - - private java.util.HashMap<Ice.RouterPrx, RouterInfo> _table = new java.util.HashMap<Ice.RouterPrx, RouterInfo>(); -} |