public interface DBMirrorWorker
Modifier and Type | Method and Description |
---|---|
void |
addTableEntry(MirroringTask task)
Add the specified entry to the table.
|
void |
deleteTableEntry(MirroringTask task)
Remove the specified entry from the according table.
|
void |
prepareMirroring()
Prepare the start of a new mirroring process.
|
void |
prepareMirroringFinished(MirroringTask task)
Finish preparing the mirror.
|
void |
rebuild(DBRebuild rebuild)
Start a rebuild from the mirrored information.
|
void |
startMirroring(boolean isInitCall)
Start the mirroring process by creating all the needed connections and checking the needed resources.
|
void |
stopMirroring()
Release all resources to stop mirroring.
|
void |
updateTableEntry(MirroringTask task)
Update the specified entry in the according table.
|
void startMirroring(boolean isInitCall)
void prepareMirroring() throws MirroringException
MirroringException
- when an error occuredvoid prepareMirroringFinished(MirroringTask task) throws MirroringException
prepareMirroring()
.
task
- the entry specifying the values and the table to work onMirroringException
- when an error occuredvoid addTableEntry(MirroringTask task) throws MirroringException
task
- the entry specifying the values and the table to work onMirroringException
- when an error occuredvoid updateTableEntry(MirroringTask task) throws MirroringException
task
- the entry specifying the values and the table to work onMirroringException
- when an error occuredvoid deleteTableEntry(MirroringTask task) throws MirroringException
task
- the entry specifying the values and the table to work onMirroringException
- when an error occuredvoid stopMirroring()
void rebuild(DBRebuild rebuild) throws MirroringException
#startMirroring()
. Therefore you will need to connect to your backend system at the beginning of your
implementation. Rebuilding must happen in a specific order. You will need to provide the Cumulus Server
with the needed information in the specified order.
DBRebuild.beginTable(int, String, int)
to let the Cumulus server know about a new tableDBRebuild.addTableEntry(String, com.canto.cumulus.utils.JPack)
(for Named Tables) or
DBRebuild.addTableEntry(int, com.canto.cumulus.utils.JPack)
(for Cue Tables) for all
table entriesDBRebuild.endTable()
to let the Cumulus
server know that a table is completely processed.rebuild
- allows callback into the server to write the mirrored information back into the Cumulus catalog.MirroringException
www.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.