diff --git a/OpenGrid.Framework.Data.MySQL/MySQLGridData.cs b/OpenGrid.Framework.Data.MySQL/MySQLGridData.cs index 3db32f3c46..0a84cdb81d 100644 --- a/OpenGrid.Framework.Data.MySQL/MySQLGridData.cs +++ b/OpenGrid.Framework.Data.MySQL/MySQLGridData.cs @@ -25,6 +25,16 @@ namespace OpenGrid.Framework.Data.MySQL database.Close(); } + public string getName() + { + return "MySql OpenGridData"; + } + + public string getVersion() + { + return "0.1"; + } + /// /// Returns a sim profile from it's location /// diff --git a/OpenGrid.Framework.Data/GridData.cs b/OpenGrid.Framework.Data/GridData.cs index 8ace484cec..d6b5a2b821 100644 --- a/OpenGrid.Framework.Data/GridData.cs +++ b/OpenGrid.Framework.Data/GridData.cs @@ -11,5 +11,7 @@ namespace OpenGrid.Framework.Data bool AuthenticateSim(libsecondlife.LLUUID UUID, ulong regionHandle, string simrecvkey); void Initialise(); void Close(); + string getName(); + string getVersion(); } } diff --git a/OpenGrid.Framework.Data/SimProfileData.cs b/OpenGrid.Framework.Data/SimProfileData.cs index a7018758a3..4cc9982d69 100644 --- a/OpenGrid.Framework.Data/SimProfileData.cs +++ b/OpenGrid.Framework.Data/SimProfileData.cs @@ -61,5 +61,13 @@ namespace OpenGrid.Framework.Data /// /// Used for floating sim pools where the region data is not nessecarily coupled to a specific server public string regionDataURI; + + public string regionAssetURI; + public string regionAssetSendKey; + public string regionAssetRecvKey; + + public string regionUserURI; + public string regionUserSendKey; + public string regionUserRecvKey; } } diff --git a/OpenGridServices.GridServer/Main.cs b/OpenGridServices.GridServer/Main.cs index 69cba9c9dd..f7cfe71981 100644 --- a/OpenGridServices.GridServer/Main.cs +++ b/OpenGridServices.GridServer/Main.cs @@ -53,7 +53,9 @@ namespace OpenGridServices.GridServer //public LLUUID highestUUID; - private SimProfileManager m_simProfileManager; +// private SimProfileManager m_simProfileManager; + + private GridManager m_gridManager; private ConsoleBase m_console; @@ -82,6 +84,8 @@ namespace OpenGridServices.GridServer { m_console = new ConsoleBase("opengrid-gridserver-console.log", "OpenGrid", this, false); MainConsole.Instance = m_console; + + } public void Startup() @@ -90,19 +94,19 @@ namespace OpenGridServices.GridServer Cfg = this.LoadConfigDll(this.ConfigDll); Cfg.InitConfig(); - m_console.WriteLine("Main.cs:Startup() - Loading sim profiles from database"); - m_simProfileManager = new SimProfileManager( this ); - m_simProfileManager.LoadProfiles(); + m_console.WriteLine("Main.cs:Startup() - Connecting to MySql Server"); + m_gridManager = new GridManager(); + m_gridManager.AddPlugin("OpenGrid.Framework.Data.MySQL.dll"); // Made of win m_console.WriteLine("Main.cs:Startup() - Starting HTTP process"); BaseHttpServer httpServer = new BaseHttpServer(8001); - httpServer.AddXmlRPCHandler("simulator_login", m_simProfileManager.XmlRpcLoginToSimulatorMethod); + httpServer.AddXmlRPCHandler("simulator_login", m_gridManager.XmlRpcLoginToSimulatorMethod); - httpServer.AddRestHandler("GET", "/sims/", m_simProfileManager.RestGetSimMethod); - httpServer.AddRestHandler("POST", "/sims/", m_simProfileManager.RestSetSimMethod); - httpServer.AddRestHandler("GET", "/regions/", m_simProfileManager.RestGetRegionMethod); - httpServer.AddRestHandler("POST", "/regions/", m_simProfileManager.RestSetRegionMethod); + httpServer.AddRestHandler("GET", "/sims/", m_gridManager.RestGetSimMethod); + httpServer.AddRestHandler("POST", "/sims/", m_gridManager.RestSetSimMethod); + httpServer.AddRestHandler("GET", "/regions/", m_gridManager.RestGetRegionMethod); + httpServer.AddRestHandler("POST", "/regions/", m_gridManager.RestSetRegionMethod); // lbsa71 : This code snippet taken from old http server. @@ -158,6 +162,7 @@ namespace OpenGridServices.GridServer public void CheckSims(object sender, ElapsedEventArgs e) { + /* foreach (SimProfileBase sim in m_simProfileManager.SimProfiles.Values) { string SimResponse = ""; @@ -189,6 +194,7 @@ namespace OpenGridServices.GridServer m_simProfileManager.SimProfiles[sim.UUID].online = false; } } + */ } public void RunCmd(string cmd, string[] cmdparams) diff --git a/OpenSim.Framework/SimProfileBase.cs b/OpenSim.Framework/SimProfileBase.cs index ffc66ec531..cea21f07ee 100644 --- a/OpenSim.Framework/SimProfileBase.cs +++ b/OpenSim.Framework/SimProfileBase.cs @@ -5,6 +5,9 @@ using libsecondlife; namespace OpenSim.Framework.Sims { + /// + /// Depreciated + /// public class SimProfileBase { public LLUUID UUID;