|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gentics.api.portalnode.connector.MCCRSync
public class MCCRSync
Command line tool to synchronize two multichannelling aware content repositories.
Nested Class Summary | |
---|---|
protected class |
MCCRSync.SyncCount
Counter for synchronized objects |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 them
DatasourceException
- no source or target datasource givenMethod Detail |
---|
public 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 wrong
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |