diff options
author | Adam Frisby | 2009-05-28 18:59:18 +0000 |
---|---|---|
committer | Adam Frisby | 2009-05-28 18:59:18 +0000 |
commit | 561d6c1cdc58a2276f2b5388f87393c9d064ba84 (patch) | |
tree | bcf4053161328be5a60790df21dd80875839bbe5 /OpenSim | |
parent | * Adds OGS RAdmin class. Adds primitive remote admin functions for gridserver... (diff) | |
download | opensim-SC-561d6c1cdc58a2276f2b5388f87393c9d064ba84.zip opensim-SC-561d6c1cdc58a2276f2b5388f87393c9d064ba84.tar.gz opensim-SC-561d6c1cdc58a2276f2b5388f87393c9d064ba84.tar.bz2 opensim-SC-561d6c1cdc58a2276f2b5388f87393c9d064ba84.tar.xz |
* Converts recently added OGSRadmin to IRegionModule because I cant be arsed figuring out Mono.Addins.
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/CoreModules/InterGrid/OGSRadmin.cs | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/InterGrid/OGSRadmin.cs b/OpenSim/Region/CoreModules/InterGrid/OGSRadmin.cs index 98710c6..2d14b41 100644 --- a/OpenSim/Region/CoreModules/InterGrid/OGSRadmin.cs +++ b/OpenSim/Region/CoreModules/InterGrid/OGSRadmin.cs | |||
@@ -13,7 +13,7 @@ using OpenSim.Region.Framework.Scenes; | |||
13 | 13 | ||
14 | namespace OpenSim.Region.CoreModules.InterGrid | 14 | namespace OpenSim.Region.CoreModules.InterGrid |
15 | { | 15 | { |
16 | public class OGSRadmin : ISharedRegionModule | 16 | public class OGSRadmin : IRegionModule |
17 | { | 17 | { |
18 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 18 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
19 | private readonly List<Scene> m_scenes = new List<Scene>(); | 19 | private readonly List<Scene> m_scenes = new List<Scene>(); |
@@ -27,6 +27,7 @@ namespace OpenSim.Region.CoreModules.InterGrid | |||
27 | get { return "OGS Supporting RAdmin"; } | 27 | get { return "OGS Supporting RAdmin"; } |
28 | } | 28 | } |
29 | 29 | ||
30 | |||
30 | public void Initialise(IConfigSource source) | 31 | public void Initialise(IConfigSource source) |
31 | { | 32 | { |
32 | m_settings = source; | 33 | m_settings = source; |
@@ -65,6 +66,21 @@ namespace OpenSim.Region.CoreModules.InterGrid | |||
65 | 66 | ||
66 | #endregion | 67 | #endregion |
67 | 68 | ||
69 | #region IRegionModule | ||
70 | |||
71 | public void Initialise(Scene scene, IConfigSource source) | ||
72 | { | ||
73 | lock (m_scenes) | ||
74 | m_scenes.Add(scene); | ||
75 | } | ||
76 | |||
77 | public bool IsSharedModule | ||
78 | { | ||
79 | get { return true; } | ||
80 | } | ||
81 | |||
82 | #endregion | ||
83 | |||
68 | public XmlRpcResponse GridWideMessage(XmlRpcRequest req, IPEndPoint remoteClient) | 84 | public XmlRpcResponse GridWideMessage(XmlRpcRequest req, IPEndPoint remoteClient) |
69 | { | 85 | { |
70 | XmlRpcResponse response = new XmlRpcResponse(); | 86 | XmlRpcResponse response = new XmlRpcResponse(); |