diff options
author | Jeff Ames | 2008-05-14 05:33:32 +0000 |
---|---|---|
committer | Jeff Ames | 2008-05-14 05:33:32 +0000 |
commit | 6a1b787436cc59043a26a296781e7a7b5ea0c67b (patch) | |
tree | 10f55a7b0abfdc47f103d40f13f3cae530c13581 /OpenSim/Grid/Manager/OpenGridServices.Manager/Main.cs | |
parent | Formatting cleanup. (diff) | |
download | opensim-SC_OLD-6a1b787436cc59043a26a296781e7a7b5ea0c67b.zip opensim-SC_OLD-6a1b787436cc59043a26a296781e7a7b5ea0c67b.tar.gz opensim-SC_OLD-6a1b787436cc59043a26a296781e7a7b5ea0c67b.tar.bz2 opensim-SC_OLD-6a1b787436cc59043a26a296781e7a7b5ea0c67b.tar.xz |
More formatting cleanup.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Grid/Manager/OpenGridServices.Manager/Main.cs | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/OpenSim/Grid/Manager/OpenGridServices.Manager/Main.cs b/OpenSim/Grid/Manager/OpenGridServices.Manager/Main.cs index 6b7a5ab..7700229 100644 --- a/OpenSim/Grid/Manager/OpenGridServices.Manager/Main.cs +++ b/OpenSim/Grid/Manager/OpenGridServices.Manager/Main.cs | |||
@@ -62,47 +62,57 @@ namespace OpenGridServices.Manager | |||
62 | operation=PendingOperations.Dequeue(); | 62 | operation=PendingOperations.Dequeue(); |
63 | Console.WriteLine(operation); | 63 | Console.WriteLine(operation); |
64 | cmd = operation.Split(sep)[0]; | 64 | cmd = operation.Split(sep)[0]; |
65 | switch (cmd) { | 65 | switch (cmd) |
66 | { | ||
66 | case "connect_to_gridserver": | 67 | case "connect_to_gridserver": |
67 | win.SetStatus("Connecting to grid server..."); | 68 | win.SetStatus("Connecting to grid server..."); |
68 | if (gridserverConn.Connect(operation.Split(sep)[1], operation.Split(sep)[2], operation.Split(sep)[3])) { | 69 | if (gridserverConn.Connect(operation.Split(sep)[1], operation.Split(sep)[2], operation.Split(sep)[3])) |
70 | { | ||
69 | win.SetStatus("Connected OK with session ID:" + gridserverConn.SessionID); | 71 | win.SetStatus("Connected OK with session ID:" + gridserverConn.SessionID); |
70 | win.SetGridServerConnected(true); | 72 | win.SetGridServerConnected(true); |
71 | Thread.Sleep(3000); | 73 | Thread.Sleep(3000); |
72 | win.SetStatus("Downloading region maps..."); | 74 | win.SetStatus("Downloading region maps..."); |
73 | gridserverConn.DownloadMap(); | 75 | gridserverConn.DownloadMap(); |
74 | } else { | 76 | } |
77 | else | ||
78 | { | ||
75 | win.SetStatus("Could not connect"); | 79 | win.SetStatus("Could not connect"); |
76 | } | 80 | } |
77 | break; | 81 | break; |
78 | 82 | ||
79 | case "restart_gridserver": | 83 | case "restart_gridserver": |
80 | win.SetStatus("Restarting grid server..."); | 84 | win.SetStatus("Restarting grid server..."); |
81 | if (gridserverConn.RestartServer()) { | 85 | if (gridserverConn.RestartServer()) |
86 | { | ||
82 | win.SetStatus("Restarted server OK"); | 87 | win.SetStatus("Restarted server OK"); |
83 | Thread.Sleep(3000); | 88 | Thread.Sleep(3000); |
84 | win.SetStatus(""); | 89 | win.SetStatus(""); |
85 | } else { | 90 | } |
91 | else | ||
92 | { | ||
86 | win.SetStatus("Error restarting grid server!!!"); | 93 | win.SetStatus("Error restarting grid server!!!"); |
87 | } | 94 | } |
88 | break; | 95 | break; |
89 | 96 | ||
90 | case "shutdown_gridserver": | 97 | case "shutdown_gridserver": |
91 | win.SetStatus("Shutting down grid server..."); | 98 | win.SetStatus("Shutting down grid server..."); |
92 | if (gridserverConn.ShutdownServer()) { | 99 | if (gridserverConn.ShutdownServer()) |
100 | { | ||
93 | win.SetStatus("Grid server shutdown"); | 101 | win.SetStatus("Grid server shutdown"); |
94 | win.SetGridServerConnected(false); | 102 | win.SetGridServerConnected(false); |
95 | Thread.Sleep(3000); | 103 | Thread.Sleep(3000); |
96 | win.SetStatus(""); | 104 | win.SetStatus(""); |
97 | } else { | 105 | } |
106 | else | ||
107 | { | ||
98 | win.SetStatus("Could not shutdown grid server!!!"); | 108 | win.SetStatus("Could not shutdown grid server!!!"); |
99 | } | 109 | } |
100 | break; | 110 | break; |
101 | 111 | ||
102 | case "disconnect_gridserver": | 112 | case "disconnect_gridserver": |
103 | gridserverConn.DisconnectServer(); | 113 | gridserverConn.DisconnectServer(); |
104 | win.SetGridServerConnected(false); | 114 | win.SetGridServerConnected(false); |
105 | break; | 115 | break; |
106 | } | 116 | } |
107 | } | 117 | } |
108 | } | 118 | } |