OpenSim
|
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...
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 | |
T | LoadPlugin< T > (string dllName) |
T | LoadPlugin< T > (string dllName, Object[] args) |
T | 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 |
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.
|
inline |
Definition at line 60 of file HGFSAssetService.cs.
|
inlineprotected |
Definition at line 165 of file HGFSAssetService.cs.
|
inlineprotected |
Definition at line 176 of file HGFSAssetService.cs.
|
inlinevirtual |
Delete an asset
id |
Reimplemented from OpenSim.Services.FSAssetService.FSAssetConnector.
Definition at line 157 of file HGFSAssetService.cs.
|
inlinevirtual |
Get an asset synchronously.
id |
Reimplemented from OpenSim.Services.FSAssetService.FSAssetConnector.
Definition at line 88 of file HGFSAssetService.cs.
|
inlinevirtual |
Get an asset's data, ignoring the metadata.
id |
Reimplemented from OpenSim.Services.FSAssetService.FSAssetConnector.
Definition at line 118 of file HGFSAssetService.cs.
|
inlinevirtual |
Get an asset's metadata
id |
Reimplemented from OpenSim.Services.FSAssetService.FSAssetConnector.
Definition at line 106 of file HGFSAssetService.cs.
|
inlinevirtual |
Creates a new asset
Returns a random ID if none is passed via the asset argument.
asset |
Reimplemented from OpenSim.Services.FSAssetService.FSAssetConnector.
Definition at line 141 of file HGFSAssetService.cs.