diff options
Diffstat (limited to 'OpenSim/Services/Connectors')
9 files changed, 233 insertions, 40 deletions
diff --git a/OpenSim/Services/Connectors/Asset/AssetServiceConnector.cs b/OpenSim/Services/Connectors/Asset/AssetServiceConnector.cs index f1da4fa..565e4f2 100644 --- a/OpenSim/Services/Connectors/Asset/AssetServiceConnector.cs +++ b/OpenSim/Services/Connectors/Asset/AssetServiceConnector.cs | |||
@@ -30,6 +30,7 @@ using System; | |||
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.IO; | 31 | using System.IO; |
32 | using System.Reflection; | 32 | using System.Reflection; |
33 | using System.Timers; | ||
33 | using Nini.Config; | 34 | using Nini.Config; |
34 | using OpenSim.Framework; | 35 | using OpenSim.Framework; |
35 | using OpenSim.Framework.Console; | 36 | using OpenSim.Framework.Console; |
@@ -47,7 +48,9 @@ namespace OpenSim.Services.Connectors | |||
47 | 48 | ||
48 | private string m_ServerURI = String.Empty; | 49 | private string m_ServerURI = String.Empty; |
49 | private IImprovedAssetCache m_Cache = null; | 50 | private IImprovedAssetCache m_Cache = null; |
50 | 51 | private int m_retryCounter; | |
52 | private Dictionary<int, List<AssetBase>> m_retryQueue = new Dictionary<int, List<AssetBase>>(); | ||
53 | private Timer m_retryTimer; | ||
51 | public AssetServicesConnector() | 54 | public AssetServicesConnector() |
52 | { | 55 | { |
53 | } | 56 | } |
@@ -84,6 +87,55 @@ namespace OpenSim.Services.Connectors | |||
84 | MainConsole.Instance.Commands.AddCommand("asset", false, "dump asset", | 87 | MainConsole.Instance.Commands.AddCommand("asset", false, "dump asset", |
85 | "dump asset <id> <file>", | 88 | "dump asset <id> <file>", |
86 | "dump one cached asset", HandleDumpAsset); | 89 | "dump one cached asset", HandleDumpAsset); |
90 | |||
91 | m_retryTimer = new Timer(); | ||
92 | m_retryTimer.Elapsed += new ElapsedEventHandler(retryCheck); | ||
93 | m_retryTimer.Interval = 60000; | ||
94 | } | ||
95 | |||
96 | protected void retryCheck(object source, ElapsedEventArgs e) | ||
97 | { | ||
98 | m_retryCounter++; | ||
99 | if (m_retryCounter > 60) m_retryCounter -= 60; | ||
100 | List<int> keys = new List<int>(); | ||
101 | foreach (int a in m_retryQueue.Keys) | ||
102 | { | ||
103 | keys.Add(a); | ||
104 | } | ||
105 | foreach (int a in keys) | ||
106 | { | ||
107 | //We exponentially fall back on frequency until we reach one attempt per hour | ||
108 | //The net result is that we end up in the queue for roughly 24 hours.. | ||
109 | //24 hours worth of assets could be a lot, so the hope is that the region admin | ||
110 | //will have gotten the asset connector back online quickly! | ||
111 | |||
112 | int timefactor = a ^ 2; | ||
113 | if (timefactor > 60) | ||
114 | { | ||
115 | timefactor = 60; | ||
116 | } | ||
117 | |||
118 | //First, find out if we care about this timefactor | ||
119 | if (timefactor % a == 0) | ||
120 | { | ||
121 | //Yes, we do! | ||
122 | List<AssetBase> retrylist = m_retryQueue[a]; | ||
123 | m_retryQueue.Remove(a); | ||
124 | |||
125 | foreach(AssetBase ass in retrylist) | ||
126 | { | ||
127 | Store(ass); //Store my ass. This function will put it back in the dictionary if it fails | ||
128 | } | ||
129 | } | ||
130 | } | ||
131 | |||
132 | if (m_retryQueue.Count == 0) | ||
133 | { | ||
134 | //It might only be one tick per minute, but I have | ||
135 | //repented and abandoned my wasteful ways | ||
136 | m_retryCounter = 0; | ||
137 | m_retryTimer.Stop(); | ||
138 | } | ||
87 | } | 139 | } |
88 | 140 | ||
89 | protected void SetCache(IImprovedAssetCache cache) | 141 | protected void SetCache(IImprovedAssetCache cache) |
@@ -98,8 +150,8 @@ namespace OpenSim.Services.Connectors | |||
98 | AssetBase asset = null; | 150 | AssetBase asset = null; |
99 | if (m_Cache != null) | 151 | if (m_Cache != null) |
100 | asset = m_Cache.Get(id); | 152 | asset = m_Cache.Get(id); |
101 | 153 | ||
102 | if (asset == null) | 154 | if (asset == null || asset.Data == null || asset.Data.Length == 0) |
103 | { | 155 | { |
104 | asset = SynchronousRestObjectRequester. | 156 | asset = SynchronousRestObjectRequester. |
105 | MakeRequest<int, AssetBase>("GET", uri, 0); | 157 | MakeRequest<int, AssetBase>("GET", uri, 0); |
@@ -176,7 +228,7 @@ namespace OpenSim.Services.Connectors | |||
176 | if (m_Cache != null) | 228 | if (m_Cache != null) |
177 | asset = m_Cache.Get(id); | 229 | asset = m_Cache.Get(id); |
178 | 230 | ||
179 | if (asset == null) | 231 | if (asset == null || asset.Data == null || asset.Data.Length == 0) |
180 | { | 232 | { |
181 | bool result = false; | 233 | bool result = false; |
182 | 234 | ||
@@ -203,11 +255,10 @@ namespace OpenSim.Services.Connectors | |||
203 | 255 | ||
204 | public string Store(AssetBase asset) | 256 | public string Store(AssetBase asset) |
205 | { | 257 | { |
258 | if (m_Cache != null) | ||
259 | m_Cache.Cache(asset); | ||
206 | if (asset.Temporary || asset.Local) | 260 | if (asset.Temporary || asset.Local) |
207 | { | 261 | { |
208 | if (m_Cache != null) | ||
209 | m_Cache.Cache(asset); | ||
210 | |||
211 | return asset.ID; | 262 | return asset.ID; |
212 | } | 263 | } |
213 | 264 | ||
@@ -217,24 +268,57 @@ namespace OpenSim.Services.Connectors | |||
217 | try | 268 | try |
218 | { | 269 | { |
219 | newID = SynchronousRestObjectRequester. | 270 | newID = SynchronousRestObjectRequester. |
220 | MakeRequest<AssetBase, string>("POST", uri, asset); | 271 | MakeRequest<AssetBase, string>("POST", uri, asset, 25); |
272 | if (newID == null || newID == "") | ||
273 | { | ||
274 | newID = UUID.Zero.ToString(); | ||
275 | } | ||
221 | } | 276 | } |
222 | catch (Exception e) | 277 | catch (Exception e) |
223 | { | 278 | { |
224 | m_log.WarnFormat("[ASSET CONNECTOR]: Unable to send asset {0} to asset server. Reason: {1}", asset.ID, e.Message); | 279 | newID = UUID.Zero.ToString(); |
225 | } | 280 | } |
226 | 281 | ||
227 | if (newID != String.Empty) | 282 | if (newID == UUID.Zero.ToString()) |
228 | { | 283 | { |
229 | // Placing this here, so that this work with old asset servers that don't send any reply back | 284 | //The asset upload failed, put it in a queue for later |
230 | // SynchronousRestObjectRequester returns somethins that is not an empty string | 285 | asset.UploadAttempts++; |
231 | if (newID != null) | 286 | if (asset.UploadAttempts > 30) |
232 | asset.ID = newID; | 287 | { |
233 | 288 | //By this stage we've been in the queue for a good few hours; | |
234 | if (m_Cache != null) | 289 | //We're going to drop the asset. |
235 | m_Cache.Cache(asset); | 290 | m_log.ErrorFormat("[Assets] Dropping asset {0} - Upload has been in the queue for too long.", asset.ID.ToString()); |
291 | } | ||
292 | else | ||
293 | { | ||
294 | if (!m_retryQueue.ContainsKey(asset.UploadAttempts)) | ||
295 | { | ||
296 | m_retryQueue.Add(asset.UploadAttempts, new List<AssetBase>()); | ||
297 | } | ||
298 | List<AssetBase> m_queue = m_retryQueue[asset.UploadAttempts]; | ||
299 | m_queue.Add(asset); | ||
300 | m_log.WarnFormat("[Assets] Upload failed: {0} - Requeuing asset for another run.", asset.ID.ToString()); | ||
301 | m_retryTimer.Start(); | ||
302 | } | ||
303 | } | ||
304 | else | ||
305 | { | ||
306 | if (asset.UploadAttempts > 0) | ||
307 | { | ||
308 | m_log.InfoFormat("[Assets] Upload of {0} succeeded after {1} failed attempts", asset.ID.ToString(), asset.UploadAttempts.ToString()); | ||
309 | } | ||
310 | if (newID != String.Empty) | ||
311 | { | ||
312 | // Placing this here, so that this work with old asset servers that don't send any reply back | ||
313 | // SynchronousRestObjectRequester returns somethins that is not an empty string | ||
314 | if (newID != null) | ||
315 | asset.ID = newID; | ||
316 | |||
317 | if (m_Cache != null) | ||
318 | m_Cache.Cache(asset); | ||
319 | } | ||
236 | } | 320 | } |
237 | return newID; | 321 | return asset.ID; |
238 | } | 322 | } |
239 | 323 | ||
240 | public bool UpdateContent(string id, byte[] data) | 324 | public bool UpdateContent(string id, byte[] data) |
diff --git a/OpenSim/Services/Connectors/Hypergrid/GatekeeperServiceConnector.cs b/OpenSim/Services/Connectors/Hypergrid/GatekeeperServiceConnector.cs index 0430ef6..bc0bc54 100644 --- a/OpenSim/Services/Connectors/Hypergrid/GatekeeperServiceConnector.cs +++ b/OpenSim/Services/Connectors/Hypergrid/GatekeeperServiceConnector.cs | |||
@@ -158,17 +158,10 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
158 | try | 158 | try |
159 | { | 159 | { |
160 | WebClient c = new WebClient(); | 160 | WebClient c = new WebClient(); |
161 | //m_log.Debug("JPEG: " + imageURL); | ||
161 | string name = regionID.ToString(); | 162 | string name = regionID.ToString(); |
162 | filename = Path.Combine(storagePath, name + ".jpg"); | 163 | filename = Path.Combine(storagePath, name + ".jpg"); |
163 | m_log.DebugFormat("[GATEKEEPER SERVICE CONNECTOR]: Map image at {0}, cached at {1}", imageURL, filename); | 164 | c.DownloadFile(imageURL, filename); |
164 | if (!File.Exists(filename)) | ||
165 | { | ||
166 | m_log.DebugFormat("[GATEKEEPER SERVICE CONNECTOR]: downloading..."); | ||
167 | c.DownloadFile(imageURL, filename); | ||
168 | } | ||
169 | else | ||
170 | m_log.DebugFormat("[GATEKEEPER SERVICE CONNECTOR]: using cached image"); | ||
171 | |||
172 | bitmap = new Bitmap(filename); | 165 | bitmap = new Bitmap(filename); |
173 | //m_log.Debug("Size: " + m.PhysicalDimension.Height + "-" + m.PhysicalDimension.Width); | 166 | //m_log.Debug("Size: " + m.PhysicalDimension.Height + "-" + m.PhysicalDimension.Width); |
174 | byte[] imageData = OpenJPEG.EncodeFromImage(bitmap, true); | 167 | byte[] imageData = OpenJPEG.EncodeFromImage(bitmap, true); |
@@ -179,11 +172,10 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
179 | 172 | ||
180 | ass.Data = imageData; | 173 | ass.Data = imageData; |
181 | 174 | ||
182 | mapTile = ass.FullID; | ||
183 | |||
184 | // finally | ||
185 | m_AssetService.Store(ass); | 175 | m_AssetService.Store(ass); |
186 | 176 | ||
177 | // finally | ||
178 | mapTile = ass.FullID; | ||
187 | } | 179 | } |
188 | catch // LEGIT: Catching problems caused by OpenJPEG p/invoke | 180 | catch // LEGIT: Catching problems caused by OpenJPEG p/invoke |
189 | { | 181 | { |
diff --git a/OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs b/OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs index c40a347..7ddcfa6 100644 --- a/OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs +++ b/OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs | |||
@@ -60,9 +60,7 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
60 | { | 60 | { |
61 | Uri m_Uri = new Uri(m_ServerURL); | 61 | Uri m_Uri = new Uri(m_ServerURL); |
62 | IPAddress ip = Util.GetHostFromDNS(m_Uri.Host); | 62 | IPAddress ip = Util.GetHostFromDNS(m_Uri.Host); |
63 | m_ServerURL = m_ServerURL.Replace(m_Uri.Host, ip.ToString()); | 63 | m_ServerURL = m_ServerURL.Replace(m_Uri.Host, ip.ToString()); ; |
64 | if (!m_ServerURL.EndsWith("/")) | ||
65 | m_ServerURL += "/"; | ||
66 | } | 64 | } |
67 | catch (Exception e) | 65 | catch (Exception e) |
68 | { | 66 | { |
@@ -89,8 +87,6 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
89 | throw new Exception("UserAgent connector init error"); | 87 | throw new Exception("UserAgent connector init error"); |
90 | } | 88 | } |
91 | m_ServerURL = serviceURI; | 89 | m_ServerURL = serviceURI; |
92 | if (!m_ServerURL.EndsWith("/")) | ||
93 | m_ServerURL += "/"; | ||
94 | 90 | ||
95 | m_log.DebugFormat("[USER AGENT CONNECTOR]: UserAgentServiceConnector started for {0}", m_ServerURL); | 91 | m_log.DebugFormat("[USER AGENT CONNECTOR]: UserAgentServiceConnector started for {0}", m_ServerURL); |
96 | } | 92 | } |
diff --git a/OpenSim/Services/Connectors/Land/LandServiceConnector.cs b/OpenSim/Services/Connectors/Land/LandServiceConnector.cs index 30a73a4..833e22a 100644 --- a/OpenSim/Services/Connectors/Land/LandServiceConnector.cs +++ b/OpenSim/Services/Connectors/Land/LandServiceConnector.cs | |||
@@ -130,4 +130,4 @@ namespace OpenSim.Services.Connectors | |||
130 | return landData; | 130 | return landData; |
131 | } | 131 | } |
132 | } | 132 | } |
133 | } \ No newline at end of file | 133 | } |
diff --git a/OpenSim/Services/Connectors/Presence/PresenceServiceConnector.cs b/OpenSim/Services/Connectors/Presence/PresenceServiceConnector.cs index 7238afc..e16dc36 100644 --- a/OpenSim/Services/Connectors/Presence/PresenceServiceConnector.cs +++ b/OpenSim/Services/Connectors/Presence/PresenceServiceConnector.cs | |||
@@ -299,6 +299,17 @@ namespace OpenSim.Services.Connectors | |||
299 | { | 299 | { |
300 | pinfo = new PresenceInfo((Dictionary<string, object>)replyData["result"]); | 300 | pinfo = new PresenceInfo((Dictionary<string, object>)replyData["result"]); |
301 | } | 301 | } |
302 | else | ||
303 | { | ||
304 | if (replyData["result"].ToString() == "null") | ||
305 | return null; | ||
306 | |||
307 | m_log.DebugFormat("[PRESENCE CONNECTOR]: Invalid reply (result not dictionary) received from presence server when querying for sessionID {0}", sessionID.ToString()); | ||
308 | } | ||
309 | } | ||
310 | else | ||
311 | { | ||
312 | m_log.DebugFormat("[PRESENCE CONNECTOR]: Invalid reply received from presence server when querying for sessionID {0}", sessionID.ToString()); | ||
302 | } | 313 | } |
303 | 314 | ||
304 | return pinfo; | 315 | return pinfo; |
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs index 918544f..feea196 100644 --- a/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs +++ b/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs | |||
@@ -28,6 +28,8 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Collections.Specialized; | 30 | using System.Collections.Specialized; |
31 | using System.Drawing; | ||
32 | using System.Drawing.Imaging; | ||
31 | using System.IO; | 33 | using System.IO; |
32 | using System.Net; | 34 | using System.Net; |
33 | using System.Reflection; | 35 | using System.Reflection; |
@@ -100,6 +102,15 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
100 | 102 | ||
101 | public string RegisterRegion(UUID scopeID, GridRegion regionInfo) | 103 | public string RegisterRegion(UUID scopeID, GridRegion regionInfo) |
102 | { | 104 | { |
105 | IPEndPoint ext = regionInfo.ExternalEndPoint; | ||
106 | if (ext == null) return "Region registration for " + regionInfo.RegionName + " failed: Could not resolve EndPoint"; | ||
107 | // Generate and upload our map tile in PNG format to the SimianGrid AddMapTile service | ||
108 | // Scene scene; | ||
109 | // if (m_scenes.TryGetValue(regionInfo.RegionID, out scene)) | ||
110 | // UploadMapTile(scene); | ||
111 | // else | ||
112 | // m_log.Warn("Registering region " + regionInfo.RegionName + " (" + regionInfo.RegionID + ") that we are not tracking"); | ||
113 | |||
103 | Vector3d minPosition = new Vector3d(regionInfo.RegionLocX, regionInfo.RegionLocY, 0.0); | 114 | Vector3d minPosition = new Vector3d(regionInfo.RegionLocX, regionInfo.RegionLocY, 0.0); |
104 | Vector3d maxPosition = minPosition + new Vector3d(Constants.RegionSize, Constants.RegionSize, 4096.0); | 115 | Vector3d maxPosition = minPosition + new Vector3d(Constants.RegionSize, Constants.RegionSize, 4096.0); |
105 | 116 | ||
@@ -108,7 +119,7 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
108 | { "ServerURI", OSD.FromString(regionInfo.ServerURI) }, | 119 | { "ServerURI", OSD.FromString(regionInfo.ServerURI) }, |
109 | { "InternalAddress", OSD.FromString(regionInfo.InternalEndPoint.Address.ToString()) }, | 120 | { "InternalAddress", OSD.FromString(regionInfo.InternalEndPoint.Address.ToString()) }, |
110 | { "InternalPort", OSD.FromInteger(regionInfo.InternalEndPoint.Port) }, | 121 | { "InternalPort", OSD.FromInteger(regionInfo.InternalEndPoint.Port) }, |
111 | { "ExternalAddress", OSD.FromString(regionInfo.ExternalEndPoint.Address.ToString()) }, | 122 | { "ExternalAddress", OSD.FromString(ext.Address.ToString()) }, |
112 | { "ExternalPort", OSD.FromInteger(regionInfo.ExternalEndPoint.Port) }, | 123 | { "ExternalPort", OSD.FromInteger(regionInfo.ExternalEndPoint.Port) }, |
113 | { "MapTexture", OSD.FromUUID(regionInfo.TerrainImage) }, | 124 | { "MapTexture", OSD.FromUUID(regionInfo.TerrainImage) }, |
114 | { "Access", OSD.FromInteger(regionInfo.Access) }, | 125 | { "Access", OSD.FromInteger(regionInfo.Access) }, |
@@ -371,6 +382,83 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
371 | 382 | ||
372 | #endregion IGridService | 383 | #endregion IGridService |
373 | 384 | ||
385 | private void UploadMapTile(IScene scene) | ||
386 | { | ||
387 | string errorMessage = null; | ||
388 | |||
389 | // Create a PNG map tile and upload it to the AddMapTile API | ||
390 | byte[] pngData = Utils.EmptyBytes; | ||
391 | IMapImageGenerator tileGenerator = scene.RequestModuleInterface<IMapImageGenerator>(); | ||
392 | if (tileGenerator == null) | ||
393 | { | ||
394 | m_log.Warn("[SIMIAN GRID CONNECTOR]: Cannot upload PNG map tile without an IMapImageGenerator"); | ||
395 | return; | ||
396 | } | ||
397 | |||
398 | using (Image mapTile = tileGenerator.CreateMapTile()) | ||
399 | { | ||
400 | using (MemoryStream stream = new MemoryStream()) | ||
401 | { | ||
402 | mapTile.Save(stream, ImageFormat.Png); | ||
403 | pngData = stream.ToArray(); | ||
404 | } | ||
405 | } | ||
406 | |||
407 | List<MultipartForm.Element> postParameters = new List<MultipartForm.Element>() | ||
408 | { | ||
409 | new MultipartForm.Parameter("X", scene.RegionInfo.RegionLocX.ToString()), | ||
410 | new MultipartForm.Parameter("Y", scene.RegionInfo.RegionLocY.ToString()), | ||
411 | new MultipartForm.File("Tile", "tile.png", "image/png", pngData) | ||
412 | }; | ||
413 | |||
414 | // Make the remote storage request | ||
415 | try | ||
416 | { | ||
417 | HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(m_ServerURI); | ||
418 | |||
419 | HttpWebResponse response = MultipartForm.Post(request, postParameters); | ||
420 | using (Stream responseStream = response.GetResponseStream()) | ||
421 | { | ||
422 | string responseStr = null; | ||
423 | |||
424 | try | ||
425 | { | ||
426 | responseStr = responseStream.GetStreamString(); | ||
427 | OSD responseOSD = OSDParser.Deserialize(responseStr); | ||
428 | if (responseOSD.Type == OSDType.Map) | ||
429 | { | ||
430 | OSDMap responseMap = (OSDMap)responseOSD; | ||
431 | if (responseMap["Success"].AsBoolean()) | ||
432 | m_log.Info("[SIMIAN GRID CONNECTOR]: Uploaded " + pngData.Length + " byte PNG map tile to AddMapTile"); | ||
433 | else | ||
434 | errorMessage = "Upload failed: " + responseMap["Message"].AsString(); | ||
435 | } | ||
436 | else | ||
437 | { | ||
438 | errorMessage = "Response format was invalid:\n" + responseStr; | ||
439 | } | ||
440 | } | ||
441 | catch (Exception ex) | ||
442 | { | ||
443 | if (!String.IsNullOrEmpty(responseStr)) | ||
444 | errorMessage = "Failed to parse the response:\n" + responseStr; | ||
445 | else | ||
446 | errorMessage = "Failed to retrieve the response: " + ex.Message; | ||
447 | } | ||
448 | } | ||
449 | } | ||
450 | catch (WebException ex) | ||
451 | { | ||
452 | errorMessage = ex.Message; | ||
453 | } | ||
454 | |||
455 | if (!String.IsNullOrEmpty(errorMessage)) | ||
456 | { | ||
457 | m_log.WarnFormat("[SIMIAN GRID CONNECTOR]: Failed to store {0} byte PNG map tile for {1}: {2}", | ||
458 | pngData.Length, scene.RegionInfo.RegionName, errorMessage.Replace('\n', ' ')); | ||
459 | } | ||
460 | } | ||
461 | |||
374 | private GridRegion GetNearestRegion(Vector3d position, bool onlyEnabled) | 462 | private GridRegion GetNearestRegion(Vector3d position, bool onlyEnabled) |
375 | { | 463 | { |
376 | NameValueCollection requestArgs = new NameValueCollection | 464 | NameValueCollection requestArgs = new NameValueCollection |
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianUserAccountServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianUserAccountServiceConnector.cs index 91e2976..801b424 100644 --- a/OpenSim/Services/Connectors/SimianGrid/SimianUserAccountServiceConnector.cs +++ b/OpenSim/Services/Connectors/SimianGrid/SimianUserAccountServiceConnector.cs | |||
@@ -191,6 +191,11 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
191 | return accounts; | 191 | return accounts; |
192 | } | 192 | } |
193 | 193 | ||
194 | public List<UserAccount> GetUserAccountsWhere(UUID scopeID, string query) | ||
195 | { | ||
196 | return null; | ||
197 | } | ||
198 | |||
194 | public bool StoreUserAccount(UserAccount data) | 199 | public bool StoreUserAccount(UserAccount data) |
195 | { | 200 | { |
196 | // m_log.InfoFormat("[SIMIAN ACCOUNT CONNECTOR]: Storing user account for " + data.Name); | 201 | // m_log.InfoFormat("[SIMIAN ACCOUNT CONNECTOR]: Storing user account for " + data.Name); |
diff --git a/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs b/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs index cef6473..0ad9121 100644 --- a/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs +++ b/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs | |||
@@ -308,6 +308,10 @@ namespace OpenSim.Services.Connectors.Simulation | |||
308 | return false; | 308 | return false; |
309 | } | 309 | } |
310 | 310 | ||
311 | OSDMap resp = (OSDMap)result["_Result"]; | ||
312 | success = resp["success"].AsBoolean(); | ||
313 | reason = resp["reason"].AsString(); | ||
314 | |||
311 | return success; | 315 | return success; |
312 | } | 316 | } |
313 | catch (Exception e) | 317 | catch (Exception e) |
@@ -336,9 +340,7 @@ namespace OpenSim.Services.Connectors.Simulation | |||
336 | return true; | 340 | return true; |
337 | } | 341 | } |
338 | 342 | ||
339 | /// <summary> | 343 | private bool CloseAgent(GridRegion destination, UUID id, bool ChildOnly) |
340 | /// </summary> | ||
341 | public bool CloseAgent(GridRegion destination, UUID id) | ||
342 | { | 344 | { |
343 | // m_log.DebugFormat("[REMOTE SIMULATION CONNECTOR]: CloseAgent start"); | 345 | // m_log.DebugFormat("[REMOTE SIMULATION CONNECTOR]: CloseAgent start"); |
344 | 346 | ||
@@ -356,6 +358,16 @@ namespace OpenSim.Services.Connectors.Simulation | |||
356 | return true; | 358 | return true; |
357 | } | 359 | } |
358 | 360 | ||
361 | public bool CloseChildAgent(GridRegion destination, UUID id) | ||
362 | { | ||
363 | return CloseAgent(destination, id, true); | ||
364 | } | ||
365 | |||
366 | public bool CloseAgent(GridRegion destination, UUID id) | ||
367 | { | ||
368 | return CloseAgent(destination, id, false); | ||
369 | } | ||
370 | |||
359 | #endregion Agents | 371 | #endregion Agents |
360 | 372 | ||
361 | #region Objects | 373 | #region Objects |
diff --git a/OpenSim/Services/Connectors/UserAccounts/UserAccountServiceConnector.cs b/OpenSim/Services/Connectors/UserAccounts/UserAccountServiceConnector.cs index f6835b9..60f3abe 100644 --- a/OpenSim/Services/Connectors/UserAccounts/UserAccountServiceConnector.cs +++ b/OpenSim/Services/Connectors/UserAccounts/UserAccountServiceConnector.cs | |||
@@ -186,6 +186,11 @@ namespace OpenSim.Services.Connectors | |||
186 | return accounts; | 186 | return accounts; |
187 | } | 187 | } |
188 | 188 | ||
189 | public List<UserAccount> GetUserAccountsWhere(UUID scopeID, string where) | ||
190 | { | ||
191 | return null; // Not implemented for regions | ||
192 | } | ||
193 | |||
189 | public virtual bool StoreUserAccount(UserAccount data) | 194 | public virtual bool StoreUserAccount(UserAccount data) |
190 | { | 195 | { |
191 | Dictionary<string, object> sendData = new Dictionary<string, object>(); | 196 | Dictionary<string, object> sendData = new Dictionary<string, object>(); |