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;
39 using OpenSim.Server.Base;
41 namespace OpenSim.
Region.CoreModules.ServiceConnectorsOut.Neighbour
43 [Extension(Path =
"/OpenSim/RegionModules", NodeName =
"RegionModule", Id =
"RemoteNeighbourServicesConnector")]
47 private static readonly ILog m_log =
49 MethodBase.GetCurrentMethod().DeclaringType);
51 private bool m_Enabled =
false;
56 public Type ReplaceableInterface
63 get {
return "RemoteNeighbourServicesConnector"; }
68 IConfig moduleConfig = source.Configs[
"Modules"];
69 if (moduleConfig != null)
71 string name = moduleConfig.GetString(
"NeighbourServices");
91 m_log.Info(
"[NEIGHBOUR CONNECTOR]: Remote Neighbour connector enabled");
123 m_LocalService.AddRegion(scene);
130 m_LocalService.RemoveRegion(scene);
138 m_GridService = scene.GridService;
140 m_log.InfoFormat(
"[NEIGHBOUR CONNECTOR]: Enabled remote neighbours for region {0}", scene.RegionInfo.RegionName);
144 #region INeighbourService
148 GridRegion region = m_LocalService.HelloNeighbour(regionHandle, thisRegion);
152 return base.HelloNeighbour(regionHandle, thisRegion);
155 #endregion INeighbourService
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 Initialise(IConfigSource source)
This is called to initialize the region module. For shared modules, this is called exactly once...
void RemoveRegion(Scene scene)
This is called whenever a Scene is removed. For shared modules, this can happen several times...
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 Close()
This is the inverse to Initialise. After a Close(), this instance won't be usable anymore...
override GridRegion HelloNeighbour(ulong regionHandle, RegionInfo thisRegion)