|
Xindice API version 1.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.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. Todd Byrne
| 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 - KeyDBException -
public void putDocument(Collection col,
Key key,
org.w3c.dom.Document document,
boolean create)
throws DBException
DBObserverputDocument in class DBObservercol - Collectionkey - Keydocument - Documentcreate - booleanDBException -
public void createCollection(Collection col)
throws DBException
DBObservercreateCollection in class DBObservercol - CollectionDBException -
public void loadDocument(Collection col,
Record record,
org.w3c.dom.Document document)
throws DBException
DBObserverloadDocument in class DBObservercol - Collectionrecord - Recorddocument - DocumentDBException -
public void dropCollection(Collection col)
throws DBException
DBObserverdropCollection in class DBObservercol - CollectionDBException -
public void flushDatabaseConfig(Database db,
Configuration cfg)
DBObserverflushDatabaseConfig in class DBObserverdb - Databasecfg - Configuration
public void setCollectionConfig(Collection col,
Configuration cfg)
DBObserversetCollectionConfig in class DBObservercol - Collectioncfg - Configuration
public void setDatabaseConfig(Database db,
Map collections,
Configuration cfg)
DBObserversetDatabaseConfig in class DBObserverdb - Databasecollections - Mapcfg - Configuration
|
Xindice API version 1.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||