diff options
* Cleanup and CCC (Code Convention Conformance)
Diffstat (limited to 'OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs')
-rw-r--r-- | OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs b/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs index ec14b97..4fc3094 100644 --- a/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs +++ b/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs | |||
@@ -26,24 +26,15 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | ||
30 | using System.Reflection; | 29 | using System.Reflection; |
31 | using System.Threading; | ||
32 | using log4net; | 30 | using log4net; |
33 | using OpenSim.Framework; | 31 | using OpenSim.Framework; |
34 | using OpenSim.Framework.RegionLoader.Filesystem; | ||
35 | using OpenSim.Framework.RegionLoader.Web; | ||
36 | using OpenSim.Region.CoreModules.Agent.AssetTransaction; | ||
37 | using OpenSim.Region.CoreModules.Avatar.InstantMessage; | ||
38 | using OpenSim.Region.CoreModules.Scripting.DynamicTexture; | ||
39 | using OpenSim.Region.CoreModules.Scripting.LoadImageURL; | ||
40 | using OpenSim.Region.CoreModules.Scripting.XMLRPC; | ||
41 | using OpenSim.Framework.Communications; | 32 | using OpenSim.Framework.Communications; |
42 | using OpenSim.Framework.Communications.Cache; | 33 | using OpenSim.Framework.Communications.Cache; |
34 | using OpenSim.Framework.Servers; | ||
43 | using OpenSim.Region.Communications.Hypergrid; | 35 | using OpenSim.Region.Communications.Hypergrid; |
44 | using OpenSim.Region.Communications.Local; | 36 | using OpenSim.Region.Communications.Local; |
45 | using OpenSim.Region.Communications.OGS1; | 37 | using OpenSim.Region.Communications.OGS1; |
46 | using OpenSim.Framework.Servers; | ||
47 | 38 | ||
48 | namespace OpenSim.ApplicationPlugins.CreateCommsManager | 39 | namespace OpenSim.ApplicationPlugins.CreateCommsManager |
49 | { | 40 | { |
@@ -54,11 +45,18 @@ namespace OpenSim.ApplicationPlugins.CreateCommsManager | |||
54 | #region IApplicationPlugin Members | 45 | #region IApplicationPlugin Members |
55 | 46 | ||
56 | // TODO: required by IPlugin, but likely not at all right | 47 | // TODO: required by IPlugin, but likely not at all right |
57 | string m_name = "CreateCommsManagerPlugin"; | 48 | private string m_name = "CreateCommsManagerPlugin"; |
58 | string m_version = "0.0"; | 49 | private string m_version = "0.0"; |
50 | |||
51 | public string Version | ||
52 | { | ||
53 | get { return m_version; } | ||
54 | } | ||
59 | 55 | ||
60 | public string Version { get { return m_version; } } | 56 | public string Name |
61 | public string Name { get { return m_name; } } | 57 | { |
58 | get { return m_name; } | ||
59 | } | ||
62 | 60 | ||
63 | protected OpenSimBase m_openSim; | 61 | protected OpenSimBase m_openSim; |
64 | 62 | ||
@@ -133,7 +131,7 @@ namespace OpenSim.ApplicationPlugins.CreateCommsManager | |||
133 | HGOpenSimNode hgNode = null; | 131 | HGOpenSimNode hgNode = null; |
134 | try | 132 | try |
135 | { | 133 | { |
136 | hgNode = (HGOpenSimNode)openSim; | 134 | hgNode = (HGOpenSimNode) openSim; |
137 | } | 135 | } |
138 | catch (Exception e) | 136 | catch (Exception e) |
139 | { | 137 | { |
@@ -178,12 +176,14 @@ namespace OpenSim.ApplicationPlugins.CreateCommsManager | |||
178 | protected virtual void InitialiseStandaloneServices(LibraryRootFolder libraryRootFolder) | 176 | protected virtual void InitialiseStandaloneServices(LibraryRootFolder libraryRootFolder) |
179 | { | 177 | { |
180 | LocalInventoryService inventoryService = new LocalInventoryService(); | 178 | LocalInventoryService inventoryService = new LocalInventoryService(); |
181 | inventoryService.AddPlugin(m_openSim.ConfigurationSettings.StandaloneInventoryPlugin, m_openSim.ConfigurationSettings.StandaloneInventorySource); | 179 | inventoryService.AddPlugin(m_openSim.ConfigurationSettings.StandaloneInventoryPlugin, |
180 | m_openSim.ConfigurationSettings.StandaloneInventorySource); | ||
182 | 181 | ||
183 | LocalUserServices userService = | 182 | LocalUserServices userService = |
184 | new LocalUserServices( | 183 | new LocalUserServices( |
185 | m_openSim.NetServersInfo.DefaultHomeLocX, m_openSim.NetServersInfo.DefaultHomeLocY, inventoryService); | 184 | m_openSim.NetServersInfo.DefaultHomeLocX, m_openSim.NetServersInfo.DefaultHomeLocY, inventoryService); |
186 | userService.AddPlugin(m_openSim.ConfigurationSettings.StandaloneUserPlugin, m_openSim.ConfigurationSettings.StandaloneUserSource); | 185 | userService.AddPlugin(m_openSim.ConfigurationSettings.StandaloneUserPlugin, |
186 | m_openSim.ConfigurationSettings.StandaloneUserSource); | ||
187 | 187 | ||
188 | LocalBackEndServices backendService = new LocalBackEndServices(); | 188 | LocalBackEndServices backendService = new LocalBackEndServices(); |
189 | 189 | ||
@@ -215,12 +215,12 @@ namespace OpenSim.ApplicationPlugins.CreateCommsManager | |||
215 | 215 | ||
216 | LocalUserServices userService = | 216 | LocalUserServices userService = |
217 | new LocalUserServices( | 217 | new LocalUserServices( |
218 | m_openSim.NetServersInfo.DefaultHomeLocX, m_openSim.NetServersInfo.DefaultHomeLocY, inventoryService); | 218 | m_openSim.NetServersInfo.DefaultHomeLocX, m_openSim.NetServersInfo.DefaultHomeLocY, inventoryService); |
219 | userService.AddPlugin(m_openSim.ConfigurationSettings.StandaloneUserPlugin, m_openSim.ConfigurationSettings.StandaloneUserSource); | 219 | userService.AddPlugin(m_openSim.ConfigurationSettings.StandaloneUserPlugin, m_openSim.ConfigurationSettings.StandaloneUserSource); |
220 | 220 | ||
221 | HGGridServicesStandalone gridService = new HGGridServicesStandalone(m_openSim.NetServersInfo, m_httpServer, m_openSim.AssetCache, m_openSim.SceneManager); | 221 | HGGridServicesStandalone gridService = new HGGridServicesStandalone(m_openSim.NetServersInfo, m_httpServer, m_openSim.AssetCache, m_openSim.SceneManager); |
222 | 222 | ||
223 | // LocalLoginService loginService = CreateLoginService(libraryRootFolder, inventoryService, userService, gridService.LocalBackend); | 223 | // LocalLoginService loginService = CreateLoginService(libraryRootFolder, inventoryService, userService, gridService.LocalBackend); |
224 | 224 | ||
225 | m_commsManager = new HGCommunicationsStandalone(m_openSim.NetServersInfo, m_httpServer, m_openSim.AssetCache, | 225 | m_commsManager = new HGCommunicationsStandalone(m_openSim.NetServersInfo, m_httpServer, m_openSim.AssetCache, |
226 | userService, userService, inventoryService, gridService, userService, libraryRootFolder, m_openSim.ConfigurationSettings.DumpAssetsToFile); | 226 | userService, userService, inventoryService, gridService, userService, libraryRootFolder, m_openSim.ConfigurationSettings.DumpAssetsToFile); |
@@ -236,7 +236,7 @@ namespace OpenSim.ApplicationPlugins.CreateCommsManager | |||
236 | { | 236 | { |
237 | m_commsManager = new HGCommunicationsGridMode(m_openSim.NetServersInfo, m_httpServer, m_openSim.AssetCache, m_openSim.SceneManager, libraryRootFolder); | 237 | m_commsManager = new HGCommunicationsGridMode(m_openSim.NetServersInfo, m_httpServer, m_openSim.AssetCache, m_openSim.SceneManager, libraryRootFolder); |
238 | 238 | ||
239 | HGServices = ((HGCommunicationsGridMode)m_commsManager).HGServices; | 239 | HGServices = ((HGCommunicationsGridMode) m_commsManager).HGServices; |
240 | 240 | ||
241 | m_httpServer.AddStreamHandler(new OpenSim.SimStatusHandler()); | 241 | m_httpServer.AddStreamHandler(new OpenSim.SimStatusHandler()); |
242 | } | 242 | } |
@@ -268,4 +268,4 @@ namespace OpenSim.ApplicationPlugins.CreateCommsManager | |||
268 | m_httpServer.AddStreamHandler(new RestStreamHandler("GET", "/get_grid_info", m_gridInfoService.RestGetGridInfoMethod)); | 268 | m_httpServer.AddStreamHandler(new RestStreamHandler("GET", "/get_grid_info", m_gridInfoService.RestGetGridInfoMethod)); |
269 | } | 269 | } |
270 | } | 270 | } |
271 | } | 271 | } \ No newline at end of file |