diff --git a/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs b/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs index 4d1c606a7b..6a66116eeb 100644 --- a/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs +++ b/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs @@ -190,11 +190,11 @@ namespace OpenSim.ApplicationPlugins.CreateCommsManager { HGGridServicesStandalone gridService = new HGGridServicesStandalone( - m_openSim.NetServersInfo, m_httpServer, m_openSim.AssetCache, m_openSim.SceneManager); + m_openSim.NetServersInfo, m_httpServer, m_openSim.SceneManager); m_commsManager = new HGCommunicationsStandalone( - m_openSim.ConfigurationSettings, m_openSim.NetServersInfo, m_httpServer, m_openSim.AssetCache, + m_openSim.ConfigurationSettings, m_openSim.NetServersInfo, m_httpServer, gridService, libraryRootFolder, false); diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index 629fed61ee..6ea04cff34 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs @@ -416,14 +416,7 @@ namespace OpenSim private void HandleClearAssets(string module, string[] args) { - if (AssetCache != null) - { - AssetCache.Clear(); - } - else - { - m_log.Info("Asset cache is not configured."); - } + m_log.Info("Not implemented."); } private void HandleForceUpdate(string module, string[] args) @@ -815,14 +808,7 @@ namespace OpenSim switch (showParams[0]) { case "assets": - if (AssetCache != null) - { - AssetCache.ShowState(); - } - else - { - m_log.Info("Asset cache is not configured."); - } + m_log.Info("Not implemented."); break; case "users": diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index d8f786bb96..3d58839742 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -488,7 +488,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP /// Constructor /// public LLClientView( - EndPoint remoteEP, IScene scene, IAssetCache assetCache, LLPacketServer packServer, + EndPoint remoteEP, IScene scene, LLPacketServer packServer, AuthenticateResponse sessionInfo, UUID agentId, UUID sessionId, uint circuitCode, EndPoint proxyEP, ClientStackUserSettings userSettings) { diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketServer.cs index b154144d1e..56219d1cd7 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketServer.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketServer.cs @@ -87,13 +87,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP /// /// protected virtual IClientAPI CreateNewCircuit( - EndPoint remoteEP, IScene scene, IAssetCache assetCache, + EndPoint remoteEP, IScene scene, LLPacketServer packServer, AuthenticateResponse sessionInfo, UUID agentId, UUID sessionId, uint circuitCode, EndPoint proxyEP) { return new LLClientView( - remoteEP, scene, assetCache, packServer, sessionInfo, agentId, sessionId, circuitCode, proxyEP, + remoteEP, scene, packServer, sessionInfo, agentId, sessionId, circuitCode, proxyEP, m_userSettings); } @@ -131,7 +131,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP /// true if a new circuit was created, false if a circuit with the given circuit code already existed /// public virtual bool AddNewClient( - EndPoint epSender, UseCircuitCodePacket useCircuit, IAssetCache assetCache, + EndPoint epSender, UseCircuitCodePacket useCircuit, AuthenticateResponse sessionInfo, EndPoint proxyEP) { IClientAPI newuser; @@ -150,7 +150,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP newuser = CreateNewCircuit( - epSender, m_scene, assetCache, this, sessionInfo, agentId, sessionId, circuitCode, proxyEP); + epSender, m_scene, this, sessionInfo, agentId, sessionId, circuitCode, proxyEP); m_scene.ClientManager.Add(circuitCode, newuser); diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs index 54434f167d..5184e35186 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs @@ -75,7 +75,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP protected bool Allow_Alternate_Port; protected IPAddress listenIP = IPAddress.Parse("0.0.0.0"); protected IScene m_localScene; - protected IAssetCache m_assetCache; protected int m_clientSocketReceiveBuffer = 0; /// @@ -131,7 +130,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP public LLUDPServer( IPAddress _listenIP, ref uint port, int proxyPortOffset, bool allow_alternate_port, IConfigSource configSource, - IAssetCache assetCache, AgentCircuitManager authenticateClass) + AgentCircuitManager authenticateClass) { Initialise(_listenIP, ref port, proxyPortOffset, allow_alternate_port, configSource, authenticateClass); } @@ -451,7 +450,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP proxyCircuits[useCircuit.CircuitCode.Code] = epProxy; } - m_packetServer.AddNewClient(epSender, useCircuit, m_assetCache, sessionInfo, epProxy); + m_packetServer.AddNewClient(epSender, useCircuit, sessionInfo, epProxy); //m_log.DebugFormat( // "[CONNECTION SUCCESS]: Incoming client {0} (circuit code {1}) received and authenticated for {2}", @@ -629,7 +628,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP } } - m_packetServer.AddNewClient(userEP, useCircuit, m_assetCache, sessionInfo, proxyEP); + m_packetServer.AddNewClient(userEP, useCircuit, sessionInfo, proxyEP); } } } diff --git a/OpenSim/Region/ClientStack/RegionApplicationBase.cs b/OpenSim/Region/ClientStack/RegionApplicationBase.cs index 2fbbbe29e4..a266a40bb6 100644 --- a/OpenSim/Region/ClientStack/RegionApplicationBase.cs +++ b/OpenSim/Region/ClientStack/RegionApplicationBase.cs @@ -72,15 +72,7 @@ namespace OpenSim.Region.ClientStack get { return m_sceneManager; } } protected SceneManager m_sceneManager = new SceneManager(); - - protected IAssetCache m_assetCache; - - public IAssetCache AssetCache - { - get { return m_assetCache; } - set { m_assetCache = value; } - } - + protected abstract void Initialize(); /// diff --git a/OpenSim/Region/Communications/Hypergrid/HGCommunicationsStandalone.cs b/OpenSim/Region/Communications/Hypergrid/HGCommunicationsStandalone.cs index 3ea987cfb2..1bfc736ca6 100644 --- a/OpenSim/Region/Communications/Hypergrid/HGCommunicationsStandalone.cs +++ b/OpenSim/Region/Communications/Hypergrid/HGCommunicationsStandalone.cs @@ -44,7 +44,6 @@ namespace OpenSim.Region.Communications.Hypergrid ConfigSettings configSettings, NetworkServersInfo serversInfo, BaseHttpServer httpServer, - IAssetCache assetCache, HGGridServices gridService, LibraryRootFolder libraryRootFolder, bool dumpAssetsToFile) diff --git a/OpenSim/Region/Communications/Hypergrid/HGGridServicesStandalone.cs b/OpenSim/Region/Communications/Hypergrid/HGGridServicesStandalone.cs index 828d0d971e..94cfc496bb 100644 --- a/OpenSim/Region/Communications/Hypergrid/HGGridServicesStandalone.cs +++ b/OpenSim/Region/Communications/Hypergrid/HGGridServicesStandalone.cs @@ -76,7 +76,7 @@ namespace OpenSim.Region.Communications.Hypergrid } - public HGGridServicesStandalone(NetworkServersInfo servers_info, BaseHttpServer httpServe, IAssetCache asscache, SceneManager sman) + public HGGridServicesStandalone(NetworkServersInfo servers_info, BaseHttpServer httpServe, SceneManager sman) : base(servers_info, sman) { //Respond to Grid Services requests diff --git a/OpenSim/Region/CoreModules/World/Archiver/AssetsDearchiver.cs b/OpenSim/Region/CoreModules/World/Archiver/AssetsDearchiver.cs index 8cf039d794..5208e7abbf 100644 --- a/OpenSim/Region/CoreModules/World/Archiver/AssetsDearchiver.cs +++ b/OpenSim/Region/CoreModules/World/Archiver/AssetsDearchiver.cs @@ -35,6 +35,7 @@ using log4net; using OpenMetaverse; using OpenSim.Framework; using OpenSim.Framework.Serialization; +using OpenSim.Services.Interfaces; namespace OpenSim.Region.CoreModules.World.Archiver { @@ -60,9 +61,9 @@ namespace OpenSim.Region.CoreModules.World.Archiver /// /// Cache to which dearchived assets will be added /// - protected IAssetCache m_cache; + protected IAssetService m_cache; - public AssetsDearchiver(IAssetCache cache) + public AssetsDearchiver(IAssetService cache) { m_cache = cache; } @@ -162,7 +163,7 @@ namespace OpenSim.Region.CoreModules.World.Archiver asset.Type = metadata.AssetType; asset.Data = data; - m_cache.AddAsset(asset); + m_cache.Store(asset); } else { diff --git a/bin/OpenSim.addin.xml b/bin/OpenSim.addin.xml index 00d41cb09c..a42ba2533f 100644 --- a/bin/OpenSim.addin.xml +++ b/bin/OpenSim.addin.xml @@ -10,10 +10,6 @@ - - - -