aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-02-04 16:22:58 +0000
committerJustin Clarke Casey2008-02-04 16:22:58 +0000
commita1c9349d4765833691e7816d7f4df7bd37b9ee36 (patch)
tree2e108496bc6761f6ed1ec671a97bf6b4ba5e6137 /OpenSim/Region
parent* Added note in CONTRIBUTORS.txt for _someone/mikkopa - RealXtend (diff)
downloadopensim-SC-a1c9349d4765833691e7816d7f4df7bd37b9ee36.zip
opensim-SC-a1c9349d4765833691e7816d7f4df7bd37b9ee36.tar.gz
opensim-SC-a1c9349d4765833691e7816d7f4df7bd37b9ee36.tar.bz2
opensim-SC-a1c9349d4765833691e7816d7f4df7bd37b9ee36.tar.xz
Refactor only: serve stats objects directly through StatsManager singleton
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Application/OpenSimMain.cs6
-rw-r--r--OpenSim/Region/Communications/Local/LocalLoginService.cs4
-rw-r--r--OpenSim/Region/Communications/Local/LocalUserServices.cs5
-rw-r--r--OpenSim/Region/Examples/SimpleApp/Program.cs4
4 files changed, 9 insertions, 10 deletions
diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs
index 1754f7e..da4cf3e 100644
--- a/OpenSim/Region/Application/OpenSimMain.cs
+++ b/OpenSim/Region/Application/OpenSimMain.cs
@@ -304,7 +304,7 @@ namespace OpenSim
304 m_log = CreateLog(); 304 m_log = CreateLog();
305 MainLog.Instance = m_log; 305 MainLog.Instance = m_log;
306 306
307 StatsManager.StartCollecting(); 307 StatsManager.StartCollectingSimExtraStats();
308 308
309 // Do baseclass startup sequence: OpenSim.Region.ClientStack.RegionApplicationBase.StartUp 309 // Do baseclass startup sequence: OpenSim.Region.ClientStack.RegionApplicationBase.StartUp
310 // TerrainManager, StorageManager, HTTP Server 310 // TerrainManager, StorageManager, HTTP Server
@@ -320,7 +320,7 @@ namespace OpenSim
320 320
321 LocalUserServices userService = 321 LocalUserServices userService =
322 new LocalUserServices(m_networkServersInfo, m_networkServersInfo.DefaultHomeLocX, 322 new LocalUserServices(m_networkServersInfo, m_networkServersInfo.DefaultHomeLocX,
323 m_networkServersInfo.DefaultHomeLocY, inventoryService, null); 323 m_networkServersInfo.DefaultHomeLocY, inventoryService);
324 userService.AddPlugin(m_standaloneUserPlugin); 324 userService.AddPlugin(m_standaloneUserPlugin);
325 325
326 LocalBackEndServices backendService = new LocalBackEndServices(); 326 LocalBackEndServices backendService = new LocalBackEndServices();
@@ -333,7 +333,7 @@ namespace OpenSim
333 // TODO No user stats collection yet for standalone 333 // TODO No user stats collection yet for standalone
334 m_loginService = 334 m_loginService =
335 new LocalLoginService(userService, m_standaloneWelcomeMessage, localComms, m_networkServersInfo, 335 new LocalLoginService(userService, m_standaloneWelcomeMessage, localComms, m_networkServersInfo,
336 null, m_standaloneAuthenticate); 336 m_standaloneAuthenticate);
337 m_loginService.OnLoginToRegion += backendService.AddNewSession; 337 m_loginService.OnLoginToRegion += backendService.AddNewSession;
338 338
339 // XMLRPC action 339 // XMLRPC action
diff --git a/OpenSim/Region/Communications/Local/LocalLoginService.cs b/OpenSim/Region/Communications/Local/LocalLoginService.cs
index 7dee2cb..2848b8a 100644
--- a/OpenSim/Region/Communications/Local/LocalLoginService.cs
+++ b/OpenSim/Region/Communications/Local/LocalLoginService.cs
@@ -55,8 +55,8 @@ namespace OpenSim.Region.Communications.Local
55 55
56 public LocalLoginService(UserManagerBase userManager, string welcomeMess, 56 public LocalLoginService(UserManagerBase userManager, string welcomeMess,
57 CommunicationsLocal parent, NetworkServersInfo serversInfo, 57 CommunicationsLocal parent, NetworkServersInfo serversInfo,
58 UserStatsReporter statsCollector, bool authenticate) 58 bool authenticate)
59 : base(userManager, parent.UserProfileCacheService.libraryRoot, statsCollector, welcomeMess) 59 : base(userManager, parent.UserProfileCacheService.libraryRoot, welcomeMess)
60 { 60 {
61 m_Parent = parent; 61 m_Parent = parent;
62 this.serversInfo = serversInfo; 62 this.serversInfo = serversInfo;
diff --git a/OpenSim/Region/Communications/Local/LocalUserServices.cs b/OpenSim/Region/Communications/Local/LocalUserServices.cs
index 8a4d4e7..6192a7a 100644
--- a/OpenSim/Region/Communications/Local/LocalUserServices.cs
+++ b/OpenSim/Region/Communications/Local/LocalUserServices.cs
@@ -52,8 +52,7 @@ namespace OpenSim.Region.Communications.Local
52 /// <param name="inventoryService"></param> 52 /// <param name="inventoryService"></param>
53 /// <param name="statsCollector">Can be null if stats collection is not required.</param> 53 /// <param name="statsCollector">Can be null if stats collection is not required.</param>
54 public LocalUserServices(NetworkServersInfo serversInfo, uint defaultHomeLocX, uint defaultHomeLocY, 54 public LocalUserServices(NetworkServersInfo serversInfo, uint defaultHomeLocX, uint defaultHomeLocY,
55 IInventoryServices inventoryService, UserStatsReporter statsCollector) 55 IInventoryServices inventoryService)
56 : base(statsCollector)
57 { 56 {
58 m_serversInfo = serversInfo; 57 m_serversInfo = serversInfo;
59 58
@@ -103,4 +102,4 @@ namespace OpenSim.Region.Communications.Local
103 return data; 102 return data;
104 } 103 }
105 } 104 }
106} \ No newline at end of file 105}
diff --git a/OpenSim/Region/Examples/SimpleApp/Program.cs b/OpenSim/Region/Examples/SimpleApp/Program.cs
index ff29b11..6c18540 100644
--- a/OpenSim/Region/Examples/SimpleApp/Program.cs
+++ b/OpenSim/Region/Examples/SimpleApp/Program.cs
@@ -77,7 +77,7 @@ namespace SimpleApp
77 77
78 LocalUserServices userService = 78 LocalUserServices userService =
79 new LocalUserServices(m_networkServersInfo, m_networkServersInfo.DefaultHomeLocX, 79 new LocalUserServices(m_networkServersInfo, m_networkServersInfo.DefaultHomeLocX,
80 m_networkServersInfo.DefaultHomeLocY, inventoryService, null); 80 m_networkServersInfo.DefaultHomeLocY, inventoryService);
81 userService.AddPlugin(m_userPlugin); 81 userService.AddPlugin(m_userPlugin);
82 82
83 LocalBackEndServices backendService = new LocalBackEndServices(); 83 LocalBackEndServices backendService = new LocalBackEndServices();
@@ -89,7 +89,7 @@ namespace SimpleApp
89 89
90 LocalLoginService loginService = 90 LocalLoginService loginService =
91 new LocalLoginService( 91 new LocalLoginService(
92 userService, String.Empty, localComms, m_networkServersInfo, null, false); 92 userService, String.Empty, localComms, m_networkServersInfo, false);
93 loginService.OnLoginToRegion += backendService.AddNewSession; 93 loginService.OnLoginToRegion += backendService.AddNewSession;
94 94
95 m_httpServer.AddXmlRPCHandler("login_to_simulator", loginService.XmlRpcLoginMethod); 95 m_httpServer.AddXmlRPCHandler("login_to_simulator", loginService.XmlRpcLoginMethod);