OpenSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OpenSim.Region.CoreModules.World.Archiver.AssetsRequest Class Reference

Encapsulate the asynchronous requests for the assets required for an archive operation More...

Collaboration diagram for OpenSim.Region.CoreModules.World.Archiver.AssetsRequest:
Collaboration graph
[legend]

Public Member Functions

delegate void AssetsRequestCallback (ICollection< UUID > assetsFoundUuids, ICollection< UUID > assetsNotFoundUuids, bool timedOut)
 Method called when all the necessary assets for an archive request have been received. More...
 
void AssetRequestCallback (string id, object sender, AssetBase asset)
 Called back by the asset cache when it has the asset More...
 

Protected Member Functions

void OnRequestCallbackTimeout (object source, ElapsedEventArgs args)
 
void PreAssetRequestCallback (string fetchedAssetID, object assetType, AssetBase fetchedAsset)
 
void PerformAssetsRequestCallback (object o)
 Perform the callback on the original requester of the assets More...
 
AssetBase PostProcess (AssetBase asset)
 

Protected Attributes

const int TIMEOUT = 60 * 1000
 
const int MAX_UUID_DISPLAY_ON_TIMEOUT = 3
 
System.Timers.Timer m_requestCallbackTimer
 
IDictionary< UUID, sbyte > m_uuids
 
AssetsRequestCallback m_assetsRequestCallback
 
List< UUID > m_foundAssetUuids = new List<UUID>()
 
List< UUID > m_notFoundAssetUuids = new List<UUID>()
 
IAssetService m_assetService
 
IUserAccountService m_userAccountService
 
UUID m_scopeID
 
AssetsArchiver m_assetsArchiver
 
Dictionary< string, object > m_options
 

Detailed Description

Encapsulate the asynchronous requests for the assets required for an archive operation

Definition at line 46 of file AssetsRequest.cs.

Member Function Documentation

void OpenSim.Region.CoreModules.World.Archiver.AssetsRequest.AssetRequestCallback ( string  id,
object  sender,
AssetBase  asset 
)
inline

Called back by the asset cache when it has the asset

Parameters
assetID
asset

Definition at line 251 of file AssetsRequest.cs.

delegate void OpenSim.Region.CoreModules.World.Archiver.AssetsRequest.AssetsRequestCallback ( ICollection< UUID >  assetsFoundUuids,
ICollection< UUID >  assetsNotFoundUuids,
bool  timedOut 
)

Method called when all the necessary assets for an archive request have been received.

void OpenSim.Region.CoreModules.World.Archiver.AssetsRequest.OnRequestCallbackTimeout ( object  source,
ElapsedEventArgs  args 
)
inlineprotected

Definition at line 168 of file AssetsRequest.cs.

void OpenSim.Region.CoreModules.World.Archiver.AssetsRequest.PerformAssetsRequestCallback ( object  o)
inlineprotected

Perform the callback on the original requester of the assets

Definition at line 312 of file AssetsRequest.cs.

AssetBase OpenSim.Region.CoreModules.World.Archiver.AssetsRequest.PostProcess ( AssetBase  asset)
inlineprotected

Definition at line 329 of file AssetsRequest.cs.

void OpenSim.Region.CoreModules.World.Archiver.AssetsRequest.PreAssetRequestCallback ( string  fetchedAssetID,
object  assetType,
AssetBase  fetchedAsset 
)
inlineprotected

Definition at line 234 of file AssetsRequest.cs.

Member Data Documentation

AssetsArchiver OpenSim.Region.CoreModules.World.Archiver.AssetsRequest.m_assetsArchiver
protected

Definition at line 114 of file AssetsRequest.cs.

IAssetService OpenSim.Region.CoreModules.World.Archiver.AssetsRequest.m_assetService
protected

Asset service used to request the assets

Definition at line 110 of file AssetsRequest.cs.

AssetsRequestCallback OpenSim.Region.CoreModules.World.Archiver.AssetsRequest.m_assetsRequestCallback
protected

Callback used when all the assets requested have been received.

Definition at line 90 of file AssetsRequest.cs.

List<UUID> OpenSim.Region.CoreModules.World.Archiver.AssetsRequest.m_foundAssetUuids = new List<UUID>()
protected

List of assets that were found. This will be passed back to the requester.

Definition at line 95 of file AssetsRequest.cs.

List<UUID> OpenSim.Region.CoreModules.World.Archiver.AssetsRequest.m_notFoundAssetUuids = new List<UUID>()
protected

Maintain a list of assets that could not be found. This will be passed back to the requester.

Definition at line 100 of file AssetsRequest.cs.

Dictionary<string, object> OpenSim.Region.CoreModules.World.Archiver.AssetsRequest.m_options
protected

Definition at line 116 of file AssetsRequest.cs.

System.Timers.Timer OpenSim.Region.CoreModules.World.Archiver.AssetsRequest.m_requestCallbackTimer
protected

Definition at line 75 of file AssetsRequest.cs.

UUID OpenSim.Region.CoreModules.World.Archiver.AssetsRequest.m_scopeID
protected

Definition at line 112 of file AssetsRequest.cs.

IUserAccountService OpenSim.Region.CoreModules.World.Archiver.AssetsRequest.m_userAccountService
protected

Definition at line 111 of file AssetsRequest.cs.

IDictionary<UUID, sbyte> OpenSim.Region.CoreModules.World.Archiver.AssetsRequest.m_uuids
protected

uuids to request

Definition at line 85 of file AssetsRequest.cs.

const int OpenSim.Region.CoreModules.World.Archiver.AssetsRequest.MAX_UUID_DISPLAY_ON_TIMEOUT = 3
protected

If a timeout does occur, limit the amount of UUID information put to the console.

Definition at line 73 of file AssetsRequest.cs.

const int OpenSim.Region.CoreModules.World.Archiver.AssetsRequest.TIMEOUT = 60 * 1000
protected

Timeout threshold if we still need assets or missing asset notifications but have stopped receiving them from the asset service

Definition at line 68 of file AssetsRequest.cs.


The documentation for this class was generated from the following file: