summaryrefslogtreecommitdiff
path: root/java/src/IceGrid/TreeNode/Root.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/IceGrid/TreeNode/Root.java')
-rwxr-xr-xjava/src/IceGrid/TreeNode/Root.java43
1 files changed, 15 insertions, 28 deletions
diff --git a/java/src/IceGrid/TreeNode/Root.java b/java/src/IceGrid/TreeNode/Root.java
index 62c20fde4c8..ac42556b5db 100755
--- a/java/src/IceGrid/TreeNode/Root.java
+++ b/java/src/IceGrid/TreeNode/Root.java
@@ -253,34 +253,6 @@ public class Root extends Parent
return _dynamicInfoMap.keySet();
}
- void tryAdd(ApplicationDescriptor ad) throws UpdateFailedException
- {
- try
- {
- Application app = new Application(true, ad, _model);
- addChild(app, true);
- }
- catch(UpdateFailedException e)
- {
- e.addParent(this);
- throw e;
- }
- }
-
- void restore(Application copy)
- {
- removeChild(copy.getId(), true);
- try
- {
- addChild(copy, true);
- }
- catch(UpdateFailedException e)
- {
- assert false; // impossible
- }
- }
-
-
ServerState registerServer(String nodeName, String serverId, Server server,
Ice.IntHolder pid)
{
@@ -424,6 +396,21 @@ public class Root extends Parent
}
}
+ void tryAdd(ApplicationDescriptor ad) throws UpdateFailedException
+ {
+ try
+ {
+ Application app = new Application(true, ad, _model);
+ addChild(app, true);
+ }
+ catch(UpdateFailedException e)
+ {
+ e.addParent(this);
+ throw e;
+ }
+ }
+
+
private void newApplication(ApplicationDescriptor descriptor)
{
descriptor.name = makeNewChildId(descriptor.name);