diff options
-rw-r--r-- | OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequest.cs (renamed from OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestPreparation.cs) | 8 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/World/Archiver/ArchiverModule.cs | 4 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/World/Archiver/Tests/ArchiverTests.cs | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestPreparation.cs b/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequest.cs index 2c34f4b..d751b1c 100644 --- a/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestPreparation.cs +++ b/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequest.cs | |||
@@ -50,7 +50,7 @@ namespace OpenSim.Region.CoreModules.World.Archiver | |||
50 | /// <summary> | 50 | /// <summary> |
51 | /// Prepare to write out an archive. | 51 | /// Prepare to write out an archive. |
52 | /// </summary> | 52 | /// </summary> |
53 | public class ArchiveWriteRequestPreparation | 53 | public class ArchiveWriteRequest |
54 | { | 54 | { |
55 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 55 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
56 | 56 | ||
@@ -95,7 +95,7 @@ namespace OpenSim.Region.CoreModules.World.Archiver | |||
95 | /// <exception cref="System.IO.IOException"> | 95 | /// <exception cref="System.IO.IOException"> |
96 | /// If there was a problem opening a stream for the file specified by the savePath | 96 | /// If there was a problem opening a stream for the file specified by the savePath |
97 | /// </exception> | 97 | /// </exception> |
98 | public ArchiveWriteRequestPreparation(Scene scene, string savePath, Guid requestId) : this(scene, requestId) | 98 | public ArchiveWriteRequest(Scene scene, string savePath, Guid requestId) : this(scene, requestId) |
99 | { | 99 | { |
100 | try | 100 | try |
101 | { | 101 | { |
@@ -116,12 +116,12 @@ namespace OpenSim.Region.CoreModules.World.Archiver | |||
116 | /// <param name="scene">The root scene to archive</param> | 116 | /// <param name="scene">The root scene to archive</param> |
117 | /// <param name="saveStream">The stream to which to save data.</param> | 117 | /// <param name="saveStream">The stream to which to save data.</param> |
118 | /// <param name="requestId">The id associated with this request</param> | 118 | /// <param name="requestId">The id associated with this request</param> |
119 | public ArchiveWriteRequestPreparation(Scene scene, Stream saveStream, Guid requestId) : this(scene, requestId) | 119 | public ArchiveWriteRequest(Scene scene, Stream saveStream, Guid requestId) : this(scene, requestId) |
120 | { | 120 | { |
121 | m_saveStream = saveStream; | 121 | m_saveStream = saveStream; |
122 | } | 122 | } |
123 | 123 | ||
124 | protected ArchiveWriteRequestPreparation(Scene scene, Guid requestId) | 124 | protected ArchiveWriteRequest(Scene scene, Guid requestId) |
125 | { | 125 | { |
126 | m_rootScene = scene; | 126 | m_rootScene = scene; |
127 | m_requestId = requestId; | 127 | m_requestId = requestId; |
diff --git a/OpenSim/Region/CoreModules/World/Archiver/ArchiverModule.cs b/OpenSim/Region/CoreModules/World/Archiver/ArchiverModule.cs index 26535a9..2a87dc2 100644 --- a/OpenSim/Region/CoreModules/World/Archiver/ArchiverModule.cs +++ b/OpenSim/Region/CoreModules/World/Archiver/ArchiverModule.cs | |||
@@ -170,7 +170,7 @@ namespace OpenSim.Region.CoreModules.World.Archiver | |||
170 | m_log.InfoFormat( | 170 | m_log.InfoFormat( |
171 | "[ARCHIVER]: Writing archive for region {0} to {1}", Scene.RegionInfo.RegionName, savePath); | 171 | "[ARCHIVER]: Writing archive for region {0} to {1}", Scene.RegionInfo.RegionName, savePath); |
172 | 172 | ||
173 | new ArchiveWriteRequestPreparation(Scene, savePath, requestId).ArchiveRegion(options); | 173 | new ArchiveWriteRequest(Scene, savePath, requestId).ArchiveRegion(options); |
174 | } | 174 | } |
175 | 175 | ||
176 | public void ArchiveRegion(Stream saveStream) | 176 | public void ArchiveRegion(Stream saveStream) |
@@ -185,7 +185,7 @@ namespace OpenSim.Region.CoreModules.World.Archiver | |||
185 | 185 | ||
186 | public void ArchiveRegion(Stream saveStream, Guid requestId, Dictionary<string, object> options) | 186 | public void ArchiveRegion(Stream saveStream, Guid requestId, Dictionary<string, object> options) |
187 | { | 187 | { |
188 | new ArchiveWriteRequestPreparation(Scene, saveStream, requestId).ArchiveRegion(options); | 188 | new ArchiveWriteRequest(Scene, saveStream, requestId).ArchiveRegion(options); |
189 | } | 189 | } |
190 | 190 | ||
191 | public void DearchiveRegion(string loadPath) | 191 | public void DearchiveRegion(string loadPath) |
diff --git a/OpenSim/Region/CoreModules/World/Archiver/Tests/ArchiverTests.cs b/OpenSim/Region/CoreModules/World/Archiver/Tests/ArchiverTests.cs index cfdfd8c..abbaf41 100644 --- a/OpenSim/Region/CoreModules/World/Archiver/Tests/ArchiverTests.cs +++ b/OpenSim/Region/CoreModules/World/Archiver/Tests/ArchiverTests.cs | |||
@@ -311,7 +311,7 @@ namespace OpenSim.Region.CoreModules.World.Archiver.Tests | |||
311 | 311 | ||
312 | tar.WriteFile( | 312 | tar.WriteFile( |
313 | ArchiveConstants.CONTROL_FILE_PATH, | 313 | ArchiveConstants.CONTROL_FILE_PATH, |
314 | new ArchiveWriteRequestPreparation(m_scene, (Stream)null, Guid.Empty).CreateControlFile(new ArchiveScenesGroup())); | 314 | new ArchiveWriteRequest(m_scene, (Stream)null, Guid.Empty).CreateControlFile(new ArchiveScenesGroup())); |
315 | 315 | ||
316 | SceneObjectGroup sog1 = SceneHelpers.CreateSceneObject(1, ownerId, "obj1-", 0x11); | 316 | SceneObjectGroup sog1 = SceneHelpers.CreateSceneObject(1, ownerId, "obj1-", 0x11); |
317 | SceneObjectPart sop2 | 317 | SceneObjectPart sop2 |
@@ -369,7 +369,7 @@ namespace OpenSim.Region.CoreModules.World.Archiver.Tests | |||
369 | 369 | ||
370 | tar.WriteFile( | 370 | tar.WriteFile( |
371 | ArchiveConstants.CONTROL_FILE_PATH, | 371 | ArchiveConstants.CONTROL_FILE_PATH, |
372 | new ArchiveWriteRequestPreparation(m_scene, (Stream)null, Guid.Empty).CreateControlFile(new ArchiveScenesGroup())); | 372 | new ArchiveWriteRequest(m_scene, (Stream)null, Guid.Empty).CreateControlFile(new ArchiveScenesGroup())); |
373 | SceneObjectPart part1 = CreateSceneObjectPart1(); | 373 | SceneObjectPart part1 = CreateSceneObjectPart1(); |
374 | 374 | ||
375 | part1.SitTargetOrientation = new Quaternion(0.2f, 0.3f, 0.4f, 0.5f); | 375 | part1.SitTargetOrientation = new Quaternion(0.2f, 0.3f, 0.4f, 0.5f); |
@@ -559,7 +559,7 @@ namespace OpenSim.Region.CoreModules.World.Archiver.Tests | |||
559 | tar.WriteDir(ArchiveConstants.TERRAINS_PATH); | 559 | tar.WriteDir(ArchiveConstants.TERRAINS_PATH); |
560 | tar.WriteFile( | 560 | tar.WriteFile( |
561 | ArchiveConstants.CONTROL_FILE_PATH, | 561 | ArchiveConstants.CONTROL_FILE_PATH, |
562 | new ArchiveWriteRequestPreparation(m_scene, (Stream)null, Guid.Empty).CreateControlFile(new ArchiveScenesGroup())); | 562 | new ArchiveWriteRequest(m_scene, (Stream)null, Guid.Empty).CreateControlFile(new ArchiveScenesGroup())); |
563 | 563 | ||
564 | RegionSettings rs = new RegionSettings(); | 564 | RegionSettings rs = new RegionSettings(); |
565 | rs.AgentLimit = 17; | 565 | rs.AgentLimit = 17; |