diff options
author | Jeff Ames | 2008-05-14 05:11:23 +0000 |
---|---|---|
committer | Jeff Ames | 2008-05-14 05:11:23 +0000 |
commit | c995d60d37032db3198b8496e186aa7a892dc7a8 (patch) | |
tree | 826147e66f61c812897d9b0acdb16ebfeb30d4d3 /OpenSim/Grid/Manager/OpenGridServices.Manager/Main.cs | |
parent | * Added 3 warnings in response to the warnings. Adam, read the warnings. (diff) | |
download | opensim-SC_OLD-c995d60d37032db3198b8496e186aa7a892dc7a8.zip opensim-SC_OLD-c995d60d37032db3198b8496e186aa7a892dc7a8.tar.gz opensim-SC_OLD-c995d60d37032db3198b8496e186aa7a892dc7a8.tar.bz2 opensim-SC_OLD-c995d60d37032db3198b8496e186aa7a892dc7a8.tar.xz |
Formatting cleanup.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Grid/Manager/OpenGridServices.Manager/Main.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Grid/Manager/OpenGridServices.Manager/Main.cs b/OpenSim/Grid/Manager/OpenGridServices.Manager/Main.cs index 33e577d..6b7a5ab 100644 --- a/OpenSim/Grid/Manager/OpenGridServices.Manager/Main.cs +++ b/OpenSim/Grid/Manager/OpenGridServices.Manager/Main.cs | |||
@@ -45,7 +45,7 @@ namespace OpenGridServices.Manager | |||
45 | 45 | ||
46 | public static void DoMainLoop() | 46 | public static void DoMainLoop() |
47 | { | 47 | { |
48 | while(!QuitReq) | 48 | while (!QuitReq) |
49 | { | 49 | { |
50 | Application.RunIteration(); | 50 | Application.RunIteration(); |
51 | } | 51 | } |
@@ -57,15 +57,15 @@ namespace OpenGridServices.Manager | |||
57 | string cmd; | 57 | string cmd; |
58 | char[] sep = new char[1]; | 58 | char[] sep = new char[1]; |
59 | sep[0]=' '; | 59 | sep[0]=' '; |
60 | while(!QuitReq) | 60 | while (!QuitReq) |
61 | { | 61 | { |
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 | case "connect_to_gridserver": | 66 | case "connect_to_gridserver": |
67 | win.SetStatus("Connecting to grid server..."); | 67 | win.SetStatus("Connecting to grid server..."); |
68 | if(gridserverConn.Connect(operation.Split(sep)[1],operation.Split(sep)[2],operation.Split(sep)[3])) { | 68 | if (gridserverConn.Connect(operation.Split(sep)[1], operation.Split(sep)[2], operation.Split(sep)[3])) { |
69 | win.SetStatus("Connected OK with session ID:" + gridserverConn.SessionID); | 69 | win.SetStatus("Connected OK with session ID:" + gridserverConn.SessionID); |
70 | win.SetGridServerConnected(true); | 70 | win.SetGridServerConnected(true); |
71 | Thread.Sleep(3000); | 71 | Thread.Sleep(3000); |
@@ -78,7 +78,7 @@ namespace OpenGridServices.Manager | |||
78 | 78 | ||
79 | case "restart_gridserver": | 79 | case "restart_gridserver": |
80 | win.SetStatus("Restarting grid server..."); | 80 | win.SetStatus("Restarting grid server..."); |
81 | if(gridserverConn.RestartServer()) { | 81 | if (gridserverConn.RestartServer()) { |
82 | win.SetStatus("Restarted server OK"); | 82 | win.SetStatus("Restarted server OK"); |
83 | Thread.Sleep(3000); | 83 | Thread.Sleep(3000); |
84 | win.SetStatus(""); | 84 | win.SetStatus(""); |
@@ -89,7 +89,7 @@ namespace OpenGridServices.Manager | |||
89 | 89 | ||
90 | case "shutdown_gridserver": | 90 | case "shutdown_gridserver": |
91 | win.SetStatus("Shutting down grid server..."); | 91 | win.SetStatus("Shutting down grid server..."); |
92 | if(gridserverConn.ShutdownServer()) { | 92 | if (gridserverConn.ShutdownServer()) { |
93 | win.SetStatus("Grid server shutdown"); | 93 | win.SetStatus("Grid server shutdown"); |
94 | win.SetGridServerConnected(false); | 94 | win.SetGridServerConnected(false); |
95 | Thread.Sleep(3000); | 95 | Thread.Sleep(3000); |