org.alfresco.repo.content.replication
Class ContentStoreReplicator

java.lang.Object
  extended by org.alfresco.repo.content.replication.ContentStoreReplicator

public class ContentStoreReplicator
extends java.lang.Object

This component performs one-way replication between to content stores.

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.


Nested Class Summary
static class ContentStoreReplicator.ContentStoreReplicatorJob
          Kicks off the content store replicator.
 
Constructor Summary
ContentStoreReplicator()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentStoreReplicator

public ContentStoreReplicator()
Method Detail

setSourceStore

public void setSourceStore(ContentStore sourceStore)
Set the source that content must be taken from

Parameters:
sourceStore - the content source

setTargetStore

public void setTargetStore(ContentStore targetStore)
Set the target that content must be written to

Parameters:
targetStore - the content target

setRunContinuously

public void setRunContinuously(boolean runContinuously)
Deprecated. use the job to trigger


setWaitTime

public void setWaitTime(long waitTime)
Deprecated. use the job to trigger


start

public void start()
Kick off the replication thread. If one is already busy, then this method does nothing.



Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.