public class StripingFilesystemTracker extends AbstractFilesystemTracker
directoryAnalyser, logger
Constructor and Description |
---|
StripingFilesystemTracker(DirectoryAnalyser directoryAnalyser,
org.alfresco.service.cmr.repository.NodeRef target,
File sourceFolder,
int batchSize) |
Modifier and Type | Method and Description |
---|---|
protected void |
addDirectoriesToProcess(Collection<ImportableItem> dirsToAdd,
int level) |
protected void |
addDirectoryToProcess(ImportableItem dir,
int level) |
protected void |
addItemsToProcess(Collection<ImportableItem> items) |
int |
count()
An estimate of the number of directories and files in the filesystem.
|
protected List<ImportableItem> |
getDirectoriesToProcess(int level) |
protected ImportableItem |
getDirectoryToProcess() |
protected List<ImportableItem> |
getImportableItems(int count) |
BatchProcessWorkProvider<ImportableItem> |
getWorkProvider() |
protected void |
incrementLevel() |
void |
itemImported(org.alfresco.service.cmr.repository.NodeRef nodeRef,
ImportableItem importableItem)
A callback to indicate that the item has been imported into the repository.
|
boolean |
moreLevels() |
int |
numDirectoriesToProcess() |
afterPropertiesSet, getImportableDirectoriesInDirectory, getImportableItemsInDirectory, setDirectoryAnalyser
public StripingFilesystemTracker(DirectoryAnalyser directoryAnalyser, org.alfresco.service.cmr.repository.NodeRef target, File sourceFolder, int batchSize)
protected void addDirectoriesToProcess(Collection<ImportableItem> dirsToAdd, int level)
protected void addDirectoryToProcess(ImportableItem dir, int level)
protected List<ImportableItem> getDirectoriesToProcess(int level)
public int count()
FilesystemTracker
protected void incrementLevel()
public void itemImported(org.alfresco.service.cmr.repository.NodeRef nodeRef, ImportableItem importableItem)
FilesystemTracker
nodeRef
- NodeRefimportableItem
- ImportableItemprotected void addItemsToProcess(Collection<ImportableItem> items)
protected ImportableItem getDirectoryToProcess()
public boolean moreLevels()
public int numDirectoriesToProcess()
protected List<ImportableItem> getImportableItems(int count)
public BatchProcessWorkProvider<ImportableItem> getWorkProvider()
Copyright © 2005–2017 Alfresco Software. All rights reserved.