From 001d3695683d9511446d194feeb763c437170028 Mon Sep 17 00:00:00 2001
From: Diva Canto
Date: Mon, 11 Jan 2010 07:45:47 -0800
Subject: CommunicationsManager deleted.
---
.../Communications/CommunicationsManager.cs | 58 --------------------
OpenSim/Region/Application/HGCommands.cs | 6 +-
OpenSim/Region/Application/OpenSimBase.cs | 6 +-
.../Region/ClientStack/RegionApplicationBase.cs | 7 ---
.../CoreModules/Framework/Library/LibraryModule.cs | 1 -
OpenSim/Region/CoreModules/InterGrid/OGSRadmin.cs | 2 -
.../Simulation/RemoteSimulationConnector.cs | 3 -
.../Scenes/Hypergrid/HGScene.Inventory.cs | 4 +-
.../Hypergrid/HGSceneCommunicationService.cs | 2 +-
OpenSim/Region/Framework/Scenes/Scene.cs | 4 +-
.../Framework/Scenes/SceneCommunicationService.cs | 4 +-
.../Framework/Scenes/Tests/ScenePresenceTests.cs | 8 +--
.../Region/Framework/Scenes/Tests/SceneTests.cs | 2 +-
.../Scenes/Tests/StandaloneTeleportTests.cs | 5 +-
.../Tests/Common/Mock/TestCommunicationsManager.cs | 62 ---------------------
OpenSim/Tests/Common/Mock/TestScene.cs | 4 +-
OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs | 64 +++++++++++-----------
17 files changed, 52 insertions(+), 190 deletions(-)
delete mode 100644 OpenSim/Framework/Communications/CommunicationsManager.cs
delete mode 100644 OpenSim/Tests/Common/Mock/TestCommunicationsManager.cs
(limited to 'OpenSim')
diff --git a/OpenSim/Framework/Communications/CommunicationsManager.cs b/OpenSim/Framework/Communications/CommunicationsManager.cs
deleted file mode 100644
index 7c4ae9a..0000000
--- a/OpenSim/Framework/Communications/CommunicationsManager.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Copyright (c) Contributors, http://opensimulator.org/
- * See CONTRIBUTORS.TXT for a full list of copyright holders.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * * Neither the name of the OpenSimulator Project nor the
- * names of its contributors may be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-using System;
-using System.Collections.Generic;
-using OpenMetaverse;
-using OpenSim.Framework.Communications.Cache;
-
-namespace OpenSim.Framework.Communications
-{
- ///
- /// This class manages references to OpenSim non-region services (inventory, user, etc.)
- ///
- ///
- /// TODO: Service retrieval needs to be managed via plugin and interfaces requests, as happens for region
- /// modules from scene. Among other things, this will allow this class to be used in many different contexts
- /// (from a grid service executable, to provide services on a region) without lots of messy nulls and confusion.
- /// Also, a post initialize step on the plugins will be needed so that we don't get tortuous problems with
- /// circular dependencies between plugins.
- public class CommunicationsManager
- {
- //private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
-
- ///
- /// Constructor
- ///
- ///
- public CommunicationsManager(NetworkServersInfo serversInfo,
- LibraryRootFolder libraryRootFolder)
- {
- }
-
- }
-}
diff --git a/OpenSim/Region/Application/HGCommands.cs b/OpenSim/Region/Application/HGCommands.cs
index 7ae161d..a863697 100644
--- a/OpenSim/Region/Application/HGCommands.cs
+++ b/OpenSim/Region/Application/HGCommands.cs
@@ -44,14 +44,14 @@ namespace OpenSim
{
// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
- public static Scene CreateScene(RegionInfo regionInfo, AgentCircuitManager circuitManager, CommunicationsManager m_commsManager,
+ public static Scene CreateScene(RegionInfo regionInfo, AgentCircuitManager circuitManager,
StorageManager storageManager, ModuleLoader m_moduleLoader, ConfigSettings m_configSettings, OpenSimConfigSource m_config, string m_version)
{
- HGSceneCommunicationService sceneGridService = new HGSceneCommunicationService(m_commsManager);
+ HGSceneCommunicationService sceneGridService = new HGSceneCommunicationService();
return
new HGScene(
- regionInfo, circuitManager, m_commsManager, sceneGridService, storageManager,
+ regionInfo, circuitManager, sceneGridService, storageManager,
m_moduleLoader, false, m_configSettings.PhysicalPrim,
m_configSettings.See_into_region_from_neighbor, m_config.Source, m_version);
}
diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs
index d745fdc..7963785 100644
--- a/OpenSim/Region/Application/OpenSimBase.cs
+++ b/OpenSim/Region/Application/OpenSimBase.cs
@@ -607,13 +607,13 @@ namespace OpenSim
{
bool hgrid = ConfigSource.Source.Configs["Startup"].GetBoolean("hypergrid", false);
if (hgrid)
- return HGCommands.CreateScene(regionInfo, circuitManager, m_commsManager,
+ return HGCommands.CreateScene(regionInfo, circuitManager,
storageManager, m_moduleLoader, m_configSettings, m_config, m_version);
- SceneCommunicationService sceneGridService = new SceneCommunicationService(m_commsManager);
+ SceneCommunicationService sceneGridService = new SceneCommunicationService();
return new Scene(
- regionInfo, circuitManager, m_commsManager, sceneGridService,
+ regionInfo, circuitManager, sceneGridService,
storageManager, m_moduleLoader, false, m_configSettings.PhysicalPrim,
m_configSettings.See_into_region_from_neighbor, m_config.Source, m_version);
}
diff --git a/OpenSim/Region/ClientStack/RegionApplicationBase.cs b/OpenSim/Region/ClientStack/RegionApplicationBase.cs
index fa6c9a8..0ec87e5 100644
--- a/OpenSim/Region/ClientStack/RegionApplicationBase.cs
+++ b/OpenSim/Region/ClientStack/RegionApplicationBase.cs
@@ -56,13 +56,6 @@ namespace OpenSim.Region.ClientStack
protected uint m_httpServerPort;
- public CommunicationsManager CommunicationsManager
- {
- get { return m_commsManager; }
- set { m_commsManager = value; }
- }
- protected CommunicationsManager m_commsManager;
-
protected StorageManager m_storageManager;
protected ClientStackManager m_clientStackManager;
diff --git a/OpenSim/Region/CoreModules/Framework/Library/LibraryModule.cs b/OpenSim/Region/CoreModules/Framework/Library/LibraryModule.cs
index cc5b0e4..cf06e01 100644
--- a/OpenSim/Region/CoreModules/Framework/Library/LibraryModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/Library/LibraryModule.cs
@@ -157,7 +157,6 @@ namespace OpenSim.Region.CoreModules.Framework.Library
RegionInfo regInfo = new RegionInfo();
Scene m_MockScene = new Scene(regInfo);
- m_MockScene.CommsManager = m_Scene.CommsManager;
LocalInventoryService invService = new LocalInventoryService(lib);
m_MockScene.RegisterModuleInterface(invService);
m_MockScene.RegisterModuleInterface(m_Scene.AssetService);
diff --git a/OpenSim/Region/CoreModules/InterGrid/OGSRadmin.cs b/OpenSim/Region/CoreModules/InterGrid/OGSRadmin.cs
index f9bc935..b7d3904 100644
--- a/OpenSim/Region/CoreModules/InterGrid/OGSRadmin.cs
+++ b/OpenSim/Region/CoreModules/InterGrid/OGSRadmin.cs
@@ -46,7 +46,6 @@ namespace OpenSim.Region.CoreModules.InterGrid
{
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
private readonly List m_scenes = new List();
- private CommunicationsManager m_com;
private IConfigSource m_settings;
#region Implementation of IRegionModuleBase
@@ -88,7 +87,6 @@ namespace OpenSim.Region.CoreModules.InterGrid
{
if (m_settings.Configs["Startup"].GetBoolean("gridmode", false))
{
- m_com = m_scenes[0].CommsManager;
MainServer.Instance.AddXmlRPCHandler("grid_message", GridWideMessage);
}
}
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs
index 81496d6..bd2d8cb 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs
@@ -58,8 +58,6 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation
protected LocalSimulationConnectorModule m_localBackend;
protected SimulationServiceConnector m_remoteConnector;
- protected CommunicationsManager m_commsManager;
-
protected IHyperlinkService m_hyperlinkService;
protected bool m_safemode;
@@ -150,7 +148,6 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation
protected virtual void InitOnce(Scene scene)
{
m_localBackend = new LocalSimulationConnectorModule();
- m_commsManager = scene.CommsManager;
m_aScene = scene;
//m_regionClient = new RegionToRegionClient(m_aScene, m_hyperlinkService);
m_thisIP = Util.GetHostFromDNS(scene.RegionInfo.ExternalHostName);
diff --git a/OpenSim/Region/Framework/Scenes/Hypergrid/HGScene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Hypergrid/HGScene.Inventory.cs
index 76d7a09..8e08912 100644
--- a/OpenSim/Region/Framework/Scenes/Hypergrid/HGScene.Inventory.cs
+++ b/OpenSim/Region/Framework/Scenes/Hypergrid/HGScene.Inventory.cs
@@ -64,11 +64,11 @@ namespace OpenSim.Region.Framework.Scenes.Hypergrid
#region Constructors
public HGScene(RegionInfo regInfo, AgentCircuitManager authen,
- CommunicationsManager commsMan, SceneCommunicationService sceneGridService,
+ SceneCommunicationService sceneGridService,
StorageManager storeManager,
ModuleLoader moduleLoader, bool dumpAssetsToFile, bool physicalPrim,
bool SeeIntoRegionFromNeighbor, IConfigSource config, string simulatorVersion)
- : base(regInfo, authen, commsMan, sceneGridService, storeManager, moduleLoader,
+ : base(regInfo, authen, sceneGridService, storeManager, moduleLoader,
dumpAssetsToFile, physicalPrim, SeeIntoRegionFromNeighbor, config, simulatorVersion)
{
m_log.Info("[HGScene]: Starting HGScene.");
diff --git a/OpenSim/Region/Framework/Scenes/Hypergrid/HGSceneCommunicationService.cs b/OpenSim/Region/Framework/Scenes/Hypergrid/HGSceneCommunicationService.cs
index 61419e6..a7a7c27 100644
--- a/OpenSim/Region/Framework/Scenes/Hypergrid/HGSceneCommunicationService.cs
+++ b/OpenSim/Region/Framework/Scenes/Hypergrid/HGSceneCommunicationService.cs
@@ -58,7 +58,7 @@ namespace OpenSim.Region.Framework.Scenes.Hypergrid
}
}
- public HGSceneCommunicationService(CommunicationsManager commsMan) : base(commsMan)
+ public HGSceneCommunicationService() : base()
{
}
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 0493b4c..618e153 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -140,7 +140,6 @@ namespace OpenSim.Region.Framework.Scenes
protected ModuleLoader m_moduleLoader;
protected StorageManager m_storageManager;
protected AgentCircuitManager m_authenticateHandler;
- public CommunicationsManager CommsManager;
protected SceneCommunicationService m_sceneGridService;
public bool loginsdisabled = true;
@@ -547,7 +546,7 @@ namespace OpenSim.Region.Framework.Scenes
#region Constructors
public Scene(RegionInfo regInfo, AgentCircuitManager authen,
- CommunicationsManager commsMan, SceneCommunicationService sceneGridService,
+ SceneCommunicationService sceneGridService,
StorageManager storeManager,
ModuleLoader moduleLoader, bool dumpAssetsToFile, bool physicalPrim,
bool SeeIntoRegionFromNeighbor, IConfigSource config, string simulatorVersion)
@@ -583,7 +582,6 @@ namespace OpenSim.Region.Framework.Scenes
m_lastAllocatedLocalId = (uint)(random.NextDouble() * (double)(uint.MaxValue/2))+(uint)(uint.MaxValue/4);
m_moduleLoader = moduleLoader;
m_authenticateHandler = authen;
- CommsManager = commsMan;
m_sceneGridService = sceneGridService;
m_storageManager = storeManager;
m_regInfo = regInfo;
diff --git a/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs b/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
index 2e82748..269bd4a 100644
--- a/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
@@ -56,7 +56,6 @@ namespace OpenSim.Region.Framework.Scenes
{
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
- protected CommunicationsManager m_commsProvider;
protected RegionInfo m_regionInfo;
protected Scene m_scene;
@@ -124,9 +123,8 @@ namespace OpenSim.Region.Framework.Scenes
public KiPrimitiveDelegate KiPrimitive;
- public SceneCommunicationService(CommunicationsManager commsMan)
+ public SceneCommunicationService()
{
- m_commsProvider = commsMan;
m_agentsInTransit = new List();
}
diff --git a/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs b/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs
index 2365e16..501207e 100644
--- a/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs
+++ b/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTests.cs
@@ -58,7 +58,6 @@ namespace OpenSim.Region.Framework.Scenes.Tests
public UUID agent1, agent2, agent3;
public static Random random;
public ulong region1,region2,region3;
- public TestCommunicationsManager cm;
public AgentCircuitData acd1;
public SceneObjectGroup sog1, sog2, sog3;
public TestClient testclient;
@@ -66,10 +65,9 @@ namespace OpenSim.Region.Framework.Scenes.Tests
[TestFixtureSetUp]
public void Init()
{
- cm = new TestCommunicationsManager();
- scene = SceneSetupHelpers.SetupScene("Neighbour x", UUID.Random(), 1000, 1000, cm);
- scene2 = SceneSetupHelpers.SetupScene("Neighbour x+1", UUID.Random(), 1001, 1000, cm);
- scene3 = SceneSetupHelpers.SetupScene("Neighbour x-1", UUID.Random(), 999, 1000, cm);
+ scene = SceneSetupHelpers.SetupScene("Neighbour x", UUID.Random(), 1000, 1000);
+ scene2 = SceneSetupHelpers.SetupScene("Neighbour x+1", UUID.Random(), 1001, 1000);
+ scene3 = SceneSetupHelpers.SetupScene("Neighbour x-1", UUID.Random(), 999, 1000);
ISharedRegionModule interregionComms = new LocalSimulationConnectorModule();
interregionComms.Initialise(new IniConfigSource());
diff --git a/OpenSim/Region/Framework/Scenes/Tests/SceneTests.cs b/OpenSim/Region/Framework/Scenes/Tests/SceneTests.cs
index 8a27b7b..c77220c 100644
--- a/OpenSim/Region/Framework/Scenes/Tests/SceneTests.cs
+++ b/OpenSim/Region/Framework/Scenes/Tests/SceneTests.cs
@@ -132,7 +132,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
RegionInfo regionInfo = new RegionInfo(0,0,null,null);
FakeStorageManager storageManager = new FakeStorageManager();
- new Scene(regionInfo, null, null, null, storageManager, null, false, false, false, null, null);
+ new Scene(regionInfo, null, null, storageManager, null, false, false, false, null, null);
}
}
}
diff --git a/OpenSim/Region/Framework/Scenes/Tests/StandaloneTeleportTests.cs b/OpenSim/Region/Framework/Scenes/Tests/StandaloneTeleportTests.cs
index a030dc4..cafe48a 100644
--- a/OpenSim/Region/Framework/Scenes/Tests/StandaloneTeleportTests.cs
+++ b/OpenSim/Region/Framework/Scenes/Tests/StandaloneTeleportTests.cs
@@ -113,17 +113,16 @@ namespace OpenSim.Region.Framework.Scenes.Tests
UUID sceneAId = UUID.Parse("00000000-0000-0000-0000-000000000100");
UUID sceneBId = UUID.Parse("00000000-0000-0000-0000-000000000200");
- TestCommunicationsManager cm = new TestCommunicationsManager();
// shared module
ISharedRegionModule interregionComms = new LocalSimulationConnectorModule();
- Scene sceneB = SceneSetupHelpers.SetupScene("sceneB", sceneBId, 1010, 1010, cm, "grid");
+ Scene sceneB = SceneSetupHelpers.SetupScene("sceneB", sceneBId, 1010, 1010, "grid");
SceneSetupHelpers.SetupSceneModules(sceneB, new IniConfigSource(), interregionComms);
sceneB.RegisterRegionWithGrid();
- Scene sceneA = SceneSetupHelpers.SetupScene("sceneA", sceneAId, 1000, 1000, cm, "grid");
+ Scene sceneA = SceneSetupHelpers.SetupScene("sceneA", sceneAId, 1000, 1000, "grid");
SceneSetupHelpers.SetupSceneModules(sceneA, new IniConfigSource(), interregionComms);
sceneA.RegisterRegionWithGrid();
diff --git a/OpenSim/Tests/Common/Mock/TestCommunicationsManager.cs b/OpenSim/Tests/Common/Mock/TestCommunicationsManager.cs
deleted file mode 100644
index 8e193c1..0000000
--- a/OpenSim/Tests/Common/Mock/TestCommunicationsManager.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * Copyright (c) Contributors, http://opensimulator.org/
- * See CONTRIBUTORS.TXT for a full list of copyright holders.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * * Neither the name of the OpenSimulator Project nor the
- * names of its contributors may be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-using OpenSim.Framework;
-using OpenSim.Framework.Communications;
-using OpenSim.Framework.Communications.Cache;
-using OpenSim.Framework.Servers;
-using OpenSim.Framework.Servers.HttpServer;
-using OpenSim.Data;
-
-namespace OpenSim.Tests.Common.Mock
-{
- public class TestCommunicationsManager : CommunicationsManager
- {
- public IUserDataPlugin UserDataPlugin
- {
- get { return m_userDataPlugin; }
- }
- private IUserDataPlugin m_userDataPlugin;
-
- // public IInventoryDataPlugin InventoryDataPlugin
- // {
- // get { return m_inventoryDataPlugin; }
- // }
- // private IInventoryDataPlugin m_inventoryDataPlugin;
-
- public TestCommunicationsManager()
- : this(null)
- {
- }
-
- public TestCommunicationsManager(NetworkServersInfo serversInfo)
- : base(serversInfo, null)
- {
-
- }
- }
-}
diff --git a/OpenSim/Tests/Common/Mock/TestScene.cs b/OpenSim/Tests/Common/Mock/TestScene.cs
index 22cfa2c..bf3825b 100644
--- a/OpenSim/Tests/Common/Mock/TestScene.cs
+++ b/OpenSim/Tests/Common/Mock/TestScene.cs
@@ -40,10 +40,10 @@ namespace OpenSim.Tests.Common.Mock
{
public TestScene(
RegionInfo regInfo, AgentCircuitManager authen,
- CommunicationsManager commsMan, SceneCommunicationService sceneGridService, StorageManager storeManager,
+ SceneCommunicationService sceneGridService, StorageManager storeManager,
ModuleLoader moduleLoader, bool dumpAssetsToFile, bool physicalPrim,
bool SeeIntoRegionFromNeighbor, IConfigSource config, string simulatorVersion)
- : base(regInfo, authen, commsMan, sceneGridService, storeManager, moduleLoader,
+ : base(regInfo, authen, sceneGridService, storeManager, moduleLoader,
dumpAssetsToFile, physicalPrim, SeeIntoRegionFromNeighbor, config, simulatorVersion)
{
}
diff --git a/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs b/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs
index dbb8fd4..f6c9f3b 100644
--- a/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs
+++ b/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs
@@ -60,7 +60,6 @@ namespace OpenSim.Tests.Common.Setup
private static ISharedRegionModule m_assetService = null;
private static ISharedRegionModule m_inventoryService = null;
private static ISharedRegionModule m_gridService = null;
- private static TestCommunicationsManager commsManager = null;
///
/// Set up a test scene
@@ -83,21 +82,23 @@ namespace OpenSim.Tests.Common.Setup
public static TestScene SetupScene(String realServices)
{
return SetupScene(
- "Unit test region", UUID.Random(), 1000, 1000, new TestCommunicationsManager(), realServices);
+ "Unit test region", UUID.Random(), 1000, 1000, realServices);
}
- ///
- /// Set up a test scene
- ///
- ///
- /// Starts real inventory and asset services, as opposed to mock ones, if true
- /// This should be the same if simulating two scenes within a standalone
- ///
- public static TestScene SetupScene(TestCommunicationsManager cm, String realServices)
- {
- return SetupScene(
- "Unit test region", UUID.Random(), 1000, 1000, cm, "");
- }
+ // REFACTORING PROBLEM. No idea what the difference is with the previous one
+ /////
+ ///// Set up a test scene
+ /////
+ /////
+ ///// Starts real inventory and asset services, as opposed to mock ones, if true
+ ///// This should be the same if simulating two scenes within a standalone
+ /////
+ //public static TestScene SetupScene(String realServices)
+ //{
+ // return SetupScene(
+ // "Unit test region", UUID.Random(), 1000, 1000, "");
+ //}
+
///
/// Set up a test scene
///
@@ -107,9 +108,9 @@ namespace OpenSim.Tests.Common.Setup
/// Y co-ordinate of the region
/// This should be the same if simulating two scenes within a standalone
///
- public static TestScene SetupScene(string name, UUID id, uint x, uint y, TestCommunicationsManager cm)
+ public static TestScene SetupScene(string name, UUID id, uint x, uint y)
{
- return SetupScene(name, id, x, y, cm, "");
+ return SetupScene(name, id, x, y,"");
}
@@ -125,23 +126,24 @@ namespace OpenSim.Tests.Common.Setup
/// Starts real inventory and asset services, as opposed to mock ones, if true
///
public static TestScene SetupScene(
- string name, UUID id, uint x, uint y, TestCommunicationsManager cm, String realServices)
+ string name, UUID id, uint x, uint y, String realServices)
{
bool newScene = false;
Console.WriteLine("Setting up test scene {0}", name);
-
- // If cm is the same as our last commsManager used, this means the tester wants to link
- // regions. In this case, don't use the sameshared region modules and dont initialize them again.
- // Also, no need to start another MainServer and MainConsole instance.
- if (cm == null || cm != commsManager)
- {
- System.Console.WriteLine("Starting a brand new scene");
- newScene = true;
- MainConsole.Instance = new LocalConsole("TEST PROMPT");
- MainServer.Instance = new BaseHttpServer(980);
- commsManager = cm;
- }
+
+ // REFACTORING PROBLEM!
+ //// If cm is the same as our last commsManager used, this means the tester wants to link
+ //// regions. In this case, don't use the sameshared region modules and dont initialize them again.
+ //// Also, no need to start another MainServer and MainConsole instance.
+ //if (cm == null || cm != commsManager)
+ //{
+ // System.Console.WriteLine("Starting a brand new scene");
+ // newScene = true;
+ // MainConsole.Instance = new LocalConsole("TEST PROMPT");
+ // MainServer.Instance = new BaseHttpServer(980);
+ // commsManager = cm;
+ //}
// We must set up a console otherwise setup of some modules may fail
RegionInfo regInfo = new RegionInfo(x, y, new IPEndPoint(IPAddress.Loopback, 9000), "127.0.0.1");
@@ -149,13 +151,13 @@ namespace OpenSim.Tests.Common.Setup
regInfo.RegionID = id;
AgentCircuitManager acm = new AgentCircuitManager();
- SceneCommunicationService scs = new SceneCommunicationService(cm);
+ SceneCommunicationService scs = new SceneCommunicationService();
StorageManager sm = new StorageManager("OpenSim.Data.Null.dll", "", "");
IConfigSource configSource = new IniConfigSource();
TestScene testScene = new TestScene(
- regInfo, acm, cm, scs, sm, null, false, false, false, configSource, null);
+ regInfo, acm, scs, sm, null, false, false, false, configSource, null);
INonSharedRegionModule capsModule = new CapabilitiesModule();
capsModule.Initialise(new IniConfigSource());
--
cgit v1.1