org.shredzone.repowatch.sync
Class RepositorySynchronizerImpl

java.lang.Object
  extended by org.shredzone.repowatch.sync.RepositorySynchronizerImpl
All Implemented Interfaces:
RepositorySynchronizer

@Component
@Scope(value="prototype")
@Transactional
public class RepositorySynchronizerImpl
extends Object
implements RepositorySynchronizer

This is the heart of the synchronizer. It synchronizes the repowatch database with the repository's databases.

This bean is prototype scoped. Use RepositorySynchronizerFactory to generate a new instance of this bean.

Version:
$Revision: 317 $

Constructor Summary
RepositorySynchronizerImpl()
           
 
Method Summary
 void doSynchronize()
          Starts the synchronization process.
 void setRepository(Repository repository)
          Sets the Repository to be synchronized.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositorySynchronizerImpl

public RepositorySynchronizerImpl()
Method Detail

setRepository

public void setRepository(Repository repository)
Sets the Repository to be synchronized.

Specified by:
setRepository in interface RepositorySynchronizer

doSynchronize

public void doSynchronize()
                   throws SynchronizerException
Starts the synchronization process.

Specified by:
doSynchronize in interface RepositorySynchronizer
Throws:
SynchronizerException - Synchronization failed for various reasons


Copyright © 2007-2011 shredzone.org. All Rights Reserved.