Property | Type | Description | |
---|---|---|---|
_system | object |
Method | Description | |
---|---|---|
AssertNotPaused ( ) : void | ||
ExecuteCommand ( ICommand command ) : object |
Executes a serializable command object. If the command throws an exception it WILL NOT be saved to the output log therefore any exception throwing command MUST NOT cause any change to the system state to occur.
|
|
ExecuteQuery ( Bamboo query ) : object |
Executes a query object against the prevalent system.
|
|
HandsOffOutputLog ( ) : void |
Closes the output log file so that it can be read/copied/deleted. Useful for testing.
|
|
Pause ( ) : void |
Pauses the engine. When paused the engine will not accept any commands (ExecuteCommand will throw PausedEngineException instead). The engine never stops accepting queries. The engine will accept commands again after Resume.
|
|
Resume ( ) : void |
Resumes the normal operations of the engine.
|
|
TakeSnapshot ( ) : void |
Writes a snapshot of the current state of the system to disk to speed up the next start up.
|
Method | Description | |
---|---|---|
OnExceptionDuringRecovery ( ExceptionDuringRecoveryHandler handler, ICommand command, |
Called whenever a exception is thrown by a command during recovery.
|
Method | Description | |
---|---|---|
AcquireReaderLock ( ) : void | ||
AcquireWriterLock ( ) : void | ||
AfterQuery ( ) : void | ||
ApplyCommandDecorators ( ICommand command ) : ICommand | ||
BeforeQuery ( ) : void | ||
CheckPrevalenceBase ( string prevalenceBase ) : |
||
DoExecuteCommand ( ICommand command ) : object | ||
GetCommandDecorators ( System systemType ) : ICommandDecorator[] | ||
GetCurrent ( string methodName ) : |
||
PrevalenceEngine ( System systemType, string prevalenceBase, |
See PrevalenceActivator.CreateEngine(System.Type, string)
|
|
PrevalenceEngine ( System systemType, string prevalenceBase, |
See PrevalenceActivator.CreateEngine(System.Type, string)
|
|
RecoverCommands ( Bamboo.Prevalence.Implementation.CommandLogReader reader, ExceptionDuringRecoveryHandler handler ) : void | ||
RecoverSystem ( System systemType, Bamboo.Prevalence.Implementation.CommandLogReader reader, ExceptionDuringRecoveryHandler handler ) : void | ||
ReleaseReaderLock ( ) : void | ||
ReleaseWriterLock ( ) : void | ||
ShareCurrentObject ( ) : void | ||
UnshareCurrentObject ( ) : void |
public ExecuteCommand ( ICommand command ) : object | ||
command | ICommand | serializable command object that will be executed |
return | object |
public ExecuteQuery ( Bamboo query ) : object | ||
query | Bamboo | the query object |
return | object |
protected OnExceptionDuringRecovery ( ExceptionDuringRecoveryHandler handler, ICommand command, |
||
handler | ExceptionDuringRecoveryHandler | a delegate that should be notified of the exception |
command | ICommand | commands that has thrown the exception |
exception | the exception | |
return | void |