C# Class Bamboo.Prevalence.PrevalenceActivator

Factory for PrevalenceEngines.
Datei anzeigen Open project: bamboo/Bamboo.Prevalence

Public Methods

Method Description
CreateEngine ( System systemType, string prevalenceBase ) : PrevalenceEngine

Creates a new prevalence engine for the prevalent system type specified by the systemType argument.

The prevalence log files will be read from/written to the prevalenceBase directory.
If the directory does not exist it will be created.
If there are any log files already in the directory they will be used to restore the state of the system.

CreateEngine ( System systemType, string prevalenceBase, BinaryFormatter formatter, PrevalenceEngine handler ) : PrevalenceEngine

Creates a new prevalence engine for the prevalent system type specified by the systemType argument.

CreateEngine ( System systemType, string prevalenceBase, bool autoVersionMigration ) : PrevalenceEngine

See CreateEngine(System.Type,System.String,System.Boolean,PrevalenceEngine.ExceptionDuringRecoveryHandler).

CreateEngine ( System systemType, string prevalenceBase, bool autoVersionMigration, PrevalenceEngine handler ) : PrevalenceEngine

Creates a new prevalence engine for the prevalent system type specified by the systemType argument with the option to automatically support the migration from older serialization layout versions.

CreateTransparentEngine ( System systemType, string prevalenceBase ) : PrevalenceEngine

Creates a new transparent prevalence engine for the prevalent system type specified by the systemType argument.

A transparent prevalence engine automatically intercepts the calls made to the prevalent system and creates command objects as needed.

CreateTransparentEngine ( System systemType, string prevalenceBase, BinaryFormatter formatter ) : PrevalenceEngine

CreateTransparentEngine(System.Type, string)

CreateTransparentEngine ( System systemType, string prevalenceBase, bool autoVersionMigration ) : PrevalenceEngine

CreateTransparentEngine(System.Type, string)

Private Methods

Method Description
CheckEngineParameters ( System systemType, string prevalenceBase ) : void
CreateAutoVersionMigrationFormatter ( System type ) : BinaryFormatter
CreateBinaryFormatter ( ) : BinaryFormatter
CreateRequestedEngine ( System systemType, string prevalenceBase, BinaryFormatter formatter, PrevalenceEngine handler ) : PrevalenceEngine

Method Details

CreateEngine() public static method

Creates a new prevalence engine for the prevalent system type specified by the systemType argument.
The prevalence log files will be read from/written to the prevalenceBase directory.
If the directory does not exist it will be created.
If there are any log files already in the directory they will be used to restore the state of the system.
public static CreateEngine ( System systemType, string prevalenceBase ) : PrevalenceEngine
systemType System prevalent system type, must be serializable
prevalenceBase string directory where to store log files
return PrevalenceEngine

CreateEngine() public static method

Creates a new prevalence engine for the prevalent system type specified by the systemType argument.
public static CreateEngine ( System systemType, string prevalenceBase, BinaryFormatter formatter, PrevalenceEngine handler ) : PrevalenceEngine
systemType System prevalent system type, must be serializable
prevalenceBase string directory where to store log files
formatter System.Runtime.Serialization.Formatters.Binary.BinaryFormatter serialization formatter that should be used for reading from/writing to the logs
handler PrevalenceEngine delegate to receive notifications of any exceptions thrown during recovery
return PrevalenceEngine

CreateEngine() public static method

See CreateEngine(System.Type,System.String,System.Boolean,PrevalenceEngine.ExceptionDuringRecoveryHandler).
public static CreateEngine ( System systemType, string prevalenceBase, bool autoVersionMigration ) : PrevalenceEngine
systemType System
prevalenceBase string
autoVersionMigration bool
return PrevalenceEngine

CreateEngine() public static method

Creates a new prevalence engine for the prevalent system type specified by the systemType argument with the option to automatically support the migration from older serialization layout versions.
public static CreateEngine ( System systemType, string prevalenceBase, bool autoVersionMigration, PrevalenceEngine handler ) : PrevalenceEngine
systemType System prevalent system type, must be serializable
prevalenceBase string directory where to store log files
autoVersionMigration bool include support for auto version migration
handler PrevalenceEngine delegate to receive notifications about any exceptions during recovery
return PrevalenceEngine

CreateTransparentEngine() public static method

Creates a new transparent prevalence engine for the prevalent system type specified by the systemType argument.
A transparent prevalence engine automatically intercepts the calls made to the prevalent system and creates command objects as needed.
public static CreateTransparentEngine ( System systemType, string prevalenceBase ) : PrevalenceEngine
systemType System prevalent system type, must be serializable and inherited from /// System.MarshalByRefObject
prevalenceBase string directory where to store log files
return PrevalenceEngine

CreateTransparentEngine() public static method

CreateTransparentEngine(System.Type, string)
public static CreateTransparentEngine ( System systemType, string prevalenceBase, BinaryFormatter formatter ) : PrevalenceEngine
systemType System
prevalenceBase string
formatter System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
return PrevalenceEngine

CreateTransparentEngine() public static method

CreateTransparentEngine(System.Type, string)
public static CreateTransparentEngine ( System systemType, string prevalenceBase, bool autoVersionMigration ) : PrevalenceEngine
systemType System
prevalenceBase string
autoVersionMigration bool
return PrevalenceEngine