|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.garret.perst.StorageListener
Listener of database events. Programmer should derive his own subclass and register it using Storage.setListener method.
| Constructor Summary | |
StorageListener()
|
|
| Method Summary | |
void |
databaseCorrupted()
This metod is called during database open when database was not close normally and has to be recovered |
void |
deallocateObject(java.lang.Class cls,
int oid)
This method is called when unreferenced object is deallocated from database. |
void |
gcCompleted(int nDeallocatedObjects)
This method is called when garbage collection is completed |
void |
gcStarted()
This method is called when garbage collection is started (ether explicitly by invocation of Storage.gc() method, either implicitly after allocation of some amount of memory)). |
void |
JSQLRuntimeError(JSQLRuntimeException x)
This method is called when runtime error happen during execution of JSQL query |
void |
recoveryCompleted()
This method is called after completion of recovery |
boolean |
replicationError(java.lang.String host)
Handle replication error |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StorageListener()
| Method Detail |
public void databaseCorrupted()
public void deallocateObject(java.lang.Class cls,
int oid)
Storage.getObjectByOid() method.
cls - class of deallocated objectoid - object identifier of deallocated objectpublic void gcCompleted(int nDeallocatedObjects)
nDeallocatedObjects - number of deallocated objectspublic void gcStarted()
public void JSQLRuntimeError(JSQLRuntimeException x)
public void recoveryCompleted()
public boolean replicationError(java.lang.String host)
host - address of host replication to which is failed (null if error jappens at slave node)
true if host should be reconnected and attempt to send data to it should be
repeated, false if no more attmpts to communicate with this host should be performed
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||