C# Class Volante.DatabaseListener

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

Méthodes publiques

Méthode 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 méthode

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

DeallocateObject() public méthode

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
Résultat void

GcCompleted() public méthode

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

GcStarted() public méthode

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
Résultat void

RecoveryCompleted() public méthode

Called after database recovery has completed
public RecoveryCompleted ( ) : void
Résultat void

ReplicationError() public méthode

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)
Résultat bool