31 using System.Collections.Generic;
32 using System.Reflection;
34 using OpenSim.Framework;
35 using OpenSim.Services.Connectors;
36 using OpenSim.Region.Framework.Interfaces;
37 using OpenSim.Region.Framework.Scenes;
38 using OpenSim.Services.Interfaces;
40 namespace OpenSim.
Region.CoreModules.ServiceConnectorsOut.
Asset
42 [Extension(Path =
"/OpenSim/RegionModules", NodeName =
"RegionModule", Id =
"RemoteAssetServicesConnector")]
46 private static readonly ILog m_log =
48 MethodBase.GetCurrentMethod().DeclaringType);
50 private bool m_Enabled =
false;
53 public Type ReplaceableInterface
60 get {
return "RemoteAssetServicesConnector"; }
65 IConfig moduleConfig = source.Configs[
"Modules"];
66 if (moduleConfig != null)
68 string name = moduleConfig.GetString(
"AssetServices",
"");
71 IConfig assetConfig = source.Configs[
"AssetService"];
72 if (assetConfig == null)
74 m_log.Error(
"[ASSET CONNECTOR]: AssetService missing from OpenSim.ini");
80 base.Initialise(source);
82 m_log.Info(
"[ASSET CONNECTOR]: Remote assets enabled");
126 m_log.InfoFormat(
"[ASSET CONNECTOR]: Enabled remote assets for region {0}", scene.RegionInfo.RegionName);
130 m_log.InfoFormat(
"[ASSET CONNECTOR]: Enabled asset caching for region {0}", scene.RegionInfo.RegionName);
override void Initialise(IConfigSource source)
void Close()
This is the inverse to Initialise. After a Close(), this instance won't be usable anymore...
void RegionLoaded(Scene scene)
This will be called once for every scene loaded. In a shared module this will be multiple times in on...
void PostInitialise()
This is called exactly once after all the shared region-modules have been instanciated and IRegionMod...
void AddRegion(Scene scene)
This is called whenever a Scene is added. For shared modules, this can happen several times...
void RemoveRegion(Scene scene)
This is called whenever a Scene is removed. For shared modules, this can happen several times...