diff options
author | Justin Clarke Casey | 2008-05-14 21:53:40 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-05-14 21:53:40 +0000 |
commit | 0f501629618fe1655b7ba653802056b5c32dbae6 (patch) | |
tree | 8a7f2808a27f97a60d1901263155906256e6f46a /OpenSim/Grid | |
parent | * Refactor: Renaming non viewer statistics classes from Reporters to Collecto... (diff) | |
download | opensim-SC_OLD-0f501629618fe1655b7ba653802056b5c32dbae6.zip opensim-SC_OLD-0f501629618fe1655b7ba653802056b5c32dbae6.tar.gz opensim-SC_OLD-0f501629618fe1655b7ba653802056b5c32dbae6.tar.bz2 opensim-SC_OLD-0f501629618fe1655b7ba653802056b5c32dbae6.tar.xz |
* Refactor additional stats collection common code into base opensim server
* If extra stats not sent to the viewer are available on an opensim server, they are now uniformly accessible using the 'show stats' command
Diffstat (limited to 'OpenSim/Grid')
-rw-r--r-- | OpenSim/Grid/AssetServer/Main.cs | 13 | ||||
-rw-r--r-- | OpenSim/Grid/UserServer/Main.cs | 9 |
2 files changed, 4 insertions, 18 deletions
diff --git a/OpenSim/Grid/AssetServer/Main.cs b/OpenSim/Grid/AssetServer/Main.cs index 77e4628..1b1f9c7 100644 --- a/OpenSim/Grid/AssetServer/Main.cs +++ b/OpenSim/Grid/AssetServer/Main.cs | |||
@@ -98,7 +98,7 @@ namespace OpenSim.Grid.AssetServer | |||
98 | m_log.Info("[ASSET]: Starting HTTP process"); | 98 | m_log.Info("[ASSET]: Starting HTTP process"); |
99 | m_httpServer = new BaseHttpServer(m_config.HttpPort); | 99 | m_httpServer = new BaseHttpServer(m_config.HttpPort); |
100 | 100 | ||
101 | StatsManager.StartCollectingAssetStats(); | 101 | m_stats = StatsManager.StartCollectingAssetStats(); |
102 | 102 | ||
103 | AddHttpHandlers(); | 103 | AddHttpHandlers(); |
104 | 104 | ||
@@ -179,16 +179,7 @@ namespace OpenSim.Grid.AssetServer | |||
179 | base.RunCmd(cmd, cmdparams); | 179 | base.RunCmd(cmd, cmdparams); |
180 | 180 | ||
181 | switch (cmd) | 181 | switch (cmd) |
182 | { | 182 | { |
183 | case "help": | ||
184 | m_console.Notice("stats - statistical information for this server"); | ||
185 | |||
186 | break; | ||
187 | |||
188 | case "stats": | ||
189 | m_console.Notice("STATS", Environment.NewLine + StatsManager.AssetStats.Report()); | ||
190 | break; | ||
191 | |||
192 | case "shutdown": | 183 | case "shutdown": |
193 | m_console.Close(); | 184 | m_console.Close(); |
194 | Environment.Exit(0); | 185 | Environment.Exit(0); |
diff --git a/OpenSim/Grid/UserServer/Main.cs b/OpenSim/Grid/UserServer/Main.cs index 7cd2431..00b7f76 100644 --- a/OpenSim/Grid/UserServer/Main.cs +++ b/OpenSim/Grid/UserServer/Main.cs | |||
@@ -88,7 +88,7 @@ namespace OpenSim.Grid.UserServer | |||
88 | { | 88 | { |
89 | Cfg = new UserConfig("USER SERVER", (Path.Combine(Util.configDir(), "UserServer_Config.xml"))); | 89 | Cfg = new UserConfig("USER SERVER", (Path.Combine(Util.configDir(), "UserServer_Config.xml"))); |
90 | 90 | ||
91 | StatsManager.StartCollectingUserStats(); | 91 | m_stats = StatsManager.StartCollectingUserStats(); |
92 | 92 | ||
93 | m_log.Info("[REGION]: Establishing data connection"); | 93 | m_log.Info("[REGION]: Establishing data connection"); |
94 | m_userManager = new UserManager(); | 94 | m_userManager = new UserManager(); |
@@ -219,16 +219,11 @@ namespace OpenSim.Grid.UserServer | |||
219 | { | 219 | { |
220 | case "help": | 220 | case "help": |
221 | m_console.Notice("create user - create a new user"); | 221 | m_console.Notice("create user - create a new user"); |
222 | m_console.Notice("stats - statistical information for this server"); | ||
223 | break; | 222 | break; |
224 | 223 | ||
225 | case "create": | 224 | case "create": |
226 | do_create(cmdparams[0]); | 225 | do_create(cmdparams[0]); |
227 | break; | 226 | break; |
228 | |||
229 | case "stats": | ||
230 | m_console.Notice(StatsManager.UserStats.Report()); | ||
231 | break; | ||
232 | 227 | ||
233 | case "test-inventory": | 228 | case "test-inventory": |
234 | // RestObjectPosterResponse<List<InventoryFolderBase>> requester = new RestObjectPosterResponse<List<InventoryFolderBase>>(); | 229 | // RestObjectPosterResponse<List<InventoryFolderBase>> requester = new RestObjectPosterResponse<List<InventoryFolderBase>>(); |