From beefbb46d22d318d1964af16b3e4601e7e23709f Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Mon, 28 Jan 2008 22:00:38 +0000
Subject: * Add total logouts (and total logins) to server side user stats *
Passing the stats collector through object chains is not ideal - this will
change when more stats come in * This change will need a prebuild
---
OpenSim/Region/Application/OpenSimMain.cs | 2 +-
OpenSim/Region/Communications/Local/LocalUserServices.cs | 12 +++++++++++-
OpenSim/Region/Examples/SimpleApp/Program.cs | 2 +-
3 files changed, 13 insertions(+), 3 deletions(-)
(limited to 'OpenSim/Region')
diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs
index 9484e15..a620bd4 100644
--- a/OpenSim/Region/Application/OpenSimMain.cs
+++ b/OpenSim/Region/Application/OpenSimMain.cs
@@ -317,7 +317,7 @@ namespace OpenSim
LocalUserServices userService =
new LocalUserServices(m_networkServersInfo, m_networkServersInfo.DefaultHomeLocX,
- m_networkServersInfo.DefaultHomeLocY, inventoryService);
+ m_networkServersInfo.DefaultHomeLocY, inventoryService, null);
userService.AddPlugin(m_standaloneUserPlugin);
LocalBackEndServices backendService = new LocalBackEndServices();
diff --git a/OpenSim/Region/Communications/Local/LocalUserServices.cs b/OpenSim/Region/Communications/Local/LocalUserServices.cs
index e02a600..8a4d4e7 100644
--- a/OpenSim/Region/Communications/Local/LocalUserServices.cs
+++ b/OpenSim/Region/Communications/Local/LocalUserServices.cs
@@ -30,6 +30,7 @@ using System;
using libsecondlife;
using OpenSim.Framework;
using OpenSim.Framework.Communications;
+using OpenSim.Framework.Statistics;
using OpenSim.Framework.UserManagement;
namespace OpenSim.Region.Communications.Local
@@ -42,8 +43,17 @@ namespace OpenSim.Region.Communications.Local
private IInventoryServices m_inventoryService;
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// Can be null if stats collection is not required.
public LocalUserServices(NetworkServersInfo serversInfo, uint defaultHomeLocX, uint defaultHomeLocY,
- IInventoryServices inventoryService)
+ IInventoryServices inventoryService, UserStatsReporter statsCollector)
+ : base(statsCollector)
{
m_serversInfo = serversInfo;
diff --git a/OpenSim/Region/Examples/SimpleApp/Program.cs b/OpenSim/Region/Examples/SimpleApp/Program.cs
index 485d657..ff29b11 100644
--- a/OpenSim/Region/Examples/SimpleApp/Program.cs
+++ b/OpenSim/Region/Examples/SimpleApp/Program.cs
@@ -77,7 +77,7 @@ namespace SimpleApp
LocalUserServices userService =
new LocalUserServices(m_networkServersInfo, m_networkServersInfo.DefaultHomeLocX,
- m_networkServersInfo.DefaultHomeLocY, inventoryService);
+ m_networkServersInfo.DefaultHomeLocY, inventoryService, null);
userService.AddPlugin(m_userPlugin);
LocalBackEndServices backendService = new LocalBackEndServices();
--
cgit v1.1