|
Xindice API version 1.2m1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xindice.core.DBObserver
org.apache.xindice.core.DatabaseChangeObserver
DatabaseChangeObserver is going to handle changes to collections by flushing the apporate collection Filer. This current version we are only going to worry about document changes and their Filer storage are kept updated.
| Constructor Summary | |
DatabaseChangeObserver()
|
|
| Method Summary | |
void |
createCollection(Collection col)
Called after Collection.create() |
void |
dropCollection(Collection col)
Called before Collection.drop() |
void |
dropDocument(Collection col,
Key key)
Queues the collection to be flushed by the FlushTask synchronized by the hashtable |
void |
flushDatabaseConfig(Database db,
Configuration cfg)
Called after Database.flushConfig() |
void |
loadDocument(Collection col,
Record record,
org.w3c.dom.Document document)
Called after Collection.getDocument() |
void |
putDocument(Collection col,
Key key,
org.w3c.dom.Document document,
boolean create)
Called after Collection.putDocument() |
void |
setCollectionConfig(Collection col,
Configuration cfg)
Called after Collection.setConfig() |
void |
setDatabaseConfig(Database db,
Map collections,
Configuration cfg)
Called after Database.setConfig() |
| Methods inherited from class org.apache.xindice.core.DBObserver |
getInstance, setInstance |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DatabaseChangeObserver()
| Method Detail |
public void dropDocument(Collection col,
Key key)
throws DBException
dropDocument in class DBObservercol - Collectionkey - Key
DBException
public void putDocument(Collection col,
Key key,
org.w3c.dom.Document document,
boolean create)
throws DBException
DBObserver
putDocument in class DBObservercol - Collectionkey - Keydocument - Documentcreate - boolean
DBException
public void createCollection(Collection col)
throws DBException
DBObserver
createCollection in class DBObservercol - Collection
DBException
public void loadDocument(Collection col,
Record record,
org.w3c.dom.Document document)
throws DBException
DBObserver
loadDocument in class DBObservercol - Collectionrecord - Recorddocument - Document
DBException
public void dropCollection(Collection col)
throws DBException
DBObserver
dropCollection in class DBObservercol - Collection
DBException
public void flushDatabaseConfig(Database db,
Configuration cfg)
DBObserver
flushDatabaseConfig in class DBObserverdb - Databasecfg - Configuration
public void setCollectionConfig(Collection col,
Configuration cfg)
DBObserver
setCollectionConfig in class DBObservercol - Collectioncfg - Configuration
public void setDatabaseConfig(Database db,
Map collections,
Configuration cfg)
DBObserver
setDatabaseConfig in class DBObserverdb - Databasecollections - Mapcfg - Configuration
|
Xindice API version 1.2m1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||