C# Class Volante.DatabaseListener

Listener of database events. Programmer should derive his own subclass and register it using IDatabase.Listener property.
Mostrar archivo Open project: kjk/volante

Public Methods

Method Description
DatabaseCorrupted ( ) : void

Called if database was detected to be corrupted during openinig (when database was not closed properly and has to be recovered)

DeallocateObject ( Type cls, int oid ) : void

Called when unreferenced object is deallocated from database. It is possible to get instance of the object using IDatabase.GetObjectByOid() method.

GcCompleted ( int nDeallocatedObjects ) : void

Called when garbage collection is completed

GcStarted ( ) : void

Called when garbage collection is started, either explicitly (by calling IDatabase.Gc()) or implicitly (after allocating enough memory to trigger gc threshold)

RecoveryCompleted ( ) : void

Called after database recovery has completed

ReplicationError ( string host ) : bool

Handle replication error

Method Details

DatabaseCorrupted() public method

Called if database was detected to be corrupted during openinig (when database was not closed properly and has to be recovered)
public DatabaseCorrupted ( ) : void
return void

DeallocateObject() public method

Called when unreferenced object is deallocated from database. It is possible to get instance of the object using IDatabase.GetObjectByOid() method.
public DeallocateObject ( Type cls, int oid ) : void
cls System.Type class of deallocated object
oid int object identifier of deallocated object
return void

GcCompleted() public method

Called when garbage collection is completed
public GcCompleted ( int nDeallocatedObjects ) : void
nDeallocatedObjects int number of deallocated objects
return void

GcStarted() public method

Called when garbage collection is started, either explicitly (by calling IDatabase.Gc()) or implicitly (after allocating enough memory to trigger gc threshold)
public GcStarted ( ) : void
return void

RecoveryCompleted() public method

Called after database recovery has completed
public RecoveryCompleted ( ) : void
return void

ReplicationError() public method

Handle replication error
public ReplicationError ( string host ) : bool
host string address of host replication to which is failed (null if error jappens at slave node)
return bool