aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/SimulatorServices
diff options
context:
space:
mode:
authorJeff Ames2009-05-27 14:30:33 +0000
committerJeff Ames2009-05-27 14:30:33 +0000
commita576cca59e1478c4a3b963fe0ee7d64d5030a158 (patch)
tree97266b6ab58b426ab76bd534f12f7ca79a74d872 /OpenSim/SimulatorServices
parentRevert "* Added IntegrationTest Attribute and tagged the ODETestClass" (diff)
downloadopensim-SC_OLD-a576cca59e1478c4a3b963fe0ee7d64d5030a158.zip
opensim-SC_OLD-a576cca59e1478c4a3b963fe0ee7d64d5030a158.tar.gz
opensim-SC_OLD-a576cca59e1478c4a3b963fe0ee7d64d5030a158.tar.bz2
opensim-SC_OLD-a576cca59e1478c4a3b963fe0ee7d64d5030a158.tar.xz
Update svn properties.
Diffstat (limited to 'OpenSim/SimulatorServices')
-rw-r--r--OpenSim/SimulatorServices/SimulationService.cs170
1 files changed, 85 insertions, 85 deletions
diff --git a/OpenSim/SimulatorServices/SimulationService.cs b/OpenSim/SimulatorServices/SimulationService.cs
index bca51b3..a28e72f 100644
--- a/OpenSim/SimulatorServices/SimulationService.cs
+++ b/OpenSim/SimulatorServices/SimulationService.cs
@@ -1,85 +1,85 @@
1using System; 1using System;
2using System.Reflection; 2using System.Reflection;
3using System.Collections.Generic; 3using System.Collections.Generic;
4using log4net; 4using log4net;
5using Nini.Config; 5using Nini.Config;
6using OpenSim.Framework; 6using OpenSim.Framework;
7using OpenSim.Framework.Servers.HttpServer; 7using OpenSim.Framework.Servers.HttpServer;
8using OpenSim.Region.Framework.Scenes; 8using OpenSim.Region.Framework.Scenes;
9using OpenSim.Region.Framework.Interfaces; 9using OpenSim.Region.Framework.Interfaces;
10using OpenSim.Server.Base; 10using OpenSim.Server.Base;
11using OpenSim.Server.Handlers.Base; 11using OpenSim.Server.Handlers.Base;
12 12
13 13
14namespace OpenSim.SimulatorServices 14namespace OpenSim.SimulatorServices
15{ 15{
16 public class SimulationService : ISharedRegionModule 16 public class SimulationService : ISharedRegionModule
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 static bool m_Enabled = false; 19 private static bool m_Enabled = false;
20 20
21 private IConfigSource m_Config; 21 private IConfigSource m_Config;
22 bool m_Registered = false; 22 bool m_Registered = false;
23 23
24 #region IRegionModule interface 24 #region IRegionModule interface
25 25
26 public void Initialise(IConfigSource config) 26 public void Initialise(IConfigSource config)
27 { 27 {
28 m_Config = config; 28 m_Config = config;
29 29
30 IConfig moduleConfig = config.Configs["Modules"]; 30 IConfig moduleConfig = config.Configs["Modules"];
31 if (moduleConfig != null) 31 if (moduleConfig != null)
32 { 32 {
33 string name = moduleConfig.GetString("SimulationService", ""); 33 string name = moduleConfig.GetString("SimulationService", "");
34 if (name == Name) 34 if (name == Name)
35 { 35 {
36 m_Enabled = true; 36 m_Enabled = true;
37 m_log.Info("[SIM SERVICE]: SimulationService enabled"); 37 m_log.Info("[SIM SERVICE]: SimulationService enabled");
38 38
39 } 39 }
40 } 40 }
41 41
42 } 42 }
43 43
44 public void PostInitialise() 44 public void PostInitialise()
45 { 45 {
46 } 46 }
47 47
48 public void Close() 48 public void Close()
49 { 49 {
50 } 50 }
51 51
52 public string Name 52 public string Name
53 { 53 {
54 get { return "SimulationService"; } 54 get { return "SimulationService"; }
55 } 55 }
56 56
57 public void AddRegion(Scene scene) 57 public void AddRegion(Scene scene)
58 { 58 {
59 if (!m_Enabled) 59 if (!m_Enabled)
60 return; 60 return;
61 61
62 if (!m_Registered) 62 if (!m_Registered)
63 { 63 {
64 m_Registered = true; 64 m_Registered = true;
65 65
66 m_log.Info("[SIM SERVICE]: Starting..."); 66 m_log.Info("[SIM SERVICE]: Starting...");
67 67
68 Object[] args = new Object[] { m_Config, scene.CommsManager.HttpServer, scene }; 68 Object[] args = new Object[] { m_Config, scene.CommsManager.HttpServer, scene };
69 69
70 ServerUtils.LoadPlugin<IServiceConnector>("OpenSim.Server.Handlers.dll:SimulationServiceInConnector", args); 70 ServerUtils.LoadPlugin<IServiceConnector>("OpenSim.Server.Handlers.dll:SimulationServiceInConnector", args);
71 } 71 }
72 } 72 }
73 73
74 public void RemoveRegion(Scene scene) 74 public void RemoveRegion(Scene scene)
75 { 75 {
76 } 76 }
77 77
78 public void RegionLoaded(Scene scene) 78 public void RegionLoaded(Scene scene)
79 { 79 {
80 } 80 }
81 81
82 #endregion 82 #endregion
83 83
84 } 84 }
85} 85}