public abstract class MultiThreadedBulkFilesystemImporter extends AbstractBulkFilesystemImporter
BatchProcessor
.Modifier and Type | Field and Description |
---|---|
protected int |
defaultBatchSize |
protected int |
defaultLoggingInterval |
protected int |
defaultNumThreads |
protected static org.apache.commons.logging.Log |
logger |
applicationContext, behaviourFilter, directoryAnalyser, fileFolderService, importStatus, jobLockService, permissionService, ruleService, transactionHelper, transactionService
Constructor and Description |
---|
MultiThreadedBulkFilesystemImporter() |
Modifier and Type | Method and Description |
---|---|
protected void |
bulkImportImpl(BulkImportParameters bulkImportParameters,
NodeImporter nodeImporter,
String lockToken)
Method that does the work of importing a filesystem using the BatchProcessor.
|
protected BatchProcessor<ImportableItem> |
getBatchProcessor(BulkImportParameters bulkImportParameters,
BatchProcessWorkProvider<ImportableItem> workProvider,
int loggingInterval) |
protected int |
getBatchSize(BulkImportParameters bulkImportParameters) |
int |
getDefaultBatchSize() |
int |
getDefaultNumThreads() |
protected int |
getLoggingInterval(BulkImportParameters bulkImportParameters) |
protected int |
getNumThreads(BulkImportParameters bulkImportParameters) |
protected BatchProcessor.BatchProcessWorker<ImportableItem> |
getWorker(BulkImportParameters bulkImportParameters,
String lockToken,
NodeImporter nodeImporter,
FilesystemTracker filesystemTracker) |
void |
setDefaultBatchSize(int defaultBatchSize) |
void |
setDefaultNumThreads(int defaultNumThreads) |
afterPropertiesSet, asyncBulkImport, bulkImport, getFileName, getLock, getLockToken, getRepositoryPath, getStatus, mapToString, refreshLock, releaseLock, setApplicationContext, setBehaviourFilter, setDirectoryAnalyser, setFileFolderService, setImportStatus, setJobLockService, setPermissionService, setRuleService, setTransactionService, validateNodeRefIsWritableSpace, validateSourceIsReadableDirectory
protected static final org.apache.commons.logging.Log logger
protected int defaultBatchSize
protected int defaultNumThreads
protected int defaultLoggingInterval
protected int getLoggingInterval(BulkImportParameters bulkImportParameters)
protected int getBatchSize(BulkImportParameters bulkImportParameters)
protected int getNumThreads(BulkImportParameters bulkImportParameters)
protected BatchProcessor.BatchProcessWorker<ImportableItem> getWorker(BulkImportParameters bulkImportParameters, String lockToken, NodeImporter nodeImporter, FilesystemTracker filesystemTracker)
protected BatchProcessor<ImportableItem> getBatchProcessor(BulkImportParameters bulkImportParameters, BatchProcessWorkProvider<ImportableItem> workProvider, int loggingInterval)
public void setDefaultNumThreads(int defaultNumThreads)
public void setDefaultBatchSize(int defaultBatchSize)
public int getDefaultNumThreads()
public int getDefaultBatchSize()
protected void bulkImportImpl(BulkImportParameters bulkImportParameters, NodeImporter nodeImporter, String lockToken)
bulkImportImpl
in class AbstractBulkFilesystemImporter
bulkImportParameters
- The bulk import parameters to apply to this bulk import.nodeImporter
- The node importer implementation that will import each node.lockToken
- The lock token to use during the bulk import.Copyright © 2005–2017 Alfresco Software. All rights reserved.