OpenSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Protected Member Functions | List of all members
OpenSim.Services.HypergridService.HGAssetService Class Reference

Hypergrid asset service. It serves the IAssetService interface, but implements it in ways that are appropriate for inter-grid asset exchanges. More...

Inheritance diagram for OpenSim.Services.HypergridService.HGAssetService:
Inheritance graph
[legend]
Collaboration diagram for OpenSim.Services.HypergridService.HGAssetService:
Collaboration graph
[legend]

Public Member Functions

 HGAssetService (IConfigSource config, string configName)
 
override AssetBase Get (string id)
 Get an asset synchronously. More...
 
override AssetMetadata GetMetadata (string id)
 Get an asset's metadata More...
 
override byte[] GetData (string id)
 Get an asset's data, ignoring the metadata. More...
 
override string Store (AssetBase asset)
 Creates a new asset More...
 
override bool Delete (string id)
 Delete an asset More...
 
- Public Member Functions inherited from OpenSim.Services.AssetService.AssetService
 AssetService (IConfigSource config)
 
 AssetService (IConfigSource config, string configName)
 
virtual AssetBase GetCached (string id)
 Synchronously fetches an asset from the local cache only. More...
 
virtual bool Get (string id, Object sender, AssetRetrieved handler)
 Get an asset synchronously or asynchronously (depending on whether it is locally cached) and fire a callback with the fetched asset More...
 
virtual bool[] AssetsExist (string[] ids)
 Check if assets exist in the database. More...
 
bool UpdateContent (string id, byte[] data)
 Update an asset's content More...
 
- Public Member Functions inherited from OpenSim.Services.AssetService.AssetServiceBase
 AssetServiceBase (IConfigSource config)
 
 AssetServiceBase (IConfigSource config, string configName)
 
- Public Member Functions inherited from OpenSim.Services.Base.ServiceBase
LoadPlugin< T > (string dllName)
 
LoadPlugin< T > (string dllName, Object[] args)
 
LoadPlugin< T > (string dllName, string className, Object[] args)
 
 ServiceBase (IConfigSource config)
 

Protected Member Functions

void AdjustIdentifiers (AssetMetadata meta)
 
byte[] AdjustIdentifiers (byte[] data)
 

Additional Inherited Members

- Protected Attributes inherited from OpenSim.Services.AssetService.AssetServiceBase
IAssetDataPlugin m_Database = null
 
IAssetLoader m_AssetLoader = null
 
string m_ConfigName = "AssetService"
 
- Static Protected Attributes inherited from OpenSim.Services.AssetService.AssetService
static AssetService m_RootInstance
 

Detailed Description

Hypergrid asset service. It serves the IAssetService interface, but implements it in ways that are appropriate for inter-grid asset exchanges.

Definition at line 50 of file HGAssetService.cs.

Constructor & Destructor Documentation

OpenSim.Services.HypergridService.HGAssetService.HGAssetService ( IConfigSource  config,
string  configName 
)
inline

Definition at line 63 of file HGAssetService.cs.

Member Function Documentation

void OpenSim.Services.HypergridService.HGAssetService.AdjustIdentifiers ( AssetMetadata  meta)
inlineprotected

Definition at line 169 of file HGAssetService.cs.

byte [] OpenSim.Services.HypergridService.HGAssetService.AdjustIdentifiers ( byte[]  data)
inlineprotected

Definition at line 180 of file HGAssetService.cs.

override bool OpenSim.Services.HypergridService.HGAssetService.Delete ( string  id)
inlinevirtual

Delete an asset

Parameters
id
Returns

Reimplemented from OpenSim.Services.AssetService.AssetService.

Definition at line 161 of file HGAssetService.cs.

override AssetBase OpenSim.Services.HypergridService.HGAssetService.Get ( string  id)
inlinevirtual

Get an asset synchronously.

Parameters
id
Returns

Reimplemented from OpenSim.Services.AssetService.AssetService.

Definition at line 92 of file HGAssetService.cs.

override byte [] OpenSim.Services.HypergridService.HGAssetService.GetData ( string  id)
inlinevirtual

Get an asset's data, ignoring the metadata.

Parameters
id
Returns
null if there is no such asset

Reimplemented from OpenSim.Services.AssetService.AssetService.

Definition at line 122 of file HGAssetService.cs.

override AssetMetadata OpenSim.Services.HypergridService.HGAssetService.GetMetadata ( string  id)
inlinevirtual

Get an asset's metadata

Parameters
id
Returns

Reimplemented from OpenSim.Services.AssetService.AssetService.

Definition at line 110 of file HGAssetService.cs.

override string OpenSim.Services.HypergridService.HGAssetService.Store ( AssetBase  asset)
inlinevirtual

Creates a new asset

Returns a random ID if none is passed via the asset argument.

Parameters
asset
Returns
The Asset ID, or string.Empty if an error occurred

Reimplemented from OpenSim.Services.AssetService.AssetService.

Definition at line 145 of file HGAssetService.cs.


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