diff options
author | Mic Bowman | 2013-07-31 11:27:35 -0700 |
---|---|---|
committer | Mic Bowman | 2013-07-31 11:27:35 -0700 |
commit | 64f2dc778ad7a080ba89a1077da538c011c7c934 (patch) | |
tree | 963b456d229b7b986b8f8a6ce251e52774de474d /OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs | |
parent | Avoid another null ref opportunity. (diff) | |
download | opensim-SC-64f2dc778ad7a080ba89a1077da538c011c7c934.zip opensim-SC-64f2dc778ad7a080ba89a1077da538c011c7c934.tar.gz opensim-SC-64f2dc778ad7a080ba89a1077da538c011c7c934.tar.bz2 opensim-SC-64f2dc778ad7a080ba89a1077da538c011c7c934.tar.xz |
A pretty major restructuring of the simian method invocations in order to
service access capabilities. In conjunction with the corresponding Simian
updates, this enables explicit per-simulator capability-based access to
grid services. That enables grid owners to add or revoke access to the grid
on a simulator by simulator basis.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs index 038a4bf..bcc1e4a 100644 --- a/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs +++ b/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs | |||
@@ -129,7 +129,7 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
129 | { "ExtraData", OSDParser.SerializeJsonString(extraData) } | 129 | { "ExtraData", OSDParser.SerializeJsonString(extraData) } |
130 | }; | 130 | }; |
131 | 131 | ||
132 | OSDMap response = WebUtil.PostToService(m_ServerURI, requestArgs); | 132 | OSDMap response = SimianGrid.PostToService(m_ServerURI, requestArgs); |
133 | if (response["Success"].AsBoolean()) | 133 | if (response["Success"].AsBoolean()) |
134 | return String.Empty; | 134 | return String.Empty; |
135 | else | 135 | else |
@@ -145,7 +145,7 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
145 | { "Enabled", "0" } | 145 | { "Enabled", "0" } |
146 | }; | 146 | }; |
147 | 147 | ||
148 | OSDMap response = WebUtil.PostToService(m_ServerURI, requestArgs); | 148 | OSDMap response = SimianGrid.PostToService(m_ServerURI, requestArgs); |
149 | bool success = response["Success"].AsBoolean(); | 149 | bool success = response["Success"].AsBoolean(); |
150 | 150 | ||
151 | if (!success) | 151 | if (!success) |
@@ -192,7 +192,7 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
192 | 192 | ||
193 | // m_log.DebugFormat("[SIMIAN GRID CONNECTOR] request region with uuid {0}",regionID.ToString()); | 193 | // m_log.DebugFormat("[SIMIAN GRID CONNECTOR] request region with uuid {0}",regionID.ToString()); |
194 | 194 | ||
195 | OSDMap response = WebUtil.PostToService(m_ServerURI, requestArgs); | 195 | OSDMap response = SimianGrid.PostToService(m_ServerURI, requestArgs); |
196 | if (response["Success"].AsBoolean()) | 196 | if (response["Success"].AsBoolean()) |
197 | { | 197 | { |
198 | // m_log.DebugFormat("[SIMIAN GRID CONNECTOR] uuid request successful {0}",response["Name"].AsString()); | 198 | // m_log.DebugFormat("[SIMIAN GRID CONNECTOR] uuid request successful {0}",response["Name"].AsString()); |
@@ -220,7 +220,7 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
220 | 220 | ||
221 | // m_log.DebugFormat("[SIMIAN GRID CONNECTOR] request grid at {0}",position.ToString()); | 221 | // m_log.DebugFormat("[SIMIAN GRID CONNECTOR] request grid at {0}",position.ToString()); |
222 | 222 | ||
223 | OSDMap response = WebUtil.PostToService(m_ServerURI, requestArgs); | 223 | OSDMap response = SimianGrid.PostToService(m_ServerURI, requestArgs); |
224 | if (response["Success"].AsBoolean()) | 224 | if (response["Success"].AsBoolean()) |
225 | { | 225 | { |
226 | // m_log.DebugFormat("[SIMIAN GRID CONNECTOR] position request successful {0}",response["Name"].AsString()); | 226 | // m_log.DebugFormat("[SIMIAN GRID CONNECTOR] position request successful {0}",response["Name"].AsString()); |
@@ -261,7 +261,7 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
261 | 261 | ||
262 | // m_log.DebugFormat("[SIMIAN GRID CONNECTOR] request regions with name {0}",name); | 262 | // m_log.DebugFormat("[SIMIAN GRID CONNECTOR] request regions with name {0}",name); |
263 | 263 | ||
264 | OSDMap response = WebUtil.PostToService(m_ServerURI, requestArgs); | 264 | OSDMap response = SimianGrid.PostToService(m_ServerURI, requestArgs); |
265 | if (response["Success"].AsBoolean()) | 265 | if (response["Success"].AsBoolean()) |
266 | { | 266 | { |
267 | // m_log.DebugFormat("[SIMIAN GRID CONNECTOR] found regions with name {0}",name); | 267 | // m_log.DebugFormat("[SIMIAN GRID CONNECTOR] found regions with name {0}",name); |
@@ -299,7 +299,7 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
299 | //m_log.DebugFormat("[SIMIAN GRID CONNECTOR] request regions by range {0} to {1}",minPosition.ToString(),maxPosition.ToString()); | 299 | //m_log.DebugFormat("[SIMIAN GRID CONNECTOR] request regions by range {0} to {1}",minPosition.ToString(),maxPosition.ToString()); |
300 | 300 | ||
301 | 301 | ||
302 | OSDMap response = WebUtil.PostToService(m_ServerURI, requestArgs); | 302 | OSDMap response = SimianGrid.PostToService(m_ServerURI, requestArgs); |
303 | if (response["Success"].AsBoolean()) | 303 | if (response["Success"].AsBoolean()) |
304 | { | 304 | { |
305 | OSDArray array = response["Scenes"] as OSDArray; | 305 | OSDArray array = response["Scenes"] as OSDArray; |
@@ -350,7 +350,7 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
350 | { "Enabled", "1" } | 350 | { "Enabled", "1" } |
351 | }; | 351 | }; |
352 | 352 | ||
353 | OSDMap response = WebUtil.PostToService(m_ServerURI, requestArgs); | 353 | OSDMap response = SimianGrid.PostToService(m_ServerURI, requestArgs); |
354 | if (response["Success"].AsBoolean()) | 354 | if (response["Success"].AsBoolean()) |
355 | { | 355 | { |
356 | // m_log.DebugFormat("[SIMIAN GRID CONNECTOR] found regions with name {0}",name); | 356 | // m_log.DebugFormat("[SIMIAN GRID CONNECTOR] found regions with name {0}",name); |
@@ -380,7 +380,7 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
380 | 380 | ||
381 | m_log.DebugFormat("[SIMIAN GRID CONNECTOR] request region flags for {0}",regionID.ToString()); | 381 | m_log.DebugFormat("[SIMIAN GRID CONNECTOR] request region flags for {0}",regionID.ToString()); |
382 | 382 | ||
383 | OSDMap response = WebUtil.PostToService(m_ServerURI, requestArgs); | 383 | OSDMap response = SimianGrid.PostToService(m_ServerURI, requestArgs); |
384 | if (response["Success"].AsBoolean()) | 384 | if (response["Success"].AsBoolean()) |
385 | { | 385 | { |
386 | OSDMap extraData = response["ExtraData"] as OSDMap; | 386 | OSDMap extraData = response["ExtraData"] as OSDMap; |
@@ -410,7 +410,7 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
410 | if (onlyEnabled) | 410 | if (onlyEnabled) |
411 | requestArgs["Enabled"] = "1"; | 411 | requestArgs["Enabled"] = "1"; |
412 | 412 | ||
413 | OSDMap response = WebUtil.PostToService(m_ServerURI, requestArgs); | 413 | OSDMap response = SimianGrid.PostToService(m_ServerURI, requestArgs); |
414 | if (response["Success"].AsBoolean()) | 414 | if (response["Success"].AsBoolean()) |
415 | { | 415 | { |
416 | return ResponseToGridRegion(response); | 416 | return ResponseToGridRegion(response); |