aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/GridServer/GridMessagingModule.cs
diff options
context:
space:
mode:
authorMW2009-02-21 18:41:28 +0000
committerMW2009-02-21 18:41:28 +0000
commite77b5d990d275f3a900d844e955bb92f6dba08aa (patch)
tree8dc84f9dbc540e13efc0f243fdb9eed1a7ee6b61 /OpenSim/Grid/GridServer/GridMessagingModule.cs
parentThank you kindly, DoranZemlja for a patch that: (diff)
downloadopensim-SC_OLD-e77b5d990d275f3a900d844e955bb92f6dba08aa.zip
opensim-SC_OLD-e77b5d990d275f3a900d844e955bb92f6dba08aa.tar.gz
opensim-SC_OLD-e77b5d990d275f3a900d844e955bb92f6dba08aa.tar.bz2
opensim-SC_OLD-e77b5d990d275f3a900d844e955bb92f6dba08aa.tar.xz
More Grid server refactoring
Diffstat (limited to 'OpenSim/Grid/GridServer/GridMessagingModule.cs')
-rw-r--r--OpenSim/Grid/GridServer/GridMessagingModule.cs16
1 files changed, 13 insertions, 3 deletions
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
42 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 42 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
43 43
44 protected GridDBService m_gridDBService; 44 protected GridDBService m_gridDBService;
45 protected IGridCore m_gridCore; 45 protected IUGAIMCore m_gridCore;
46 46
47 protected GridConfig m_config; 47 protected GridConfig m_config;
48 48
@@ -65,19 +65,29 @@ namespace OpenSim.Grid.GridServer
65 { 65 {
66 } 66 }
67 67
68 public void Initialise(string opensimVersion, GridDBService gridDBService, IGridCore gridCore, GridConfig config) 68 public void Initialise(string opensimVersion, GridDBService gridDBService, IUGAIMCore gridCore, GridConfig config)
69 { 69 {
70 m_opensimVersion = opensimVersion; 70 m_opensimVersion = opensimVersion;
71 m_gridDBService = gridDBService; 71 m_gridDBService = gridDBService;
72 m_gridCore = gridCore; 72 m_gridCore = gridCore;
73 m_config = config; 73 m_config = config;
74 RegisterHandlers();
75 }
76
77 public void PostInitialise()
78 {
79
80 }
81
82 public void RegisterHandlers()
83 {
84 //have these in separate method as some servers restart the http server and reregister all the handlers.
74 m_httpServer = m_gridCore.GetHttpServer(); 85 m_httpServer = m_gridCore.GetHttpServer();
75 86
76 m_gridCore.RegisterInterface<IGridMessagingModule>(this); 87 m_gridCore.RegisterInterface<IGridMessagingModule>(this);
77 // Message Server ---> Grid Server 88 // Message Server ---> Grid Server
78 m_httpServer.AddXmlRPCHandler("register_messageserver", XmlRPCRegisterMessageServer); 89 m_httpServer.AddXmlRPCHandler("register_messageserver", XmlRPCRegisterMessageServer);
79 m_httpServer.AddXmlRPCHandler("deregister_messageserver", XmlRPCDeRegisterMessageServer); 90 m_httpServer.AddXmlRPCHandler("deregister_messageserver", XmlRPCDeRegisterMessageServer);
80
81 } 91 }
82 92
83 public XmlRpcResponse XmlRPCRegisterMessageServer(XmlRpcRequest request) 93 public XmlRpcResponse XmlRPCRegisterMessageServer(XmlRpcRequest request)