aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ApplicationPlugins
diff options
context:
space:
mode:
authorMelanie Thielker2014-08-23 19:39:31 +0200
committerMelanie Thielker2014-08-23 19:39:31 +0200
commit9ce1fd7a3ca688e8c4f5e9082b95aa9c6334293c (patch)
tree8764186e0c310fa5e7e1651bf370bea5726a1f26 /OpenSim/ApplicationPlugins
parentMerge branch 'avination-current' (diff)
parentAdd an admin message to refesh a region's map tile. Will be used to periodically (diff)
downloadopensim-SC_OLD-9ce1fd7a3ca688e8c4f5e9082b95aa9c6334293c.zip
opensim-SC_OLD-9ce1fd7a3ca688e8c4f5e9082b95aa9c6334293c.tar.gz
opensim-SC_OLD-9ce1fd7a3ca688e8c4f5e9082b95aa9c6334293c.tar.bz2
opensim-SC_OLD-9ce1fd7a3ca688e8c4f5e9082b95aa9c6334293c.tar.xz
Merge branch 'avination-current'
Diffstat (limited to 'OpenSim/ApplicationPlugins')
-rw-r--r--OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
index eb5d784..4c05ec8 100644
--- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
+++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
@@ -168,6 +168,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
168 168
169 // Misc 169 // Misc
170 availableMethods["admin_refresh_search"] = (req, ep) => InvokeXmlRpcMethod(req, ep, XmlRpcRefreshSearch); 170 availableMethods["admin_refresh_search"] = (req, ep) => InvokeXmlRpcMethod(req, ep, XmlRpcRefreshSearch);
171 availableMethods["admin_refresh_map"] = (req, ep) => InvokeXmlRpcMethod(req, ep, XmlRpcRefreshMap);
171 availableMethods["admin_get_opensim_version"] = (req, ep) => InvokeXmlRpcMethod(req, ep, XmlRpcGetOpenSimVersion); 172 availableMethods["admin_get_opensim_version"] = (req, ep) => InvokeXmlRpcMethod(req, ep, XmlRpcGetOpenSimVersion);
172 173
173 // Either enable full remote functionality or just selected features 174 // Either enable full remote functionality or just selected features
@@ -2227,6 +2228,32 @@ namespace OpenSim.ApplicationPlugins.RemoteController
2227 m_log.Info("[RADMIN]: Refresh Search Request complete"); 2228 m_log.Info("[RADMIN]: Refresh Search Request complete");
2228 } 2229 }
2229 2230
2231 private void XmlRpcRefreshMap(XmlRpcRequest request, XmlRpcResponse response, IPEndPoint remoteClient)
2232 {
2233 m_log.Info("[RADMIN]: Received Refresh Map Request");
2234
2235 Hashtable responseData = (Hashtable)response.Value;
2236 Hashtable requestData = (Hashtable)request.Params[0];
2237
2238 CheckRegionParams(requestData, responseData);
2239
2240 Scene scene = null;
2241 GetSceneFromRegionParams(requestData, responseData, out scene);
2242
2243 IMapTileModule mapTileModule = scene.RequestModuleInterface<IMapTileModule>();
2244 if (mapTileModule != null)
2245 {
2246 mapTileModule.UploadMapTile(scene);
2247 responseData["success"] = true;
2248 }
2249 else
2250 {
2251 responseData["success"] = false;
2252 }
2253
2254 m_log.Info("[RADMIN]: Refresh Map Request complete");
2255 }
2256
2230 private void XmlRpcGetOpenSimVersion(XmlRpcRequest request, XmlRpcResponse response, IPEndPoint remoteClient) 2257 private void XmlRpcGetOpenSimVersion(XmlRpcRequest request, XmlRpcResponse response, IPEndPoint remoteClient)
2231 { 2258 {
2232 m_log.Info("[RADMIN]: Received Get OpenSim Version Request"); 2259 m_log.Info("[RADMIN]: Received Get OpenSim Version Request");