OpenSim::Region::CoreModules::World::Archiver::AssetsRequest Class Reference

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

List of all members.

Public Member Functions

void AssetRequestCallback (string id, object sender, AssetBase asset)
 Called back by the asset cache when it has the asset.

Protected Member Functions

internal AssetsRequest (AssetsArchiver assetsArchiver, IDictionary< UUID, AssetType > uuids, IAssetService assetService, IUserAccountService userService, UUID scope, Dictionary< string, object > options, AssetsRequestCallback assetsRequestCallback)
internal void Execute ()
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.
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, AssetType > 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.


Constructor & Destructor Documentation

internal OpenSim::Region::CoreModules::World::Archiver::AssetsRequest::AssetsRequest ( AssetsArchiver  assetsArchiver,
IDictionary< UUID, AssetType >  uuids,
IAssetService  assetService,
IUserAccountService  userService,
UUID  scope,
Dictionary< string, object >  options,
AssetsRequestCallback  assetsRequestCallback 
) [inline, protected]


Member Function Documentation

internal void OpenSim::Region::CoreModules::World::Archiver::AssetsRequest::Execute (  )  [inline, protected]

void OpenSim::Region::CoreModules::World::Archiver::AssetsRequest::OnRequestCallbackTimeout ( object  source,
ElapsedEventArgs  args 
) [inline, protected]

void OpenSim::Region::CoreModules::World::Archiver::AssetsRequest::PreAssetRequestCallback ( string  fetchedAssetID,
object  assetType,
AssetBase  fetchedAsset 
) [inline, protected]

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 

void OpenSim::Region::CoreModules::World::Archiver::AssetsRequest::PerformAssetsRequestCallback ( object  o  )  [inline, protected]

Perform the callback on the original requester of the assets.

AssetBase OpenSim::Region::CoreModules::World::Archiver::AssetsRequest::PostProcess ( AssetBase  asset  )  [inline, protected]


Member Data Documentation

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

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

uuids to request

Callback used when all the assets requested have been received.

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

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

Asset service used to request the assets


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

Generated on Sun Feb 12 01:00:46 2012 for OpenSim by  doxygen 1.5.6