diff options
author | Bernard Normier <bernard@zeroc.com> | 2005-10-26 23:54:03 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2005-10-26 23:54:03 +0000 |
commit | 220fbc2ebd2a073cd6884eddf7cf2e6fe0d80b2c (patch) | |
tree | b87d9e55c73636939edd098ea6b16f3f2b413e09 /java/src/IceGrid/TreeNode/Server.java | |
parent | new icons for IceGrid (diff) | |
download | ice-220fbc2ebd2a073cd6884eddf7cf2e6fe0d80b2c.tar.bz2 ice-220fbc2ebd2a073cd6884eddf7cf2e6fe0d80b2c.tar.xz ice-220fbc2ebd2a073cd6884eddf7cf2e6fe0d80b2c.zip |
Implemented node shutdown
Diffstat (limited to 'java/src/IceGrid/TreeNode/Server.java')
-rwxr-xr-x | java/src/IceGrid/TreeNode/Server.java | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/java/src/IceGrid/TreeNode/Server.java b/java/src/IceGrid/TreeNode/Server.java index 7ae59f2e635..9d10b23143e 100755 --- a/java/src/IceGrid/TreeNode/Server.java +++ b/java/src/IceGrid/TreeNode/Server.java @@ -426,68 +426,6 @@ class Server extends EditableParent _model.showActions(_model.getSelectedNode());
}
-
- private void amiSuccess(final String prefix)
- {
- SwingUtilities.invokeLater(new Runnable()
- {
- public void run()
- {
- _model.getStatusBar().setText(prefix + "done.");
- }
- });
- }
-
- private void amiFailure(String prefix, String title, Ice.UserException e)
- {
- if(e instanceof IceGrid.ServerNotExistException)
- {
- amiFailure(prefix, title, "This server was not registered with the IceGrid Registry");
- }
- else if(e instanceof IceGrid.NodeUnreachableException)
- {
- IceGrid.NodeUnreachableException nue = (IceGrid.NodeUnreachableException)e;
- amiFailure(prefix, title, "Node '" + nue.name + "' is unreachable: " + nue.reason);
- }
- else if(e instanceof IceGrid.ServerStartException)
- {
- IceGrid.ServerStartException ste = (IceGrid.ServerStartException)e;
- amiFailure(prefix, title, ste.reason);
- }
- else if(e instanceof IceGrid.PatchException)
- {
- IceGrid.PatchException pe = (IceGrid.PatchException)e;
- amiFailure(prefix, title, pe.reason);
- }
- else
- {
- amiFailure(prefix, title, e.toString());
- }
- }
-
- private void amiFailure(final String prefix, final String title, final String message)
- {
- SwingUtilities.invokeLater(new Runnable()
- {
- public void run()
- {
- failure(prefix, title, message);
- }
- });
- }
-
- private void failure(String prefix, String title, String message)
- {
- _model.getStatusBar().setText(prefix + "failed!");
-
- JOptionPane.showMessageDialog(
- _model.getMainFrame(),
- message,
- title,
- JOptionPane.ERROR_MESSAGE);
- }
-
-
private void enableServer(boolean enable)
{
final String prefix = (enable ?
|