|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JdbcActiveMirrorGpsDevice
An extension of the JdbcGpsDevice that
can also detect real time data changes made to the database and reflect them
to the index.
The device will use the
JdbcSnapshotEventListener to
handle database change events (which should be reflected to the index).
The device will use the provided
JdbcSnapshotPersister to persist
the snapshot information and load it.
| Method Summary | |
|---|---|
JdbcSnapshotEventListener |
getSnapshotEventListener()
Returns the jdbc snapshot event listener that will handle database change events. |
JdbcSnapshotPersister |
getSnapshotPersister()
Returns the snapshot persister that will persist and load the snapshot information. |
boolean |
isSaveSnapshotAfterMirror()
Should the snapshot be saved/persisted after each mirroring operation. |
void |
setSaveSnapshotAfterMirror(boolean saveSnapshotAfterMirror)
Sets if the snapshot be saved/persisted after each mirroring operation. |
void |
setSnapshotEventListener(JdbcSnapshotEventListener snapshotEventListener)
Sets the jdbc snapshot event listener that will handle database change events. |
void |
setSnapshotPersister(JdbcSnapshotPersister snapshotPersister)
Sets the snapshot persister that will persist and load the snapshot information. |
| Methods inherited from interface org.compass.gps.device.jdbc.JdbcGpsDevice |
|---|
getDataSource, getDialect, getFetchSize, setDataSource, setDialect, setFetchSize |
| Methods inherited from interface org.compass.gps.ActiveMirrorGpsDevice |
|---|
performMirroring |
| Methods inherited from interface org.compass.gps.MirrorDataChangesGpsDevice |
|---|
isMirrorDataChanges, setMirrorDataChanges |
| Method Detail |
|---|
JdbcSnapshotEventListener getSnapshotEventListener()
void setSnapshotEventListener(JdbcSnapshotEventListener snapshotEventListener)
snapshotEventListener - JdbcSnapshotPersister getSnapshotPersister()
void setSnapshotPersister(JdbcSnapshotPersister snapshotPersister)
snapshotPersister - boolean isSaveSnapshotAfterMirror()
Note that it is persisted when the gps device stops.
true if the snapshot should be persisted after each mirroring operation.void setSaveSnapshotAfterMirror(boolean saveSnapshotAfterMirror)
Note that it is persisted when the gps device stops.
saveSnapshotAfterMirror -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||