aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/UserServer
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-05-14 21:53:40 +0000
committerJustin Clarke Casey2008-05-14 21:53:40 +0000
commit0f501629618fe1655b7ba653802056b5c32dbae6 (patch)
tree8a7f2808a27f97a60d1901263155906256e6f46a /OpenSim/Grid/UserServer
parent* Refactor: Renaming non viewer statistics classes from Reporters to Collecto... (diff)
downloadopensim-SC-0f501629618fe1655b7ba653802056b5c32dbae6.zip
opensim-SC-0f501629618fe1655b7ba653802056b5c32dbae6.tar.gz
opensim-SC-0f501629618fe1655b7ba653802056b5c32dbae6.tar.bz2
opensim-SC-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/UserServer')
-rw-r--r--OpenSim/Grid/UserServer/Main.cs9
1 files changed, 2 insertions, 7 deletions
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>>();