From bf4d701cd5ae74dfc0d52feddee1614b93f5a569 Mon Sep 17 00:00:00 2001 From: Dr Scofield Date: Fri, 27 Mar 2009 12:49:27 +0000 Subject: From: Alan Webb Fixed problem with REST services caused by changes to the OpenSim core code base - the comms manager had been 'modularized'. Also added additional debugging to RemoteAdmin interface. --- .../RemoteController/RemoteAdminPlugin.cs | 37 ++++++++++++++++++---- 1 file changed, 30 insertions(+), 7 deletions(-) (limited to 'OpenSim/ApplicationPlugins/RemoteController') diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs index 6465db2..329a489 100644 --- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs +++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs @@ -48,6 +48,8 @@ namespace OpenSim.ApplicationPlugins.RemoteController { private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); + private static Object rslock = new Object(); + private OpenSimBase m_app; private BaseHttpServer m_httpd; private IConfig m_config; @@ -186,6 +188,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController response.Value = responseData; } + m_log.Info("[RADMIN]: Restart Region request complete"); return response; } @@ -194,6 +197,8 @@ namespace OpenSim.ApplicationPlugins.RemoteController XmlRpcResponse response = new XmlRpcResponse(); Hashtable responseData = new Hashtable(); + m_log.Info("[RADMIN]: Alert request started"); + try { Hashtable requestData = (Hashtable) request.Params[0]; @@ -230,6 +235,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController response.Value = responseData; } + m_log.Info("[RADMIN]: Alert request complete"); return response; } @@ -238,6 +244,8 @@ namespace OpenSim.ApplicationPlugins.RemoteController XmlRpcResponse response = new XmlRpcResponse(); Hashtable responseData = new Hashtable(); + m_log.Info("[RADMIN]: Load height maps request started"); + try { Hashtable requestData = (Hashtable) request.Params[0]; @@ -283,12 +291,16 @@ namespace OpenSim.ApplicationPlugins.RemoteController responseData["error"] = e.Message; } + m_log.Info("[RADMIN]: Load height maps request complete"); + return response; } public XmlRpcResponse XmlRpcShutdownMethod(XmlRpcRequest request) { + m_log.Info("[RADMIN]: Received Shutdown Administrator Request"); + XmlRpcResponse response = new XmlRpcResponse(); Hashtable responseData = new Hashtable(); @@ -347,6 +359,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController response.Value = responseData; } + m_log.Info("[RADMIN]: Shutdown Administrator Request complete"); return response; } @@ -433,7 +446,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController XmlRpcResponse response = new XmlRpcResponse(); Hashtable responseData = new Hashtable(); - lock (this) + lock (rslock) { int m_regionLimit = m_config.GetInt("region_limit", 0); @@ -605,6 +618,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController response.Value = responseData; } + m_log.Info("[RADMIN]: CreateRegion: request complete"); return response; } } @@ -641,7 +655,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController XmlRpcResponse response = new XmlRpcResponse(); Hashtable responseData = new Hashtable(); - lock (this) + lock (rslock) { try { @@ -671,6 +685,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController response.Value = responseData; } + m_log.Info("[RADMIN]: DeleteRegion: request complete"); return response; } } @@ -719,7 +734,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController XmlRpcResponse response = new XmlRpcResponse(); Hashtable responseData = new Hashtable(); - lock (this) + lock (rslock) { try { @@ -779,6 +794,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController response.Value = responseData; } + m_log.Info("[RADMIN]: CreateUser: request complete"); return response; } } @@ -852,6 +868,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController response.Value = responseData; } + m_log.Info("[RADMIN]: UserExists: request complete"); return response; } @@ -899,7 +916,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController XmlRpcResponse response = new XmlRpcResponse(); Hashtable responseData = new Hashtable(); - lock (this) + lock (rslock) { try { @@ -1002,6 +1019,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController } } + m_log.Info("[RADMIN]: UpdateUserAccount: request complete"); return response; } @@ -1043,7 +1061,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController XmlRpcResponse response = new XmlRpcResponse(); Hashtable responseData = new Hashtable(); - lock (this) + lock (rslock) { try { @@ -1099,6 +1117,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController response.Value = responseData; } + m_log.Info("[RADMIN]: Load OAR Administrator Request complete"); return response; } } @@ -1195,6 +1214,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController response.Value = responseData; } + m_log.Info("[RADMIN]: Save OAR Administrator Request complete"); return response; } @@ -1204,7 +1224,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController XmlRpcResponse response = new XmlRpcResponse(); Hashtable responseData = new Hashtable(); - lock (this) + lock (rslock) { try { @@ -1277,6 +1297,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController response.Value = responseData; } + m_log.Info("[RADMIN]: Load XML Administrator Request complete"); return response; } } @@ -1360,6 +1381,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController response.Value = responseData; } + m_log.Info("[RADMIN]: Save XML Administrator Request complete"); return response; } @@ -1415,6 +1437,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController response.Value = responseData; } + m_log.Info("[RADMIN]: Query XML Administrator Request complete"); return response; } @@ -1422,4 +1445,4 @@ namespace OpenSim.ApplicationPlugins.RemoteController { } } -} \ No newline at end of file +} -- cgit v1.1