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/AssetServer | |
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/AssetServer')
-rw-r--r-- | OpenSim/Grid/AssetServer/Main.cs | 13 |
1 files changed, 2 insertions, 11 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); |