diff options
author | diva | 2009-05-15 05:00:25 +0000 |
---|---|---|
committer | diva | 2009-05-15 05:00:25 +0000 |
commit | 5e4fc6e91e5edffd1dc23af4f583d6294f394a3d (patch) | |
tree | 497076db68193be2d14fc3788c1d80c74d8c977d /OpenSim/Framework/Communications | |
parent | some sculpted prim geometry accuracy and meshing speed improvements (diff) | |
download | opensim-SC-5e4fc6e91e5edffd1dc23af4f583d6294f394a3d.zip opensim-SC-5e4fc6e91e5edffd1dc23af4f583d6294f394a3d.tar.gz opensim-SC-5e4fc6e91e5edffd1dc23af4f583d6294f394a3d.tar.bz2 opensim-SC-5e4fc6e91e5edffd1dc23af4f583d6294f394a3d.tar.xz |
Heart surgery on asset service code bits. Affects OpenSim.ini configuration -- please see the example. Affects region servers only.
This may break a lot of things, but it needs to go in. It was tested in standalone and the UCI grid, but it needs a lot more testing.
Known problems:
* HG asset transfers are borked for now
* missing texture is missing
* 3 unit tests commented out for now
Diffstat (limited to 'OpenSim/Framework/Communications')
-rw-r--r-- | OpenSim/Framework/Communications/Capabilities/Caps.cs | 7 | ||||
-rw-r--r-- | OpenSim/Framework/Communications/Services/HGInventoryService.cs | 9 |
2 files changed, 9 insertions, 7 deletions
diff --git a/OpenSim/Framework/Communications/Capabilities/Caps.cs b/OpenSim/Framework/Communications/Capabilities/Caps.cs index 24cf0b6..27395e3 100644 --- a/OpenSim/Framework/Communications/Capabilities/Caps.cs +++ b/OpenSim/Framework/Communications/Capabilities/Caps.cs | |||
@@ -34,6 +34,7 @@ using log4net; | |||
34 | using OpenMetaverse; | 34 | using OpenMetaverse; |
35 | using OpenSim.Framework.Servers; | 35 | using OpenSim.Framework.Servers; |
36 | using OpenSim.Framework.Servers.HttpServer; | 36 | using OpenSim.Framework.Servers.HttpServer; |
37 | using OpenSim.Services.Interfaces; | ||
37 | 38 | ||
38 | // using OpenSim.Region.Framework.Interfaces; | 39 | // using OpenSim.Region.Framework.Interfaces; |
39 | 40 | ||
@@ -100,7 +101,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
100 | //private string eventQueue = "0100/"; | 101 | //private string eventQueue = "0100/"; |
101 | private IHttpServer m_httpListener; | 102 | private IHttpServer m_httpListener; |
102 | private UUID m_agentID; | 103 | private UUID m_agentID; |
103 | private IAssetCache m_assetCache; | 104 | private IAssetService m_assetCache; |
104 | private int m_eventQueueCount = 1; | 105 | private int m_eventQueueCount = 1; |
105 | private Queue<string> m_capsEventQueue = new Queue<string>(); | 106 | private Queue<string> m_capsEventQueue = new Queue<string>(); |
106 | private bool m_dumpAssetsToFile; | 107 | private bool m_dumpAssetsToFile; |
@@ -128,7 +129,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
128 | public FetchInventoryDescendentsCAPS CAPSFetchInventoryDescendents = null; | 129 | public FetchInventoryDescendentsCAPS CAPSFetchInventoryDescendents = null; |
129 | public GetClientDelegate GetClient = null; | 130 | public GetClientDelegate GetClient = null; |
130 | 131 | ||
131 | public Caps(IAssetCache assetCache, IHttpServer httpServer, string httpListen, uint httpPort, string capsPath, | 132 | public Caps(IAssetService assetCache, IHttpServer httpServer, string httpListen, uint httpPort, string capsPath, |
132 | UUID agent, bool dumpAssetsToFile, string regionName) | 133 | UUID agent, bool dumpAssetsToFile, string regionName) |
133 | { | 134 | { |
134 | m_assetCache = assetCache; | 135 | m_assetCache = assetCache; |
@@ -870,7 +871,7 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
870 | if (AddNewAsset != null) | 871 | if (AddNewAsset != null) |
871 | AddNewAsset(asset); | 872 | AddNewAsset(asset); |
872 | else if (m_assetCache != null) | 873 | else if (m_assetCache != null) |
873 | m_assetCache.AddAsset(asset); | 874 | m_assetCache.Store(asset); |
874 | 875 | ||
875 | InventoryItemBase item = new InventoryItemBase(); | 876 | InventoryItemBase item = new InventoryItemBase(); |
876 | item.Owner = m_agentID; | 877 | item.Owner = m_agentID; |
diff --git a/OpenSim/Framework/Communications/Services/HGInventoryService.cs b/OpenSim/Framework/Communications/Services/HGInventoryService.cs index 77a6177..5334a21 100644 --- a/OpenSim/Framework/Communications/Services/HGInventoryService.cs +++ b/OpenSim/Framework/Communications/Services/HGInventoryService.cs | |||
@@ -40,6 +40,7 @@ using Caps = OpenSim.Framework.Communications.Capabilities.Caps; | |||
40 | using LLSDHelpers = OpenSim.Framework.Communications.Capabilities.LLSDHelpers; | 40 | using LLSDHelpers = OpenSim.Framework.Communications.Capabilities.LLSDHelpers; |
41 | using OpenSim.Framework.Servers; | 41 | using OpenSim.Framework.Servers; |
42 | using OpenSim.Framework.Servers.HttpServer; | 42 | using OpenSim.Framework.Servers.HttpServer; |
43 | using OpenSim.Services.Interfaces; | ||
43 | 44 | ||
44 | using OpenMetaverse.StructuredData; | 45 | using OpenMetaverse.StructuredData; |
45 | 46 | ||
@@ -58,7 +59,7 @@ namespace OpenSim.Framework.Communications.Services | |||
58 | 59 | ||
59 | // These two used for local access, standalone mode | 60 | // These two used for local access, standalone mode |
60 | private UserManagerBase m_userService = null; | 61 | private UserManagerBase m_userService = null; |
61 | IAssetDataPlugin m_assetProvider = null; | 62 | IAssetService m_assetProvider = null; |
62 | 63 | ||
63 | // These two used for remote access | 64 | // These two used for remote access |
64 | //string m_UserServerURL = string.Empty; | 65 | //string m_UserServerURL = string.Empty; |
@@ -77,7 +78,7 @@ namespace OpenSim.Framework.Communications.Services | |||
77 | } | 78 | } |
78 | 79 | ||
79 | // Constructor for standalone mode | 80 | // Constructor for standalone mode |
80 | public HGInventoryService(InventoryServiceBase invService, IAssetDataPlugin assetService, UserManagerBase userService, IHttpServer httpserver, string thisurl) | 81 | public HGInventoryService(InventoryServiceBase invService, IAssetService assetService, UserManagerBase userService, IHttpServer httpserver, string thisurl) |
81 | { | 82 | { |
82 | m_userService = userService; | 83 | m_userService = userService; |
83 | m_assetProvider = assetService; | 84 | m_assetProvider = assetService; |
@@ -708,7 +709,7 @@ namespace OpenSim.Framework.Communications.Services | |||
708 | return m_AssetClient.SyncGetAsset(assetID, isTexture); | 709 | return m_AssetClient.SyncGetAsset(assetID, isTexture); |
709 | // local call | 710 | // local call |
710 | else | 711 | else |
711 | return m_assetProvider.FetchAsset(assetID); | 712 | return m_assetProvider.Get(assetID.ToString()); |
712 | } | 713 | } |
713 | 714 | ||
714 | void StoreAsset(AssetBase asset) | 715 | void StoreAsset(AssetBase asset) |
@@ -718,7 +719,7 @@ namespace OpenSim.Framework.Communications.Services | |||
718 | m_AssetClient.StoreAsset(asset); | 719 | m_AssetClient.StoreAsset(asset); |
719 | // local call | 720 | // local call |
720 | else | 721 | else |
721 | m_assetProvider.CreateAsset(asset); | 722 | m_assetProvider.Store(asset); |
722 | } | 723 | } |
723 | 724 | ||
724 | #endregion Local vs Remote | 725 | #endregion Local vs Remote |