diff options
author | Bernard Normier <bernard@zeroc.com> | 2005-10-18 23:11:29 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2005-10-18 23:11:29 +0000 |
commit | 765c3fec852a05c957116145220719d1c0e40797 (patch) | |
tree | d1178fc923be909fc13f53288c8a82bf38908393 /java/src/IceGrid/TreeNode/Nodes.java | |
parent | x86 is now the default machine on Windows (diff) | |
download | ice-765c3fec852a05c957116145220719d1c0e40797.tar.bz2 ice-765c3fec852a05c957116145220719d1c0e40797.tar.xz ice-765c3fec852a05c957116145220719d1c0e40797.zip |
New current status window
Diffstat (limited to 'java/src/IceGrid/TreeNode/Nodes.java')
-rwxr-xr-x | java/src/IceGrid/TreeNode/Nodes.java | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/java/src/IceGrid/TreeNode/Nodes.java b/java/src/IceGrid/TreeNode/Nodes.java index 6f0a45ffc9c..4317afd988a 100755 --- a/java/src/IceGrid/TreeNode/Nodes.java +++ b/java/src/IceGrid/TreeNode/Nodes.java @@ -17,6 +17,7 @@ import IceGrid.TreeModelI; import IceGrid.Model;
import IceGrid.NodeDescriptor;
import IceGrid.NodeDynamicInfo;
+import IceGrid.NodeInfo;
import IceGrid.NodeUpdateDescriptor;
import IceGrid.ServerDynamicInfo;
import IceGrid.AdapterDynamicInfo;
@@ -89,8 +90,6 @@ public class Nodes extends EditableParent super(false, "Nodes", application.getModel());
_descriptors = nodeMap;
- java.util.Set nodesUp = _model.getRoot().getNodesUp();
-
java.util.Iterator p = nodeMap.entrySet().iterator();
while(p.hasNext())
{
@@ -98,19 +97,21 @@ public class Nodes extends EditableParent String nodeName = (String)entry.getKey();
NodeDescriptor nodeDescriptor = (NodeDescriptor)entry.getValue();
addChild(new Node(false, nodeName, nodeDescriptor,
- application, nodesUp.contains(nodeName)));
+ application,
+ _model.getRoot().getStaticNodeInfo(nodeName)));
}
//
// Also create a Node for each node that is up
- //
- p = nodesUp.iterator();
+ //
+ p = _model.getRoot().getNodesUp().iterator();
while(p.hasNext())
{
String nodeName = (String)p.next();
if(findChild(nodeName) == null)
{
- addChild(new Node(false, nodeName, null, application, true));
+ addChild(new Node(false, nodeName, null, application,
+ _model.getRoot().getStaticNodeInfo(nodeName)));
}
}
}
@@ -236,7 +237,7 @@ public class Nodes extends EditableParent update.loadFactor.value,
update.description.value);
_descriptors.put(update.name, nodeDescriptor);
- node = new Node(false, update.name, nodeDescriptor, application, false);
+ node = new Node(false, update.name, nodeDescriptor, application, null);
newChildren.add(node);
}
else
@@ -248,14 +249,15 @@ public class Nodes extends EditableParent addChildren((CommonBaseI[])newChildren.toArray(new CommonBaseI[0]));
}
- void nodeUp(String nodeName)
+ void nodeUp(String nodeName, NodeInfo staticInfo)
{
Node node = findNode(nodeName);
if(node == null)
{
try
{
- node = new Node(false, nodeName, null, getApplication(), true);
+ node = new Node(false, nodeName, null, getApplication(),
+ staticInfo);
addChild(node, true);
}
catch(UpdateFailedException e)
@@ -266,7 +268,7 @@ public class Nodes extends EditableParent }
else
{
- node.up();
+ node.up(staticInfo);
}
}
@@ -319,7 +321,7 @@ public class Nodes extends EditableParent {
try
{
- Node node = new Node(true, nodeName, descriptor, getApplication(), false);
+ Node node = new Node(true, nodeName, descriptor, getApplication(), null);
addChild(node, true);
}
catch(UpdateFailedException e)
|