OpenSim
|
Public Member Functions | |
void | Initialise (IConfigSource source) |
This is called to initialize the region module. For shared modules, this is called exactly once, after creating the single (shared) instance. For non-shared modules, this is called once on each instance, after the instace for the region has been created. More... | |
void | PostInitialise () |
This is called exactly once after all the shared region-modules have been instanciated and IRegionModuleBase.Initialised. More... | |
void | Close () |
This is the inverse to Initialise. After a Close(), this instance won't be usable anymore. More... | |
void | AddRegion (Scene scene) |
This is called whenever a Scene is added. For shared modules, this can happen several times. For non-shared modules, this happens exactly once, after Initialise has been called. More... | |
void | RemoveRegion (Scene scene) |
This is called whenever a Scene is removed. For shared modules, this can happen several times. For non-shared modules, this happens exactly once, if the scene this instance is associated with is removed. More... | |
void | RegionLoaded (Scene scene) |
This will be called once for every scene loaded. In a shared module this will be multiple times in one instance, while a nonshared module instance will only be called once. This method is called after AddRegion has been called in all modules for that scene, providing an opportunity to request another module's interface, or hook an event from another module. More... | |
AssetBase | Get (string id) |
Get an asset synchronously. More... | |
AssetBase | GetCached (string id) |
Synchronously fetches an asset from the local cache only. More... | |
AssetMetadata | GetMetadata (string id) |
Get an asset's metadata More... | |
byte[] | GetData (string id) |
Get an asset's data, ignoring the metadata. More... | |
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... | |
bool[] | AssetsExist (string[] ids) |
Check if assets exist in the database. More... | |
string | Store (AssetBase asset) |
Creates a new asset More... | |
bool | UpdateContent (string id, byte[] data) |
Update an asset's content More... | |
bool | Delete (string id) |
Delete an asset More... | |
Properties | |
Type | ReplaceableInterface [get] |
string | Name [get] |
Properties inherited from OpenSim.Region.Framework.Interfaces.IRegionModuleBase | |
string | Name [get] |
Type | ReplaceableInterface [get] |
If this returns non-null, it is the type of an interface that this module intends to register. This will cause the loader to defer loading of this module until all other modules have been loaded. If no other module has registered the interface by then, this module will be activated, else it will remain inactive, letting the other module take over. This should return non-null ONLY in modules that are intended to be easily replaceable, e.g. stub implementations that the developer expects to be replaced by third party provided modules. More... | |
Definition at line 43 of file LocalAssetServiceConnector.cs.
|
inline |
This is called whenever a Scene is added. For shared modules, this can happen several times. For non-shared modules, this happens exactly once, after Initialise has been called.
scene | A Scene |
Implements OpenSim.Region.Framework.Interfaces.IRegionModuleBase.
Definition at line 112 of file LocalAssetServiceConnector.cs.
|
inline |
Check if assets exist in the database.
ids | The assets' IDs |
Implements OpenSim.Services.Interfaces.IAssetService.
Definition at line 258 of file LocalAssetServiceConnector.cs.
|
inline |
This is the inverse to Initialise. After a Close(), this instance won't be usable anymore.
Implements OpenSim.Region.Framework.Interfaces.IRegionModuleBase.
Definition at line 108 of file LocalAssetServiceConnector.cs.
|
inline |
Delete an asset
id |
Implements OpenSim.Services.Interfaces.IAssetService.
Definition at line 301 of file LocalAssetServiceConnector.cs.
|
inline |
Get an asset synchronously.
id |
Implements OpenSim.Services.Interfaces.IAssetService.
Definition at line 155 of file LocalAssetServiceConnector.cs.
|
inline |
Get an asset synchronously or asynchronously (depending on whether it is locally cached) and fire a callback with the fetched asset
id | The asset id |
sender | Represents the requester. Passed back via the handler |
handler | The handler to call back once the asset has been retrieved. This will be called back with a null AssetBase if the asset could not be found for some reason (e.g. if it does not exist, if a remote asset service was not contactable, if it is not in the database, etc.). |
Implements OpenSim.Services.Interfaces.IAssetService.
Definition at line 229 of file LocalAssetServiceConnector.cs.
|
inline |
Synchronously fetches an asset from the local cache only.
id | Asset ID |
Implements OpenSim.Services.Interfaces.IAssetService.
Definition at line 176 of file LocalAssetServiceConnector.cs.
|
inline |
Get an asset's data, ignoring the metadata.
id |
Implements OpenSim.Services.Interfaces.IAssetService.
Definition at line 206 of file LocalAssetServiceConnector.cs.
|
inline |
Get an asset's metadata
id |
Implements OpenSim.Services.Interfaces.IAssetService.
Definition at line 186 of file LocalAssetServiceConnector.cs.
|
inline |
This is called to initialize the region module. For shared modules, this is called exactly once, after creating the single (shared) instance. For non-shared modules, this is called once on each instance, after the instace for the region has been created.
source | A IConfigSource |
Implements OpenSim.Region.Framework.Interfaces.IRegionModuleBase.
Definition at line 63 of file LocalAssetServiceConnector.cs.
|
inline |
This is called exactly once after all the shared region-modules have been instanciated and IRegionModuleBase.Initialised.
Implements OpenSim.Region.Framework.Interfaces.ISharedRegionModule.
Definition at line 104 of file LocalAssetServiceConnector.cs.
|
inline |
This will be called once for every scene loaded. In a shared module this will be multiple times in one instance, while a nonshared module instance will only be called once. This method is called after AddRegion has been called in all modules for that scene, providing an opportunity to request another module's interface, or hook an event from another module.
scene | A Scene |
Implements OpenSim.Region.Framework.Interfaces.IRegionModuleBase.
Definition at line 124 of file LocalAssetServiceConnector.cs.
|
inline |
This is called whenever a Scene is removed. For shared modules, this can happen several times. For non-shared modules, this happens exactly once, if the scene this instance is associated with is removed.
scene | A Scene |
Implements OpenSim.Region.Framework.Interfaces.IRegionModuleBase.
Definition at line 120 of file LocalAssetServiceConnector.cs.
|
inline |
Creates a new asset
Returns a random ID if none is passed via the asset argument.
asset |
Implements OpenSim.Services.Interfaces.IAssetService.
Definition at line 263 of file LocalAssetServiceConnector.cs.
|
inline |
Update an asset's content
Attachments and bare scripts need this!!
id | |
data |
Implements OpenSim.Services.Interfaces.IAssetService.
Definition at line 286 of file LocalAssetServiceConnector.cs.
|
get |
Definition at line 59 of file LocalAssetServiceConnector.cs.
|
get |
Definition at line 54 of file LocalAssetServiceConnector.cs.