org.alfresco.repo.bulkimport
Interface BulkFilesystemImporter

All Known Implementing Classes:
AbstractBulkFilesystemImporter, MultiThreadedBulkFilesystemImporter, StripingBulkFilesystemImporter

public interface BulkFilesystemImporter

Interface defining a bulk filesystem importer.

Since:
4.0

Method Summary
 void asyncBulkImport(BulkImportParameters bulkImportParameters, NodeImporter nodeImporter)
          Initiates a bulk filesystem import asynchronously i.e.
 void bulkImport(BulkImportParameters bulkImportParameters, NodeImporter nodeImporter)
          Initiates a bulk filesystem import.
 BulkImportStatus getStatus()
           
 

Method Detail

bulkImport

void bulkImport(BulkImportParameters bulkImportParameters,
                NodeImporter nodeImporter)
Initiates a bulk filesystem import. Note: getStatus().inProgress() must be false prior to calling this method or an Exception will be thrown.

Parameters:
target - The target space to ingest the content into (must not be null and must be a valid, writable space in the repository).
source - The source directory on the local filesystem to read content from (must not be null and must be a valid, readable directory on the local filesystem).
replaceExisting - A flag indicating whether to replace (true) or skip (false) files that are already in the repository.

asyncBulkImport

void asyncBulkImport(BulkImportParameters bulkImportParameters,
                     NodeImporter nodeImporter)
Initiates a bulk filesystem import asynchronously i.e. in a background thread. Note: getStatus().inProgress() must be false prior to calling this method or an Exception will be thrown.

Parameters:
target - The target space to ingest the content into (must not be null and must be a valid, writable space in the repository).
source - The source directory on the local filesystem to read content from (must not be null and must be a valid, readable directory on the local filesystem).
replaceExisting - A flag indicating whether to replace (true) or skip (false) files that are already in the repository.

getStatus

BulkImportStatus getStatus()
Returns:
A status object that describes the current state of the bulk filesystem importer.


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.