C# 클래스 Volante.DatabaseListener

Listener of database events. Programmer should derive his own subclass and register it using IDatabase.Listener property.
파일 보기 프로젝트 열기: kjk/volante

공개 메소드들

메소드 설명
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

메소드 상세

DatabaseCorrupted() 공개 메소드

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

DeallocateObject() 공개 메소드

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
리턴 void

GcCompleted() 공개 메소드

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

GcStarted() 공개 메소드

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
리턴 void

RecoveryCompleted() 공개 메소드

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

ReplicationError() 공개 메소드

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)
리턴 bool