diff options
author | Bernard Normier <bernard@zeroc.com> | 2006-09-15 19:42:39 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2006-09-15 19:42:39 +0000 |
commit | 926a34c0cde3bb59a64c6906442246015290c310 (patch) | |
tree | 247d19ba42bd29fb7b60d96ac936ca91d497357b /java/src/IceGridGUI/NodeObserverI.java | |
parent | Merged fixes from 3.1 branch (diff) | |
download | ice-926a34c0cde3bb59a64c6906442246015290c310.tar.bz2 ice-926a34c0cde3bb59a64c6906442246015290c310.tar.xz ice-926a34c0cde3bb59a64c6906442246015290c310.zip |
dos2unix
Diffstat (limited to 'java/src/IceGridGUI/NodeObserverI.java')
-rwxr-xr-x | java/src/IceGridGUI/NodeObserverI.java | 164 |
1 files changed, 82 insertions, 82 deletions
diff --git a/java/src/IceGridGUI/NodeObserverI.java b/java/src/IceGridGUI/NodeObserverI.java index 98c16e66e38..f5d389c492e 100755 --- a/java/src/IceGridGUI/NodeObserverI.java +++ b/java/src/IceGridGUI/NodeObserverI.java @@ -1,82 +1,82 @@ -// **********************************************************************
-//
-// 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 IceGridGUI;
-
-import javax.swing.SwingUtilities;
-import IceGrid.*;
-
-class NodeObserverI extends _NodeObserverDisp
-{
- NodeObserverI(Coordinator coordinator)
- {
- _coordinator = coordinator;
- }
-
- public void nodeInit(final NodeDynamicInfo[] nodes, Ice.Current current)
- {
- SwingUtilities.invokeLater(new Runnable()
- {
- public void run()
- {
- for(int i = 0; i < nodes.length; ++i)
- {
- _coordinator.nodeUp(nodes[i]);
- }
- }
- });
- }
-
- public void nodeUp(final NodeDynamicInfo nodeInfo, Ice.Current current)
- {
- SwingUtilities.invokeLater(new Runnable()
- {
- public void run()
- {
- _coordinator.nodeUp(nodeInfo);
- }
- });
- }
-
- public void nodeDown(final String nodeName, Ice.Current current)
- {
- SwingUtilities.invokeLater(new Runnable()
- {
- public void run()
- {
- _coordinator.nodeDown(nodeName);
- }
- });
- }
-
- public void updateServer(final String node, final ServerDynamicInfo updatedInfo,
- Ice.Current current)
- {
- SwingUtilities.invokeLater(new Runnable()
- {
- public void run()
- {
- _coordinator.updateServer(node, updatedInfo);
- }
- });
- }
-
- public void updateAdapter(final String node, final AdapterDynamicInfo updatedInfo,
- Ice.Current current)
- {
- SwingUtilities.invokeLater(new Runnable()
- {
- public void run()
- {
- _coordinator.updateAdapter(node, updatedInfo);
- }
- });
- }
-
- private Coordinator _coordinator;
-};
+// ********************************************************************** +// +// 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 IceGridGUI; + +import javax.swing.SwingUtilities; +import IceGrid.*; + +class NodeObserverI extends _NodeObserverDisp +{ + NodeObserverI(Coordinator coordinator) + { + _coordinator = coordinator; + } + + public void nodeInit(final NodeDynamicInfo[] nodes, Ice.Current current) + { + SwingUtilities.invokeLater(new Runnable() + { + public void run() + { + for(int i = 0; i < nodes.length; ++i) + { + _coordinator.nodeUp(nodes[i]); + } + } + }); + } + + public void nodeUp(final NodeDynamicInfo nodeInfo, Ice.Current current) + { + SwingUtilities.invokeLater(new Runnable() + { + public void run() + { + _coordinator.nodeUp(nodeInfo); + } + }); + } + + public void nodeDown(final String nodeName, Ice.Current current) + { + SwingUtilities.invokeLater(new Runnable() + { + public void run() + { + _coordinator.nodeDown(nodeName); + } + }); + } + + public void updateServer(final String node, final ServerDynamicInfo updatedInfo, + Ice.Current current) + { + SwingUtilities.invokeLater(new Runnable() + { + public void run() + { + _coordinator.updateServer(node, updatedInfo); + } + }); + } + + public void updateAdapter(final String node, final AdapterDynamicInfo updatedInfo, + Ice.Current current) + { + SwingUtilities.invokeLater(new Runnable() + { + public void run() + { + _coordinator.updateAdapter(node, updatedInfo); + } + }); + } + + private Coordinator _coordinator; +}; |