public class MCCRSync extends 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 |
---|---|
String |
doSync()
Do the sync
|
static void |
main(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(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 String doSync() throws NodeException, SQLException
NodeException
- when something went wrongSQLException
Copyright © 2016 Gentics Software GmbH. All Rights Reserved.