Editing
As soon as you make any update in a form, IceGrid Admin enables two buttons at the bottom of this form: Apply and Discard.
If you navigate to another node without pressing Apply or Discard, the default is Apply: your changes are applied to the in-memory representation of the application definition. However these changes are not stored to the IceGrid registry or XML file until you save the application definition (see below).
Editing a live application () also disconnects this application from the IceGrid registry: updates made by other users are no longer propagated to the Application tab.
Error Checking
IceGrid Admin performs very little error checking while you are working on an application definition. For example, you may temporarily keep several servers with the same ID, leave some parameters of a template instance unset, or use an undefined variable. All such errors are only detected when you save your application to an IceGrid registry.
There are nonetheless two types of constraints enforced by IceGrid Admin at all times:
• | two descriptor nodes in an application pane display cannot have the same name |
• | some fields (such as Path to Executable for a server) cannot be empty. |
If you violate such a constraint, IceGrid Admin prevents you from applying your change.
Saving
You save an application definition to an IceGrid registry or an XML file with the menu item File > Save, File > Save to File or File > Save to Registry, or with the corresponding toolbar button.
Save saves a live application to the IceGrid registry, and a file-bound application to its associated XML file.
Discarding Updates
You may discard all your updates by selecting File > Discard Updates or pressing the corresponding toolbar button. Discard Updates simply reloads the application from the IceGrid registry or its associated XML file.
Concurrent Updates to the same IceGrid Registry
If several administrators update the same application definition concurrently, the last save will silently overwrite previous (concurrent) updates.
To avoid this situation, you can acquire an exclusive write access to the IceGrid registry with File > Acquire Exclusive Write Access. After this exclusive write access is granted, any attempt by another session to save to the IceGrid registry will result in an error:
Page url: http://www.zeroc.com/doc/Ice-3.4.2/IceGridAdmin/index.html?app_editing_and_saving.htm