29 using System.Reflection;
30 using System.Collections.Generic;
34 using OpenSim.Framework;
35 using OpenSim.Framework.Servers;
36 using OpenSim.Region.Framework.Scenes;
37 using OpenSim.Region.Framework.Interfaces;
38 using OpenSim.Server.Base;
39 using OpenSim.Server.Handlers.Base;
40 using OpenSim.Server.Handlers.Hypergrid;
41 using OpenSim.Services.Interfaces;
46 [Extension(Path =
"/OpenSim/RegionModules", NodeName =
"RegionModule", Id =
"HypergridServiceInConnectorModule")]
49 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
50 private static bool m_Enabled =
false;
52 private IConfigSource m_Config;
53 private bool m_Registered =
false;
54 private string m_LocalServiceDll = String.Empty;
58 #region Region Module interface
63 IConfig moduleConfig = config.Configs[
"Modules"];
64 if (moduleConfig != null)
66 m_Enabled = moduleConfig.GetBoolean(
"HypergridServiceInConnector",
false);
69 m_log.Info(
"[HGGRID IN CONNECTOR]: Hypergrid Service In Connector enabled");
70 IConfig fconfig = config.Configs[
"FriendsService"];
73 m_LocalServiceDll = fconfig.GetString(
"LocalServiceModule", m_LocalServiceDll);
74 if (m_LocalServiceDll ==
String.Empty)
75 m_log.WarnFormat(
"[HGGRID IN CONNECTOR]: Friends LocalServiceModule config missing");
91 public Type ReplaceableInterface
98 get {
return "HypergridService"; }
122 m_log.Info(
"[HypergridService]: Starting...");
void Initialise(IConfigSource config)
This is called to initialize the region module. For shared modules, this is called exactly once...
void PostInitialise()
This is called exactly once after all the shared region-modules have been instanciated and IRegionMod...
void Close()
This is the inverse to Initialise. After a Close(), this instance won't be usable anymore...
void AddRegion(Scene scene)
This is called whenever a Scene is added. For shared modules, this can happen several times...
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 RemoveRegion(Scene scene)
This is called whenever a Scene is removed. For shared modules, this can happen several times...
Interactive OpenSim region server
static BaseHttpServer Instance
Set the main HTTP server instance.
OpenSim.Services.Interfaces.GridRegion GridRegion