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/IceGridGUI/NodeObserverI.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/IceGridGUI/NodeObserverI.java')
-rw-r--r-- | java/src/IceGridGUI/NodeObserverI.java | 135 |
1 files changed, 0 insertions, 135 deletions
diff --git a/java/src/IceGridGUI/NodeObserverI.java b/java/src/IceGridGUI/NodeObserverI.java deleted file mode 100644 index 8bb9d9dddf9..00000000000 --- a/java/src/IceGridGUI/NodeObserverI.java +++ /dev/null @@ -1,135 +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 IceGridGUI; - -import javax.swing.SwingUtilities; -import IceGrid.*; - -class NodeObserverI extends _NodeObserverDisp -{ - NodeObserverI(Coordinator coordinator) - { - _coordinator = coordinator; - _trace = _coordinator.traceObservers(); - } - - @Override - public void nodeInit(final NodeDynamicInfo[] nodes, Ice.Current current) - { - if(_trace) - { - if(nodes.length == 0) - { - _coordinator.traceObserver("nodeInit (no node)"); - } - else - { - String names = ""; - for(NodeDynamicInfo node : nodes) - { - names += " " + node.info.name; - } - _coordinator.traceObserver("nodeInit for node" + (nodes.length == 1 ? "" : "s") + names); - } - } - - SwingUtilities.invokeLater(new Runnable() - { - @Override - public void run() - { - for(NodeDynamicInfo node : nodes) - { - _coordinator.nodeUp(node); - } - } - }); - } - - @Override - public void nodeUp(final NodeDynamicInfo nodeInfo, Ice.Current current) - { - if(_trace) - { - _coordinator.traceObserver("nodeUp for node " + nodeInfo.info.name); - } - - SwingUtilities.invokeLater(new Runnable() - { - @Override - public void run() - { - _coordinator.nodeUp(nodeInfo); - } - }); - } - - @Override - public void nodeDown(final String nodeName, Ice.Current current) - { - if(_trace) - { - _coordinator.traceObserver("nodeUp for node " + nodeName); - } - - SwingUtilities.invokeLater(new Runnable() - { - @Override - public void run() - { - _coordinator.nodeDown(nodeName); - } - }); - } - - @Override - public void updateServer(final String node, final ServerDynamicInfo updatedInfo, Ice.Current current) - { - if(_trace) - { - _coordinator.traceObserver("updateServer for server " + updatedInfo.id - + " on node " + node + "; new state is " - + updatedInfo.state.toString()); - } - - SwingUtilities.invokeLater(new Runnable() - { - @Override - public void run() - { - _coordinator.updateServer(node, updatedInfo); - } - }); - } - - @Override - public void updateAdapter(final String node, final AdapterDynamicInfo updatedInfo, Ice.Current current) - { - if(_trace) - { - _coordinator.traceObserver("updateAdapter for adapter " + updatedInfo.id - + " on node " + node + "; new proxy is " - + (updatedInfo.proxy == null ? "null" - : updatedInfo.proxy.toString())); - } - - SwingUtilities.invokeLater(new Runnable() - { - @Override - public void run() - { - _coordinator.updateAdapter(node, updatedInfo); - } - }); - } - - private final Coordinator _coordinator; - private final boolean _trace; -} |