public class ContentStoreReplicator
extends java.lang.Object
It ensure that the content from the first store is copied to the second store where required, therefore primarily acting as a backup or replication mechanism.
Once started, this process runs continuously on a low-priority thread and cannot be restarted.
| Modifier and Type | Class and Description |
|---|---|
static class |
ContentStoreReplicator.ContentStoreReplicatorJob
Kicks off the
content store replicator. |
| Constructor and Description |
|---|
ContentStoreReplicator() |
| Modifier and Type | Method and Description |
|---|---|
void |
setRunContinuously(boolean runContinuously)
Deprecated.
use the
job to trigger |
void |
setSourceStore(ContentStore sourceStore)
Set the source that content must be taken from
|
void |
setTargetStore(ContentStore targetStore)
Set the target that content must be written to
|
void |
setWaitTime(long waitTime)
Deprecated.
use the
job to trigger |
void |
start()
Kick off the replication thread.
|
public void setSourceStore(ContentStore sourceStore)
sourceStore - the content sourcepublic void setTargetStore(ContentStore targetStore)
targetStore - the content targetpublic void setRunContinuously(boolean runContinuously)
job to triggerpublic void setWaitTime(long waitTime)
job to triggerpublic void start()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.