From 2c0cad6dd3014e9ad363090f5f7872c43daffcbd Mon Sep 17 00:00:00 2001
From: Diva Canto
Date: Sun, 30 Aug 2015 20:29:31 -0700
Subject: Renamed the namespaces too
---
.../Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 2 +-
.../CoreModules/Framework/EntityTransfer/EntityTransferStateMachine.cs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
(limited to 'OpenSim/Region/CoreModules/Framework')
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
index 4be19f0..371b4f2 100644
--- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
@@ -36,7 +36,7 @@ using OpenSim.Framework.Client;
using OpenSim.Framework.Monitoring;
using OpenSim.Region.Framework.Interfaces;
using OpenSim.Region.Framework.Scenes;
-using OpenSim.Region.Physics.Manager;
+using OpenSim.Region.PhysicsModule.SharedBase;
using OpenSim.Services.Interfaces;
using GridRegion = OpenSim.Services.Interfaces.GridRegion;
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferStateMachine.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferStateMachine.cs
index 6a04acf..0f57aee 100644
--- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferStateMachine.cs
+++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferStateMachine.cs
@@ -38,7 +38,7 @@ using OpenSim.Framework.Capabilities;
using OpenSim.Framework.Client;
using OpenSim.Region.Framework.Interfaces;
using OpenSim.Region.Framework.Scenes;
-using OpenSim.Region.Physics.Manager;
+using OpenSim.Region.PhysicsModule.SharedBase;
using OpenSim.Services.Interfaces;
using GridRegion = OpenSim.Services.Interfaces.GridRegion;
--
cgit v1.1
From ce2c67876e0ebf4f84420696f660dc77d96dea6b Mon Sep 17 00:00:00 2001
From: Diva Canto
Date: Sun, 30 Aug 2015 21:05:36 -0700
Subject: More namespace and dll name changes. Still no functional changes.
---
.../Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 2 +-
.../CoreModules/Framework/EntityTransfer/EntityTransferStateMachine.cs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
(limited to 'OpenSim/Region/CoreModules/Framework')
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
index 371b4f2..f3acff2 100644
--- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
@@ -36,7 +36,7 @@ using OpenSim.Framework.Client;
using OpenSim.Framework.Monitoring;
using OpenSim.Region.Framework.Interfaces;
using OpenSim.Region.Framework.Scenes;
-using OpenSim.Region.PhysicsModule.SharedBase;
+using OpenSim.Region.PhysicsModules.SharedBase;
using OpenSim.Services.Interfaces;
using GridRegion = OpenSim.Services.Interfaces.GridRegion;
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferStateMachine.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferStateMachine.cs
index 0f57aee..a3109e0 100644
--- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferStateMachine.cs
+++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferStateMachine.cs
@@ -38,7 +38,7 @@ using OpenSim.Framework.Capabilities;
using OpenSim.Framework.Client;
using OpenSim.Region.Framework.Interfaces;
using OpenSim.Region.Framework.Scenes;
-using OpenSim.Region.PhysicsModule.SharedBase;
+using OpenSim.Region.PhysicsModules.SharedBase;
using OpenSim.Services.Interfaces;
using GridRegion = OpenSim.Services.Interfaces.GridRegion;
--
cgit v1.1
From 134d4300f0b6e9b0df0326cfe0b5df9f41f42865 Mon Sep 17 00:00:00 2001
From: Diva Canto
Date: Mon, 31 Aug 2015 13:02:51 -0700
Subject: All physics plugins are now region modules. Compiles but doesn't run.
---
.../Framework/Statistics/Logging/LogWriter.cs | 181 ---------------------
1 file changed, 181 deletions(-)
delete mode 100755 OpenSim/Region/CoreModules/Framework/Statistics/Logging/LogWriter.cs
(limited to 'OpenSim/Region/CoreModules/Framework')
diff --git a/OpenSim/Region/CoreModules/Framework/Statistics/Logging/LogWriter.cs b/OpenSim/Region/CoreModules/Framework/Statistics/Logging/LogWriter.cs
deleted file mode 100755
index a176958..0000000
--- a/OpenSim/Region/CoreModules/Framework/Statistics/Logging/LogWriter.cs
+++ /dev/null
@@ -1,181 +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.IO;
-using System.Text;
-using log4net;
-
-namespace OpenSim.Region.CoreModules.Framework.Statistics.Logging
-{
- ///
- /// Class for writing a high performance, high volume log file.
- /// Sometimes, to debug, one has a high volume logging to do and the regular
- /// log file output is not appropriate.
- /// Create a new instance with the parameters needed and
- /// call Write() to output a line. Call Close() when finished.
- /// If created with no parameters, it will not log anything.
- ///
- public class LogWriter : IDisposable
- {
- public bool Enabled { get; private set; }
-
- private string m_logDirectory = ".";
- private int m_logMaxFileTimeMin = 5; // 5 minutes
- public String LogFileHeader { get; set; }
-
- private StreamWriter m_logFile = null;
- private TimeSpan m_logFileLife;
- private DateTime m_logFileEndTime;
- private Object m_logFileWriteLock = new Object();
- private bool m_flushWrite;
-
- // set externally when debugging. If let 'null', this does not write any error messages.
- public ILog ErrorLogger = null;
- private string LogHeader = "[LOG WRITER]";
-
- ///
- /// Create a log writer that will not write anything. Good for when not enabled
- /// but the write statements are still in the code.
- ///
- public LogWriter()
- {
- Enabled = false;
- m_logFile = null;
- }
-
- ///
- /// Create a log writer instance.
- ///
- /// The directory to create the log file in. May be 'null' for default.
- /// The characters that begin the log file name. May be 'null' for default.
- /// Maximum age of a log file in minutes. If zero, will set default.
- /// Whether to do a flush after every log write. Best left off but
- /// if one is looking for a crash, this is a good thing to turn on.
- public LogWriter(string dir, string headr, int maxFileTime, bool flushWrite)
- {
- m_logDirectory = dir == null ? "." : dir;
-
- LogFileHeader = headr == null ? "log-" : headr;
-
- m_logMaxFileTimeMin = maxFileTime;
- if (m_logMaxFileTimeMin < 1)
- m_logMaxFileTimeMin = 5;
-
- m_logFileLife = new TimeSpan(0, m_logMaxFileTimeMin, 0);
- m_logFileEndTime = DateTime.Now + m_logFileLife;
-
- m_flushWrite = flushWrite;
-
- Enabled = true;
- }
- // Constructor that assumes flushWrite is off.
- public LogWriter(string dir, string headr, int maxFileTime) : this(dir, headr, maxFileTime, false)
- {
- }
-
- public void Dispose()
- {
- this.Close();
- }
-
- public void Close()
- {
- Enabled = false;
- if (m_logFile != null)
- {
- m_logFile.Close();
- m_logFile.Dispose();
- m_logFile = null;
- }
- }
-
- public void Write(string line, params object[] args)
- {
- if (!Enabled) return;
- Write(String.Format(line, args));
- }
-
- public void Flush()
- {
- if (!Enabled) return;
- if (m_logFile != null)
- {
- m_logFile.Flush();
- }
- }
-
- public void Write(string line)
- {
- if (!Enabled) return;
- try
- {
- lock (m_logFileWriteLock)
- {
- DateTime now = DateTime.UtcNow;
- if (m_logFile == null || now > m_logFileEndTime)
- {
- if (m_logFile != null)
- {
- m_logFile.Close();
- m_logFile.Dispose();
- m_logFile = null;
- }
-
- // First log file or time has expired, start writing to a new log file
- m_logFileEndTime = now + m_logFileLife;
- string path = (m_logDirectory.Length > 0 ? m_logDirectory
- + System.IO.Path.DirectorySeparatorChar.ToString() : "")
- + String.Format("{0}{1}.log", LogFileHeader, now.ToString("yyyyMMddHHmmss"));
- m_logFile = new StreamWriter(File.Open(path, FileMode.Append, FileAccess.Write, FileShare.ReadWrite));
- }
- if (m_logFile != null)
- {
- StringBuilder buff = new StringBuilder(line.Length + 25);
- buff.Append(now.ToString("yyyyMMddHHmmssfff"));
- // buff.Append(now.ToString("yyyyMMddHHmmss"));
- buff.Append(",");
- buff.Append(line);
- buff.Append("\r\n");
- m_logFile.Write(buff.ToString());
- if (m_flushWrite)
- m_logFile.Flush();
- }
- }
- }
- catch (Exception e)
- {
- if (ErrorLogger != null)
- {
- ErrorLogger.ErrorFormat("{0}: FAILURE WRITING TO LOGFILE: {1}", LogHeader, e);
- }
- Enabled = false;
- }
- return;
- }
- }
-}
--
cgit v1.1
From 11194209df8a29f5103e6e34104eae7834f3280a Mon Sep 17 00:00:00 2001
From: Diva Canto
Date: Mon, 31 Aug 2015 14:09:15 -0700
Subject: First commit where physics work as region module. Moved all physics
dlls out of Physics and into bin directly, so they can be found by the module
loader. Removed call to PhysicsPluginManager.
---
OpenSim/Region/CoreModules/Framework/Library/LibraryModule.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'OpenSim/Region/CoreModules/Framework')
diff --git a/OpenSim/Region/CoreModules/Framework/Library/LibraryModule.cs b/OpenSim/Region/CoreModules/Framework/Library/LibraryModule.cs
index d10c9b4..69d7e16 100644
--- a/OpenSim/Region/CoreModules/Framework/Library/LibraryModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/Library/LibraryModule.cs
@@ -159,7 +159,7 @@ namespace OpenSim.Region.CoreModules.Framework.Library
}
RegionInfo regInfo = new RegionInfo();
- Scene m_MockScene = new Scene(regInfo, null);
+ Scene m_MockScene = new Scene(regInfo);
LocalInventoryService invService = new LocalInventoryService(lib);
m_MockScene.RegisterModuleInterface(invService);
m_MockScene.RegisterModuleInterface(m_Scene.AssetService);
--
cgit v1.1
From d00f73c3a4cac77c97dcf4df1613fb85a516ffb4 Mon Sep 17 00:00:00 2001
From: Diva Canto
Date: Fri, 4 Sep 2015 14:39:23 -0700
Subject: Deleted OpenSim.Framework.Communications. Moved its two remaining
files to OpenSim.Framework.
---
.../Framework/InventoryAccess/Tests/InventoryAccessModuleTests.cs | 1 -
OpenSim/Region/CoreModules/Framework/Library/LibraryModule.cs | 1 -
2 files changed, 2 deletions(-)
(limited to 'OpenSim/Region/CoreModules/Framework')
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/Tests/InventoryAccessModuleTests.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/Tests/InventoryAccessModuleTests.cs
index c64ab44..1d91165 100644
--- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/Tests/InventoryAccessModuleTests.cs
+++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/Tests/InventoryAccessModuleTests.cs
@@ -37,7 +37,6 @@ using OpenSim.Data;
using OpenSim.Framework;
using OpenSim.Framework.Serialization;
using OpenSim.Framework.Serialization.External;
-using OpenSim.Framework.Communications;
using OpenSim.Region.CoreModules.Avatar.Inventory.Archiver;
using OpenSim.Region.CoreModules.Framework.InventoryAccess;
using OpenSim.Region.Framework.Scenes;
diff --git a/OpenSim/Region/CoreModules/Framework/Library/LibraryModule.cs b/OpenSim/Region/CoreModules/Framework/Library/LibraryModule.cs
index 69d7e16..862f0b7 100644
--- a/OpenSim/Region/CoreModules/Framework/Library/LibraryModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/Library/LibraryModule.cs
@@ -30,7 +30,6 @@ using System.IO;
using System.Reflection;
using OpenSim.Framework;
-using OpenSim.Framework.Communications;
using OpenSim.Region.CoreModules.Avatar.Inventory.Archiver;
using OpenSim.Region.Framework;
--
cgit v1.1