aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenGridServices.GridServer
diff options
context:
space:
mode:
authorAdam Frisby2007-05-13 14:59:24 +0000
committerAdam Frisby2007-05-13 14:59:24 +0000
commitb1101797307504cfc2eea6317d4c4dc2b5964480 (patch)
tree35d7ec88ff9ce0171260ba7166bc6cb3c1fcbb4d /OpenGridServices.GridServer
parentInventory should be working again in sandbox mode (diff)
downloadopensim-SC_OLD-b1101797307504cfc2eea6317d4c4dc2b5964480.zip
opensim-SC_OLD-b1101797307504cfc2eea6317d4c4dc2b5964480.tar.gz
opensim-SC_OLD-b1101797307504cfc2eea6317d4c4dc2b5964480.tar.bz2
opensim-SC_OLD-b1101797307504cfc2eea6317d4c4dc2b5964480.tar.xz
* Fixed MySQL Grid Manager
* Added preliminary support for DB UserServer (incomplete) * Added better handling of defaults to Grid Manager. * Renamed SQL/regions.sql to SQL/mysql-regions.sql.
Diffstat (limited to 'OpenGridServices.GridServer')
-rw-r--r--OpenGridServices.GridServer/GridManager.cs20
-rw-r--r--OpenGridServices.GridServer/Main.cs4
2 files changed, 20 insertions, 4 deletions
diff --git a/OpenGridServices.GridServer/GridManager.cs b/OpenGridServices.GridServer/GridManager.cs
index 02a6a50..cfccd02 100644
--- a/OpenGridServices.GridServer/GridManager.cs
+++ b/OpenGridServices.GridServer/GridManager.cs
@@ -16,7 +16,7 @@ namespace OpenGridServices.GridServer
16 class GridManager 16 class GridManager
17 { 17 {
18 Dictionary<string, IGridData> _plugins = new Dictionary<string, IGridData>(); 18 Dictionary<string, IGridData> _plugins = new Dictionary<string, IGridData>();
19 public string defaultRecvKey; 19 public OpenSim.Framework.Interfaces.GridConfig config;
20 20
21 /// <summary> 21 /// <summary>
22 /// Adds a new grid server plugin - grid servers will be requested in the order they were loaded. 22 /// Adds a new grid server plugin - grid servers will be requested in the order they were loaded.
@@ -269,7 +269,7 @@ namespace OpenGridServices.GridServer
269 TheSim = new SimProfileData(); 269 TheSim = new SimProfileData();
270 LLUUID UUID = new LLUUID(param); 270 LLUUID UUID = new LLUUID(param);
271 TheSim.UUID = UUID; 271 TheSim.UUID = UUID;
272 TheSim.regionRecvKey = defaultRecvKey; 272 TheSim.regionRecvKey = config.SimRecvKey;
273 } 273 }
274 274
275 XmlDocument doc = new XmlDocument(); 275 XmlDocument doc = new XmlDocument();
@@ -291,6 +291,20 @@ namespace OpenGridServices.GridServer
291 { 291 {
292 return "ERROR! invalid key"; 292 return "ERROR! invalid key";
293 } 293 }
294
295 //TheSim.regionSendKey = Cfg;
296 TheSim.regionRecvKey = config.SimRecvKey;
297 TheSim.regionSendKey = config.SimSendKey;
298 TheSim.regionSecret = config.SimRecvKey;
299 TheSim.regionDataURI = "";
300 TheSim.regionAssetURI = config.DefaultAssetServer;
301 TheSim.regionAssetRecvKey = config.AssetRecvKey;
302 TheSim.regionAssetSendKey = config.AssetSendKey;
303 TheSim.regionUserURI = config.DefaultUserServer;
304 TheSim.regionUserSendKey = config.UserSendKey;
305 TheSim.regionUserRecvKey = config.UserRecvKey;
306
307
294 for (int i = 0; i < simnode.ChildNodes.Count; i++) 308 for (int i = 0; i < simnode.ChildNodes.Count; i++)
295 { 309 {
296 switch (simnode.ChildNodes[i].Name) 310 switch (simnode.ChildNodes[i].Name)
@@ -319,6 +333,8 @@ namespace OpenGridServices.GridServer
319 } 333 }
320 } 334 }
321 335
336 TheSim.serverURI = "http://" + TheSim.serverIP + ":" + TheSim.serverPort + "/";
337
322 try 338 try
323 { 339 {
324 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Attempting to add a new region to the grid - " + _plugins.Count + " storage provider(s) registered."); 340 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Attempting to add a new region to the grid - " + _plugins.Count + " storage provider(s) registered.");
diff --git a/OpenGridServices.GridServer/Main.cs b/OpenGridServices.GridServer/Main.cs
index 532e15d..69d75fd 100644
--- a/OpenGridServices.GridServer/Main.cs
+++ b/OpenGridServices.GridServer/Main.cs
@@ -47,7 +47,7 @@ namespace OpenGridServices.GridServer
47 public class OpenGrid_Main : BaseServer, conscmd_callback 47 public class OpenGrid_Main : BaseServer, conscmd_callback
48 { 48 {
49 private string ConfigDll = "OpenGrid.Config.GridConfigDb4o.dll"; 49 private string ConfigDll = "OpenGrid.Config.GridConfigDb4o.dll";
50 private string GridDll = "OpenGrid.Framework.Data.DB4o.dll"; 50 private string GridDll = "OpenGrid.Framework.Data.MySQL.dll";
51 public GridConfig Cfg; 51 public GridConfig Cfg;
52 52
53 public static OpenGrid_Main thegrid; 53 public static OpenGrid_Main thegrid;
@@ -98,7 +98,7 @@ namespace OpenGridServices.GridServer
98 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Main.cs:Startup() - Connecting to Storage Server"); 98 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Main.cs:Startup() - Connecting to Storage Server");
99 m_gridManager = new GridManager(); 99 m_gridManager = new GridManager();
100 m_gridManager.AddPlugin(GridDll); // Made of win 100 m_gridManager.AddPlugin(GridDll); // Made of win
101 m_gridManager.defaultRecvKey = Cfg.SimRecvKey; 101 m_gridManager.config = Cfg;
102 102
103 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Main.cs:Startup() - Starting HTTP process"); 103 m_console.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Main.cs:Startup() - Starting HTTP process");
104 BaseHttpServer httpServer = new BaseHttpServer(8001); 104 BaseHttpServer httpServer = new BaseHttpServer(8001);