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

This module loads and saves OpenSimulator region archives. More...

Inheritance diagram for OpenSim::Region::CoreModules::World::Archiver::ArchiverModule:

OpenSim::Region::Framework::Interfaces::INonSharedRegionModule OpenSim::Region::Framework::Interfaces::IRegionArchiverModule OpenSim::Region::Framework::Interfaces::IRegionModuleBase

List of all members.

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.
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.
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.
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.
void Close ()
 This is the inverse to Initialise. After a Close(), this instance won't be usable anymore.
void HandleLoadOarConsoleCommand (string module, string[] cmdparams)
 Load a whole region from an opensimulator archive.
void HandleSaveOarConsoleCommand (string module, string[] cmdparams)
 Save a region to a file, including all the assets needed to restore it.
void ArchiveRegion (string savePath, Dictionary< string, object > options)
 Archive the region to the given path.
void ArchiveRegion (string savePath, Guid requestId, Dictionary< string, object > options)
 Archive the region to the given path.
void ArchiveRegion (Stream saveStream)
void ArchiveRegion (Stream saveStream, Guid requestId)
 Archive the region to a stream.
void ArchiveRegion (Stream saveStream, Guid requestId, Dictionary< string, object > options)
 Archive the region to a stream.
void DearchiveRegion (string loadPath)
 Dearchive the given region archive. This replaces the existing scene.
void DearchiveRegion (string loadPath, bool merge, bool skipAssets, Guid requestId)
 Dearchive the given region archive. This replaces the existing scene.
void DearchiveRegion (Stream loadStream)
 Dearchive a region from a stream. This replaces the existing scene.
void DearchiveRegion (Stream loadStream, bool merge, bool skipAssets, Guid requestId)
 Dearchive a region from a stream. This replaces the existing scene.

Protected Attributes

const string DEFAULT_OAR_BACKUP_FILENAME = "region.oar"

Properties

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.


Detailed Description

This module loads and saves OpenSimulator region archives.


Member Function Documentation

void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::Initialise ( IConfigSource  source  )  [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.

Parameters:
source A IConfigSource

Implements OpenSim::Region::Framework::Interfaces::IRegionModuleBase.

void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::AddRegion ( Scene  scene  )  [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.

Parameters:
scene A Scene

Implements OpenSim::Region::Framework::Interfaces::IRegionModuleBase.

void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::RegionLoaded ( Scene  scene  )  [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.

Parameters:
scene A Scene

Implements OpenSim::Region::Framework::Interfaces::IRegionModuleBase.

void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::RemoveRegion ( Scene  scene  )  [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.

Parameters:
scene A Scene

Implements OpenSim::Region::Framework::Interfaces::IRegionModuleBase.

void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::Close (  )  [inline]

This is the inverse to Initialise. After a Close(), this instance won't be usable anymore.

Implements OpenSim::Region::Framework::Interfaces::IRegionModuleBase.

void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::HandleLoadOarConsoleCommand ( string  module,
string[]  cmdparams 
) [inline]

Load a whole region from an opensimulator archive.

Parameters:
cmdparams 

Implements OpenSim::Region::Framework::Interfaces::IRegionArchiverModule.

void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::HandleSaveOarConsoleCommand ( string  module,
string[]  cmdparams 
) [inline]

Save a region to a file, including all the assets needed to restore it.

Parameters:
cmdparams 

Implements OpenSim::Region::Framework::Interfaces::IRegionArchiverModule.

void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::ArchiveRegion ( string  savePath,
Dictionary< string, object >  options 
) [inline]

Archive the region to the given path.

This method occurs asynchronously. If you want notification of when it has completed then subscribe to the EventManager.OnOarFileSaved event.

Parameters:
savePath 

Implements OpenSim::Region::Framework::Interfaces::IRegionArchiverModule.

void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::ArchiveRegion ( string  savePath,
Guid  requestId,
Dictionary< string, object >  options 
) [inline]

Archive the region to the given path.

This method occurs asynchronously. If you want notification of when it has completed then subscribe to the EventManager.OnOarFileSaved event.

Parameters:
savePath 
requestId If supplied, this request Id is later returned in the saved event
options Options for the save

Implements OpenSim::Region::Framework::Interfaces::IRegionArchiverModule.

void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::ArchiveRegion ( Stream  saveStream  )  [inline]

void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::ArchiveRegion ( Stream  saveStream,
Guid  requestId 
) [inline]

Archive the region to a stream.

This method occurs asynchronously. If you want notification of when it has completed then subscribe to the EventManager.OnOarFileSaved event.

Parameters:
saveStream 
requestId If supplied, this request Id is later returned in the saved event

Implements OpenSim::Region::Framework::Interfaces::IRegionArchiverModule.

void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::ArchiveRegion ( Stream  saveStream,
Guid  requestId,
Dictionary< string, object >  options 
) [inline]

Archive the region to a stream.

This method occurs asynchronously. If you want notification of when it has completed then subscribe to the EventManager.OnOarFileSaved event.

Parameters:
saveStream 
requestId If supplied, this request Id is later returned in the saved event
options Options for the save

Implements OpenSim::Region::Framework::Interfaces::IRegionArchiverModule.

void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::DearchiveRegion ( string  loadPath  )  [inline]

Dearchive the given region archive. This replaces the existing scene.

If you want notification of when it has completed then subscribe to the EventManager.OnOarFileLoaded event.

Parameters:
loadPath 

Implements OpenSim::Region::Framework::Interfaces::IRegionArchiverModule.

void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::DearchiveRegion ( string  loadPath,
bool  merge,
bool  skipAssets,
Guid  requestId 
) [inline]

Dearchive the given region archive. This replaces the existing scene.

If you want notification of when it has completed then subscribe to the EventManager.OnOarFileLoaded event.

Parameters:
loadPath 
merge If true, the loaded region merges with the existing one rather than replacing it. Any terrain or region settings in the archive will be ignored.
skipAssets If true, the archive is loaded without loading any assets contained within it. This is useful if the assets are already known to be present in the grid's asset service.
requestId If supplied, this request Id is later returned in the saved event

Implements OpenSim::Region::Framework::Interfaces::IRegionArchiverModule.

void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::DearchiveRegion ( Stream  loadStream  )  [inline]

Dearchive a region from a stream. This replaces the existing scene.

If you want notification of when it has completed then subscribe to the EventManager.OnOarFileLoaded event.

Parameters:
loadStream 

Implements OpenSim::Region::Framework::Interfaces::IRegionArchiverModule.

void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::DearchiveRegion ( Stream  loadStream,
bool  merge,
bool  skipAssets,
Guid  requestId 
) [inline]

Dearchive a region from a stream. This replaces the existing scene.

If you want notification of when it has completed then subscribe to the EventManager.OnOarFileLoaded event.

Parameters:
loadStream 
merge If true, the loaded region merges with the existing one rather than replacing it. Any terrain or region settings in the archive will be ignored.
skipAssets If true, the archive is loaded without loading any assets contained within it. This is useful if the assets are already known to be present in the grid's asset service. </param
Parameters:
requestId If supplied, this request Id is later returned in the saved event

Implements OpenSim::Region::Framework::Interfaces::IRegionArchiverModule.


Member Data Documentation

The file used to load and save an opensimulator archive if no filename has been specified


Property Documentation

string OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::Name [get]

Type OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::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.

Implements OpenSim::Region::Framework::Interfaces::IRegionModuleBase.


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