public class DBRebuild
extends java.lang.Object
DBMirrorWorker.rebuild(DBRebuild)
method.
The order in which the rebuild needs to happen is:
beginTable(int, String, int)
to let the Cumulus server know about a new tableaddTableEntry(String, com.canto.cumulus.utils.JPack)
(for Named Tables) or
addTableEntry(int, com.canto.cumulus.utils.JPack)
(for Cue Tables) for all
table entriesendTable()
to let the Cumulus server know that a table is completely processed.Modifier and Type | Method and Description |
---|---|
void |
addTableEntry(int recordID,
JPack pack)
Rebuild an entry of a Cue Table.
|
void |
addTableEntry(java.lang.String recordName,
JPack pack)
Rebuild an entry of a Named Table.
|
void |
beginTable(int tableType,
java.lang.String name,
int expectedEntries)
Needs to be called before any entry of a table can be sent to the Cumulus server.
|
void |
endTable()
Needs to be called after all entries of a table have been rebuild.
|
public void beginTable(int tableType, java.lang.String name, int expectedEntries)
tableType
- type of the table. Can be one of the following: MirroringTask.TABLE_TYPE_CUE_TABLE
,
MirroringTask.TABLE_TYPE_MASTER_TABLE
or MirroringTask.TABLE_TYPE_MISC_TABLE
.name
- name of the table. only relevant for Cue Tables. Can be null in case of a Named Table.expectedEntries
- only relevant for Cue Tables but should be set to the number of entries that will be added
to the table. Can be 0 in case of a Named Table.public void addTableEntry(java.lang.String recordName, JPack pack)
recordName
- primary key of the entry in the Named Table currently being processedpack
- value of the entry in the Named Tablepublic void addTableEntry(int recordID, JPack pack)
recordID
- primary key of the entrypack
- data of the entrypublic void endTable()
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.