public class MCCRSync
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected class |
MCCRSync.SyncCount
Counter for synchronized objects
|
Constructor and Description |
---|
MCCRSync(MultichannellingDatasource source,
WritableMultichannellingDatasource target,
boolean test,
boolean allowEmpty,
boolean allowAlterTable,
boolean sourceTransaction,
boolean targetTransaction,
int batchSize,
CRSyncModifier modifier)
Initialize the sync with source and target datasource.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
doSync()
Do the sync
|
static void |
main(java.lang.String[] args)
Start the sync process with the given command line arguments
|
void |
setIgnoreOptimized(boolean ignoreOptimized)
Set the flag for ignoring the optimized flag of attributetypes
|
void |
setObsoletionCheckBatchSize(int batchSize)
Set the batchsize for the obsoletion check.
|
public MCCRSync(MultichannellingDatasource source, WritableMultichannellingDatasource target, boolean test, boolean allowEmpty, boolean allowAlterTable, boolean sourceTransaction, boolean targetTransaction, int batchSize, CRSyncModifier modifier) throws DatasourceException
source
- source datasourcetarget
- target datasourcetest
- test - only simulate the changesallowEmpty
- allow empty Source-RepositoryallowAlterTable
- allow structural changes to contentrepositorysourceTransaction
- use transactions in source databasetargetTransaction
- use transactions in target databasebatchSize
- batch size (maximum number of objects to be synced at once)modifier
- modify objects before storing themDatasourceException
- no source or target datasource givenpublic static void main(java.lang.String[] args)
args
- command line argumentspublic void setObsoletionCheckBatchSize(int batchSize)
batchSize
- new batchsizepublic void setIgnoreOptimized(boolean ignoreOptimized)
ignoreOptimized
- true when optimized flags shall be ignored, false if notpublic java.lang.String doSync() throws NodeException, java.sql.SQLException
NodeException
- when something went wrongjava.sql.SQLException
- in case of errors accessing source or target databaseCopyright © 2019 Gentics Software. All Rights Reserved.