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.HGFSAssetService Class Reference

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

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

Public Member Functions

 HGFSAssetService (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.FSAssetService.FSAssetConnector
 FSAssetConnector (IConfigSource config)
 
 FSAssetConnector (IConfigSource config, string configName)
 
string HashToPath (string hash)
 
virtual bool[] AssetsExist (string[] ids)
 Check if assets exist in the database. More...
 
string HashToFile (string hash)
 
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...
 
byte[] GetFsData (string hash)
 
bool UpdateContent (string id, byte[] data)
 Update an asset's content More...
 
AssetBase GetCached (string id)
 Synchronously fetches an asset from the local cache only. More...
 
- 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.FSAssetService.FSAssetConnector
IAssetLoader m_AssetLoader = null
 
IFSAssetDataPlugin m_DataConnector = null
 
IAssetService m_FallbackService
 
Thread m_WriterThread
 
Thread m_StatsThread
 
string m_SpoolDirectory
 
object m_readLock = new object()
 
object m_statsLock = new object()
 
int m_readCount = 0
 
int m_readTicks = 0
 
int m_missingAssets = 0
 
int m_missingAssetsFS = 0
 
string m_FSBase
 
bool m_useOsgridFormat = false
 

Detailed Description

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

Definition at line 47 of file HGFSAssetService.cs.

Constructor & Destructor Documentation

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

Definition at line 60 of file HGFSAssetService.cs.

Member Function Documentation

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

Definition at line 165 of file HGFSAssetService.cs.

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

Definition at line 176 of file HGFSAssetService.cs.

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

Delete an asset

Parameters
id
Returns

Reimplemented from OpenSim.Services.FSAssetService.FSAssetConnector.

Definition at line 157 of file HGFSAssetService.cs.

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

Get an asset synchronously.

Parameters
id
Returns

Reimplemented from OpenSim.Services.FSAssetService.FSAssetConnector.

Definition at line 88 of file HGFSAssetService.cs.

override byte [] OpenSim.Services.HypergridService.HGFSAssetService.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.FSAssetService.FSAssetConnector.

Definition at line 118 of file HGFSAssetService.cs.

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

Get an asset's metadata

Parameters
id
Returns

Reimplemented from OpenSim.Services.FSAssetService.FSAssetConnector.

Definition at line 106 of file HGFSAssetService.cs.

override string OpenSim.Services.HypergridService.HGFSAssetService.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.FSAssetService.FSAssetConnector.

Definition at line 141 of file HGFSAssetService.cs.


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