net.sf.vcaperture.tool.listeners
Class LocalStorageTool

java.lang.Object
  extended by net.sf.vcaperture.tool.listeners.AbstractToolListener
      extended by net.sf.vcaperture.tool.listeners.LocalStorageTool
All Implemented Interfaces:
IRepositoryToolListener

public class LocalStorageTool
extends AbstractToolListener

This tool stores everything from the repository into a local database.

Author:
Jeremy Thomerson (jthomerson@users.sourceforge.net)
See Also:
ProcessedRepository

Field Summary
static int DEFAULT_MAX_REVISION_PER_BATCH
           
private  int mMaxRevisionsPerBatch
           
private  ILocalStorageService mStorageService
           
 
Constructor Summary
LocalStorageTool()
           
 
Method Summary
 int getMaxRevisionsPerBatch()
           
 ILocalStorageService getStorageService()
           
 boolean processRepository(IRepositoryService repositoryService, AbstractRepository repo)
           
 void setMaxRevisionsPerBatch(int maxRevisionsPerBatch)
           
 void setStorageService(ILocalStorageService storageService)
           
 
Methods inherited from class net.sf.vcaperture.tool.listeners.AbstractToolListener
getLogger, repoEnd, repoStart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MAX_REVISION_PER_BATCH

public static final int DEFAULT_MAX_REVISION_PER_BATCH
See Also:
Constant Field Values

mStorageService

private ILocalStorageService mStorageService

mMaxRevisionsPerBatch

private int mMaxRevisionsPerBatch
Constructor Detail

LocalStorageTool

public LocalStorageTool()
Method Detail

processRepository

public boolean processRepository(IRepositoryService repositoryService,
                                 AbstractRepository repo)
Specified by:
processRepository in interface IRepositoryToolListener
Overrides:
processRepository in class AbstractToolListener

setStorageService

public void setStorageService(ILocalStorageService storageService)

getStorageService

public ILocalStorageService getStorageService()

getMaxRevisionsPerBatch

public int getMaxRevisionsPerBatch()

setMaxRevisionsPerBatch

public void setMaxRevisionsPerBatch(int maxRevisionsPerBatch)


Copyright © 2008. All Rights Reserved.