From e77b5d990d275f3a900d844e955bb92f6dba08aa Mon Sep 17 00:00:00 2001 From: MW Date: Sat, 21 Feb 2009 18:41:28 +0000 Subject: More Grid server refactoring --- OpenSim/Grid/GridServer/GridMessagingModule.cs | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'OpenSim/Grid/GridServer/GridMessagingModule.cs') diff --git a/OpenSim/Grid/GridServer/GridMessagingModule.cs b/OpenSim/Grid/GridServer/GridMessagingModule.cs index 040f4e0..6d9a723 100644 --- a/OpenSim/Grid/GridServer/GridMessagingModule.cs +++ b/OpenSim/Grid/GridServer/GridMessagingModule.cs @@ -42,7 +42,7 @@ namespace OpenSim.Grid.GridServer private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); protected GridDBService m_gridDBService; - protected IGridCore m_gridCore; + protected IUGAIMCore m_gridCore; protected GridConfig m_config; @@ -65,19 +65,29 @@ namespace OpenSim.Grid.GridServer { } - public void Initialise(string opensimVersion, GridDBService gridDBService, IGridCore gridCore, GridConfig config) + public void Initialise(string opensimVersion, GridDBService gridDBService, IUGAIMCore gridCore, GridConfig config) { m_opensimVersion = opensimVersion; m_gridDBService = gridDBService; m_gridCore = gridCore; m_config = config; + RegisterHandlers(); + } + + public void PostInitialise() + { + + } + + public void RegisterHandlers() + { + //have these in separate method as some servers restart the http server and reregister all the handlers. m_httpServer = m_gridCore.GetHttpServer(); m_gridCore.RegisterInterface(this); // Message Server ---> Grid Server m_httpServer.AddXmlRPCHandler("register_messageserver", XmlRPCRegisterMessageServer); m_httpServer.AddXmlRPCHandler("deregister_messageserver", XmlRPCDeRegisterMessageServer); - } public XmlRpcResponse XmlRPCRegisterMessageServer(XmlRpcRequest request) -- cgit v1.1