diff options
author | Diva Canto | 2009-09-22 11:58:40 -0700 |
---|---|---|
committer | Diva Canto | 2009-09-22 11:58:40 -0700 |
commit | 34f4738159300ab6370e3db47df5187b6cea8771 (patch) | |
tree | b999ec7a07c4527bb38771ea6b02a8d77b5d0bdf /OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs | |
parent | Added Remote grid connector module. (diff) | |
download | opensim-SC_OLD-34f4738159300ab6370e3db47df5187b6cea8771.zip opensim-SC_OLD-34f4738159300ab6370e3db47df5187b6cea8771.tar.gz opensim-SC_OLD-34f4738159300ab6370e3db47df5187b6cea8771.tar.bz2 opensim-SC_OLD-34f4738159300ab6370e3db47df5187b6cea8771.tar.xz |
Added HGGridConnector and related code.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs index b0cfc9c..22b1015 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RemoteGridServiceConnector.cs | |||
@@ -47,6 +47,13 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid | |||
47 | 47 | ||
48 | private bool m_Enabled = false; | 48 | private bool m_Enabled = false; |
49 | 49 | ||
50 | public RemoteGridServicesConnector(IConfigSource source) | ||
51 | { | ||
52 | InitialiseService(source); | ||
53 | } | ||
54 | |||
55 | #region ISharedRegionmodule | ||
56 | |||
50 | public Type ReplaceableInterface | 57 | public Type ReplaceableInterface |
51 | { | 58 | { |
52 | get { return null; } | 59 | get { return null; } |
@@ -65,22 +72,25 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid | |||
65 | string name = moduleConfig.GetString("GridServices", ""); | 72 | string name = moduleConfig.GetString("GridServices", ""); |
66 | if (name == Name) | 73 | if (name == Name) |
67 | { | 74 | { |
68 | IConfig gridConfig = source.Configs["GridService"]; | 75 | InitialiseService(source); |
69 | if (gridConfig == null) | ||
70 | { | ||
71 | m_log.Error("[GRID CONNECTOR]: GridService missing from OpenSim.ini"); | ||
72 | return; | ||
73 | } | ||
74 | |||
75 | m_Enabled = true; | 76 | m_Enabled = true; |
76 | 77 | m_log.Info("[REMOTE GRID CONNECTOR]: Remote grid enabled"); | |
77 | base.Initialise(source); | ||
78 | |||
79 | m_log.Info("[GRID CONNECTOR]: Remote grid enabled"); | ||
80 | } | 78 | } |
81 | } | 79 | } |
82 | } | 80 | } |
83 | 81 | ||
82 | private void InitialiseService(IConfigSource source) | ||
83 | { | ||
84 | IConfig gridConfig = source.Configs["GridService"]; | ||
85 | if (gridConfig == null) | ||
86 | { | ||
87 | m_log.Error("[REMOTE GRID CONNECTOR]: GridService missing from OpenSim.ini"); | ||
88 | return; | ||
89 | } | ||
90 | |||
91 | base.Initialise(source); | ||
92 | } | ||
93 | |||
84 | public void PostInitialise() | 94 | public void PostInitialise() |
85 | { | 95 | { |
86 | } | 96 | } |
@@ -104,5 +114,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid | |||
104 | public void RegionLoaded(Scene scene) | 114 | public void RegionLoaded(Scene scene) |
105 | { | 115 | { |
106 | } | 116 | } |
117 | |||
118 | #endregion | ||
107 | } | 119 | } |
108 | } | 120 | } |