diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset')
3 files changed, 18 insertions, 18 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset/HGAssetBroker.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset/HGAssetBroker.cs index 31d1129..f5aa971 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset/HGAssetBroker.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset/HGAssetBroker.cs | |||
@@ -59,7 +59,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset | |||
59 | 59 | ||
60 | private AssetPermissions m_AssetPerms; | 60 | private AssetPermissions m_AssetPerms; |
61 | 61 | ||
62 | public Type ReplaceableInterface | 62 | public Type ReplaceableInterface |
63 | { | 63 | { |
64 | get { return null; } | 64 | get { return null; } |
65 | } | 65 | } |
@@ -159,7 +159,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset | |||
159 | { | 159 | { |
160 | if (!m_Enabled) | 160 | if (!m_Enabled) |
161 | return; | 161 | return; |
162 | 162 | ||
163 | m_aScene = scene; | 163 | m_aScene = scene; |
164 | 164 | ||
165 | m_aScene.RegisterModuleInterface<IAssetService>(this); | 165 | m_aScene.RegisterModuleInterface<IAssetService>(this); |
@@ -180,7 +180,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset | |||
180 | 180 | ||
181 | if (!(m_Cache is ISharedRegionModule)) | 181 | if (!(m_Cache is ISharedRegionModule)) |
182 | m_Cache = null; | 182 | m_Cache = null; |
183 | 183 | ||
184 | } | 184 | } |
185 | 185 | ||
186 | m_log.InfoFormat("[HG ASSET CONNECTOR]: Enabled hypergrid asset broker for region {0}", scene.RegionInfo.RegionName); | 186 | m_log.InfoFormat("[HG ASSET CONNECTOR]: Enabled hypergrid asset broker for region {0}", scene.RegionInfo.RegionName); |
@@ -206,7 +206,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset | |||
206 | { | 206 | { |
207 | //m_log.DebugFormat("[HG ASSET CONNECTOR]: Get {0}", id); | 207 | //m_log.DebugFormat("[HG ASSET CONNECTOR]: Get {0}", id); |
208 | AssetBase asset = null; | 208 | AssetBase asset = null; |
209 | 209 | ||
210 | if (m_Cache != null) | 210 | if (m_Cache != null) |
211 | { | 211 | { |
212 | asset = m_Cache.Get(id); | 212 | asset = m_Cache.Get(id); |
@@ -247,7 +247,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset | |||
247 | public AssetMetadata GetMetadata(string id) | 247 | public AssetMetadata GetMetadata(string id) |
248 | { | 248 | { |
249 | AssetBase asset = null; | 249 | AssetBase asset = null; |
250 | 250 | ||
251 | if (m_Cache != null) | 251 | if (m_Cache != null) |
252 | { | 252 | { |
253 | if (m_Cache != null) | 253 | if (m_Cache != null) |
@@ -270,7 +270,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset | |||
270 | public byte[] GetData(string id) | 270 | public byte[] GetData(string id) |
271 | { | 271 | { |
272 | AssetBase asset = null; | 272 | AssetBase asset = null; |
273 | 273 | ||
274 | if (m_Cache != null) | 274 | if (m_Cache != null) |
275 | { | 275 | { |
276 | if (m_Cache != null) | 276 | if (m_Cache != null) |
@@ -290,7 +290,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset | |||
290 | public bool Get(string id, Object sender, AssetRetrieved handler) | 290 | public bool Get(string id, Object sender, AssetRetrieved handler) |
291 | { | 291 | { |
292 | AssetBase asset = null; | 292 | AssetBase asset = null; |
293 | 293 | ||
294 | if (m_Cache != null) | 294 | if (m_Cache != null) |
295 | asset = m_Cache.Get(id); | 295 | asset = m_Cache.Get(id); |
296 | 296 | ||
@@ -348,7 +348,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset | |||
348 | 348 | ||
349 | bool isHG = IsHG(asset.ID); | 349 | bool isHG = IsHG(asset.ID); |
350 | if ((m_Cache != null) && !isHG) | 350 | if ((m_Cache != null) && !isHG) |
351 | // Don't store it in the cache if the asset is to | 351 | // Don't store it in the cache if the asset is to |
352 | // be sent to the other grid, because this is already | 352 | // be sent to the other grid, because this is already |
353 | // a copy of the local asset. | 353 | // a copy of the local asset. |
354 | m_Cache.Cache(asset); | 354 | m_Cache.Cache(asset); |
@@ -366,7 +366,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset | |||
366 | 366 | ||
367 | if (String.IsNullOrEmpty(id)) | 367 | if (String.IsNullOrEmpty(id)) |
368 | return string.Empty; | 368 | return string.Empty; |
369 | 369 | ||
370 | if(asset.ID != id) | 370 | if(asset.ID != id) |
371 | { | 371 | { |
372 | asset.ID = id; | 372 | asset.ID = id; |
@@ -380,7 +380,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset | |||
380 | public bool UpdateContent(string id, byte[] data) | 380 | public bool UpdateContent(string id, byte[] data) |
381 | { | 381 | { |
382 | AssetBase asset = null; | 382 | AssetBase asset = null; |
383 | 383 | ||
384 | if (m_Cache != null) | 384 | if (m_Cache != null) |
385 | asset = m_Cache.Get(id); | 385 | asset = m_Cache.Get(id); |
386 | 386 | ||
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset/LocalAssetServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset/LocalAssetServiceConnector.cs index d5d6667..7190aa0 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset/LocalAssetServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset/LocalAssetServiceConnector.cs | |||
@@ -50,7 +50,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset | |||
50 | 50 | ||
51 | private bool m_Enabled = false; | 51 | private bool m_Enabled = false; |
52 | 52 | ||
53 | public Type ReplaceableInterface | 53 | public Type ReplaceableInterface |
54 | { | 54 | { |
55 | get { return null; } | 55 | get { return null; } |
56 | } | 56 | } |
@@ -155,7 +155,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset | |||
155 | public AssetBase Get(string id) | 155 | public AssetBase Get(string id) |
156 | { | 156 | { |
157 | // m_log.DebugFormat("[LOCAL ASSET SERVICES CONNECTOR]: Synchronously requesting asset {0}", id); | 157 | // m_log.DebugFormat("[LOCAL ASSET SERVICES CONNECTOR]: Synchronously requesting asset {0}", id); |
158 | 158 | ||
159 | AssetBase asset = null; | 159 | AssetBase asset = null; |
160 | if (m_Cache != null) | 160 | if (m_Cache != null) |
161 | asset = m_Cache.Get(id); | 161 | asset = m_Cache.Get(id); |
@@ -169,7 +169,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset | |||
169 | // if (null == asset) | 169 | // if (null == asset) |
170 | // m_log.WarnFormat("[LOCAL ASSET SERVICES CONNECTOR]: Could not synchronously find asset with id {0}", id); | 170 | // m_log.WarnFormat("[LOCAL ASSET SERVICES CONNECTOR]: Could not synchronously find asset with id {0}", id); |
171 | } | 171 | } |
172 | 172 | ||
173 | return asset; | 173 | return asset; |
174 | } | 174 | } |
175 | 175 | ||
@@ -193,7 +193,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset | |||
193 | return asset.Metadata; | 193 | return asset.Metadata; |
194 | 194 | ||
195 | asset = m_AssetService.Get(id); | 195 | asset = m_AssetService.Get(id); |
196 | if (asset != null) | 196 | if (asset != null) |
197 | { | 197 | { |
198 | if (m_Cache != null) | 198 | if (m_Cache != null) |
199 | m_Cache.Cache(asset); | 199 | m_Cache.Cache(asset); |
@@ -229,7 +229,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset | |||
229 | public bool Get(string id, Object sender, AssetRetrieved handler) | 229 | public bool Get(string id, Object sender, AssetRetrieved handler) |
230 | { | 230 | { |
231 | // m_log.DebugFormat("[LOCAL ASSET SERVICES CONNECTOR]: Asynchronously requesting asset {0}", id); | 231 | // m_log.DebugFormat("[LOCAL ASSET SERVICES CONNECTOR]: Asynchronously requesting asset {0}", id); |
232 | 232 | ||
233 | if (m_Cache != null) | 233 | if (m_Cache != null) |
234 | { | 234 | { |
235 | AssetBase asset = m_Cache.Get(id); | 235 | AssetBase asset = m_Cache.Get(id); |
@@ -264,7 +264,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset | |||
264 | { | 264 | { |
265 | if (m_Cache != null) | 265 | if (m_Cache != null) |
266 | m_Cache.Cache(asset); | 266 | m_Cache.Cache(asset); |
267 | 267 | ||
268 | if (asset.Local) | 268 | if (asset.Local) |
269 | { | 269 | { |
270 | // m_log.DebugFormat( | 270 | // m_log.DebugFormat( |
@@ -278,7 +278,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset | |||
278 | // m_log.DebugFormat( | 278 | // m_log.DebugFormat( |
279 | // "[LOCAL ASSET SERVICE CONNECTOR]: Passing {0} {1} on to asset service for storage, status Temporary = {2}, Local = {3}", | 279 | // "[LOCAL ASSET SERVICE CONNECTOR]: Passing {0} {1} on to asset service for storage, status Temporary = {2}, Local = {3}", |
280 | // asset.Name, asset.ID, asset.Temporary, asset.Local); | 280 | // asset.Name, asset.ID, asset.Temporary, asset.Local); |
281 | 281 | ||
282 | return m_AssetService.Store(asset); | 282 | return m_AssetService.Store(asset); |
283 | } | 283 | } |
284 | } | 284 | } |
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset/RemoteAssetServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset/RemoteAssetServiceConnector.cs index ff04f9d..1225ab5 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset/RemoteAssetServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Asset/RemoteAssetServiceConnector.cs | |||
@@ -50,7 +50,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset | |||
50 | private bool m_Enabled = false; | 50 | private bool m_Enabled = false; |
51 | private IAssetCache m_Cache; | 51 | private IAssetCache m_Cache; |
52 | 52 | ||
53 | public Type ReplaceableInterface | 53 | public Type ReplaceableInterface |
54 | { | 54 | { |
55 | get { return null; } | 55 | get { return null; } |
56 | } | 56 | } |