Dekoh platform API

dekoh.portal.fwk.importer
Class ImportRequestCreator

java.lang.Object
  extended by dekoh.portal.fwk.importer.ImportRequestCreator
All Implemented Interfaces:
ScanObserver

public class ImportRequestCreator
extends Object
implements ScanObserver

Since:
Mar 3, 2008

Constructor Summary
ImportRequestCreator(ImportProcessor importProcessor, ImportContext importContext, ImportProgressObject importProgressObject, ImportSubProcess initiatingImportSubProcess)
           
 
Method Summary
 void beginDirectoryScan(File directory, RootFolder rootFolder, ImportStatus importStatus)
           
 void finishDirectoryScan(File file, RootFolder rooFolder, ImportStatus importStatus)
           
protected  RootFolder getRootFolder(File modifiredOrDeletedDir, Set rootFolders)
           
 void handleFile(File file, RootFolder rootFolder, ImportStatus importStatus, boolean isLastInThisDir)
           
protected  void removeNonExistentFilesFromDb()
           
 void scanComplete()
           
protected  void shutdownAllExecutors()
           
protected  void shutdownAllSuccessors(List successors)
           
protected  void waitForAllExecutorsTofinish()
           
protected  void waitForAllSuccessors(List successors)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportRequestCreator

public ImportRequestCreator(ImportProcessor importProcessor,
                            ImportContext importContext,
                            ImportProgressObject importProgressObject,
                            ImportSubProcess initiatingImportSubProcess)
Method Detail

finishDirectoryScan

public void finishDirectoryScan(File file,
                                RootFolder rooFolder,
                                ImportStatus importStatus)
Specified by:
finishDirectoryScan in interface ScanObserver

beginDirectoryScan

public void beginDirectoryScan(File directory,
                               RootFolder rootFolder,
                               ImportStatus importStatus)
Specified by:
beginDirectoryScan in interface ScanObserver

handleFile

public void handleFile(File file,
                       RootFolder rootFolder,
                       ImportStatus importStatus,
                       boolean isLastInThisDir)
Specified by:
handleFile in interface ScanObserver

getRootFolder

protected RootFolder getRootFolder(File modifiredOrDeletedDir,
                                   Set rootFolders)

removeNonExistentFilesFromDb

protected void removeNonExistentFilesFromDb()
                                     throws ExecutionException,
                                            InterruptedException
Throws:
ExecutionException
InterruptedException

scanComplete

public void scanComplete()
Specified by:
scanComplete in interface ScanObserver

waitForAllExecutorsTofinish

protected void waitForAllExecutorsTofinish()
                                    throws ExecutionException,
                                           InterruptedException
Throws:
ExecutionException
InterruptedException

waitForAllSuccessors

protected void waitForAllSuccessors(List successors)
                             throws ExecutionException,
                                    InterruptedException
Throws:
ExecutionException
InterruptedException

shutdownAllExecutors

protected void shutdownAllExecutors()

shutdownAllSuccessors

protected void shutdownAllSuccessors(List successors)

Dekoh platform API

© 2009 Pramati Technologies - Dekoh - Portal for Developers