From 1dcbea0144a61c37527c3a925d6a586f76daecab Mon Sep 17 00:00:00 2001 From: MW Date: Mon, 2 Mar 2009 11:21:18 +0000 Subject: Removed the commented out InitialiseStandaloneServices and InitialiseGridServices (which are now preformed in CreateCommsManagerPlugin) methods from OpenSimBase and HGOpenSimNode. As if we decided to swap back to the old methods we can always re-add them, rather than leave them commented out. --- OpenSim/Region/Application/HGOpenSimNode.cs | 52 ----------------------------- OpenSim/Region/Application/OpenSimBase.cs | 51 ---------------------------- 2 files changed, 103 deletions(-) diff --git a/OpenSim/Region/Application/HGOpenSimNode.cs b/OpenSim/Region/Application/HGOpenSimNode.cs index b0be40d..44c1602 100644 --- a/OpenSim/Region/Application/HGOpenSimNode.cs +++ b/OpenSim/Region/Application/HGOpenSimNode.cs @@ -73,58 +73,6 @@ namespace OpenSim } - //protected override void InitialiseStandaloneServices(LibraryRootFolder libraryRootFolder) - //{ - // // Standalone mode - - // HGInventoryService inventoryService = new HGInventoryService(m_networkServersInfo.InventoryURL, null, false); - // inventoryService.AddPlugin(m_configSettings.StandaloneInventoryPlugin, m_configSettings.StandaloneInventorySource); - - // LocalUserServices userService = - // new LocalUserServices( - // m_networkServersInfo.DefaultHomeLocX, m_networkServersInfo.DefaultHomeLocY, inventoryService); - // userService.AddPlugin(m_configSettings.StandaloneUserPlugin, m_configSettings.StandaloneUserSource); - - // //LocalBackEndServices backendService = new LocalBackEndServices(); - // HGGridServicesStandalone gridService = new HGGridServicesStandalone(m_networkServersInfo, m_httpServer, m_assetCache, m_sceneManager); - - // LocalLoginService loginService = - // new LocalLoginService( - // userService, m_configSettings.StandaloneWelcomeMessage, inventoryService, gridService.LocalBackend, m_networkServersInfo, - // m_configSettings.StandaloneAuthenticate, libraryRootFolder); - - - // m_commsManager = new HGCommunicationsStandalone(m_networkServersInfo, m_httpServer, m_assetCache, - // userService, userService, inventoryService, gridService, userService, libraryRootFolder, m_configSettings.DumpAssetsToFile); - - // inventoryService.UserProfileCache = m_commsManager.UserProfileCacheService; - // HGServices = gridService; - - // // set up XMLRPC handler for client's initial login request message - // m_httpServer.AddXmlRPCHandler("login_to_simulator", loginService.XmlRpcLoginMethod); - - // // provides the web form login - // m_httpServer.AddHTTPHandler("login", loginService.ProcessHTMLLogin); - - // // Provides the LLSD login - // m_httpServer.SetDefaultLLSDHandler(loginService.LLSDLoginMethod); - - // // provide grid info - // // m_gridInfoService = new GridInfoService(m_config.Source.Configs["Startup"].GetString("inifile", Path.Combine(Util.configDir(), "OpenSim.ini"))); - // m_gridInfoService = new GridInfoService(m_config.Source); - // m_httpServer.AddXmlRPCHandler("get_grid_info", m_gridInfoService.XmlRpcGridInfoMethod); - // m_httpServer.AddStreamHandler(new RestStreamHandler("GET", "/get_grid_info", m_gridInfoService.RestGetGridInfoMethod)); - //} - - //protected override void InitialiseGridServices(LibraryRootFolder libraryRootFolder) - //{ - // m_commsManager = new HGCommunicationsGridMode(m_networkServersInfo, m_httpServer, m_assetCache, m_sceneManager, libraryRootFolder); - - // HGServices = ((HGCommunicationsGridMode)m_commsManager).HGServices; - - // m_httpServer.AddStreamHandler(new SimStatusHandler()); - //} - protected override Scene CreateScene(RegionInfo regionInfo, StorageManager storageManager, AgentCircuitManager circuitManager) { diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index 5927c5c..8021b8f 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs @@ -274,57 +274,6 @@ namespace OpenSim m_console.Notice(moduleCommander.Help); } - ///// - ///// Initialises the backend services for standalone mode, and registers some http handlers - ///// - ///// - //protected virtual void InitialiseStandaloneServices(LibraryRootFolder libraryRootFolder) - //{ - // LocalInventoryService inventoryService = new LocalInventoryService(); - // inventoryService.AddPlugin(m_configSettings.StandaloneInventoryPlugin, m_configSettings.StandaloneInventorySource); - - // LocalUserServices userService = - // new LocalUserServices( - // m_networkServersInfo.DefaultHomeLocX, m_networkServersInfo.DefaultHomeLocY, inventoryService); - // userService.AddPlugin(m_configSettings.StandaloneUserPlugin, m_configSettings.StandaloneUserSource); - - // LocalBackEndServices backendService = new LocalBackEndServices(); - - // LocalLoginService loginService = - // new LocalLoginService( - // userService, m_configSettings.StandaloneWelcomeMessage, inventoryService, backendService, m_networkServersInfo, - // m_configSettings.StandaloneAuthenticate, libraryRootFolder); - - // m_commsManager - // = new CommunicationsLocal( - // m_networkServersInfo, m_httpServer, m_assetCache, userService, userService, - // inventoryService, backendService, userService, - // libraryRootFolder, m_configSettings.DumpAssetsToFile); - - // // set up XMLRPC handler for client's initial login request message - // m_httpServer.AddXmlRPCHandler("login_to_simulator", loginService.XmlRpcLoginMethod); - - // // provides the web form login - // m_httpServer.AddHTTPHandler("login", loginService.ProcessHTMLLogin); - - // // Provides the LLSD login - // m_httpServer.SetDefaultLLSDHandler(loginService.LLSDLoginMethod); - - // // provide grid info - // // m_gridInfoService = new GridInfoService(m_config.Source.Configs["Startup"].GetString("inifile", Path.Combine(Util.configDir(), "OpenSim.ini"))); - // m_gridInfoService = new GridInfoService(m_config.Source); - // m_httpServer.AddXmlRPCHandler("get_grid_info", m_gridInfoService.XmlRpcGridInfoMethod); - // m_httpServer.AddStreamHandler(new RestStreamHandler("GET", "/get_grid_info", m_gridInfoService.RestGetGridInfoMethod)); - //} - - //protected virtual void InitialiseGridServices(LibraryRootFolder libraryRootFolder) - //{ - // m_commsManager - // = new CommunicationsOGS1(m_networkServersInfo, m_httpServer, m_assetCache, libraryRootFolder); - - // m_httpServer.AddStreamHandler(new SimStatusHandler()); - //} - protected override void Initialize() { // -- cgit v1.1