summaryrefslogtreecommitdiff
path: root/java/src/IceGrid/TreeNode/Application.java
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2005-10-28 18:30:55 +0000
committerBernard Normier <bernard@zeroc.com>2005-10-28 18:30:55 +0000
commitde230b2978dfe08a171008c7624c0017c70643bc (patch)
tree7d9d2654e982c3e51377506e5adfe7d2fc672328 /java/src/IceGrid/TreeNode/Application.java
parentadded ami to getNodeLoad (diff)
downloadice-de230b2978dfe08a171008c7624c0017c70643bc.tar.bz2
ice-de230b2978dfe08a171008c7624c0017c70643bc.tar.xz
ice-de230b2978dfe08a171008c7624c0017c70643bc.zip
Shows properly load node
Diffstat (limited to 'java/src/IceGrid/TreeNode/Application.java')
-rwxr-xr-xjava/src/IceGrid/TreeNode/Application.java25
1 files changed, 23 insertions, 2 deletions
diff --git a/java/src/IceGrid/TreeNode/Application.java b/java/src/IceGrid/TreeNode/Application.java
index 8d854089534..204ba0c50f9 100755
--- a/java/src/IceGrid/TreeNode/Application.java
+++ b/java/src/IceGrid/TreeNode/Application.java
@@ -91,7 +91,7 @@ public class Application extends EditableParent
{
actions[PASTE] = descriptor instanceof ApplicationDescriptor;
}
- if(!_model.isUpdateInProgress())
+ if(!_model.isUpdateInProgress() && _model.getAdmin() != null)
{
actions[APPLICATION_INSTALL_DISTRIBUTION] =
!_descriptor.distrib.icepatch.equals("");
@@ -324,7 +324,26 @@ public class Application extends EditableParent
update.removeNodes = _nodes.removedElements();
update.nodes = _nodes.getUpdates();
- return update;
+
+ //
+ // Return null if nothing changed
+ //
+ if(!isModified() &&
+ update.removeReplicaGroups.length == 0 &&
+ update.replicaGroups.size() == 0 &&
+ update.removeServerTemplates.length == 0 &&
+ update.serverTemplates.size() == 0 &&
+ update.removeServiceTemplates.length == 0 &&
+ update.serviceTemplates.size() == 0 &&
+ update.removeNodes.length == 0 &&
+ update.nodes.size() == 0)
+ {
+ return null;
+ }
+ else
+ {
+ return update;
+ }
}
public void commit()
@@ -499,6 +518,7 @@ public class Application extends EditableParent
if(desc.description != null)
{
_descriptor.description = desc.description.value;
+ _origDescription = _descriptor.description;
}
//
@@ -516,6 +536,7 @@ public class Application extends EditableParent
if(desc.distrib != null)
{
_descriptor.distrib = desc.distrib.value;
+ _origDistrib = _descriptor.distrib;
}
//