aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs')
-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");