public class GenericMultiThreadedImporter extends Object implements ImporterRunner
Modifier and Type | Class and Description |
---|---|
static class |
GenericMultiThreadedImporter.NamedThreadFactory
Creates non-daemon threads at normal priority.
|
Constructor and Description |
---|
GenericMultiThreadedImporter(ImporterRunnerConfiguration configuration) |
GenericMultiThreadedImporter(SourceNode sourceNode,
String importWritePath,
Boolean skipRootContainerCreation,
Integer batchSize,
Integer nbThreads,
ImporterLogger log) |
GenericMultiThreadedImporter(SourceNode sourceNode,
String importWritePath,
Boolean skipRootContainerCreation,
Integer batchSize,
Integer nbThreads,
ImporterLogger log,
int queueSize) |
GenericMultiThreadedImporter(SourceNode sourceNode,
String importWritePath,
Boolean skipRootContainerCreation,
Integer batchSize,
Integer nbThreads,
String jobName,
ImporterLogger log) |
GenericMultiThreadedImporter(SourceNode sourceNode,
String importWritePath,
Integer batchSize,
Integer nbThreads,
ImporterLogger log) |
GenericMultiThreadedImporter(SourceNode sourceNode,
String importWritePath,
Integer batchSize,
Integer nbThreads,
String jobName,
ImporterLogger log) |
Modifier and Type | Method and Description |
---|---|
static void |
addCreatedDoc(String taskId,
long nbDocs) |
void |
addFilter(ImporterFilter filter) |
void |
addImportingDocumentFilters(Collection<ImportingDocumentFilter> importingDocumentFilters) |
void |
addImportingDocumentFilters(ImportingDocumentFilter... importingDocumentFilters) |
void |
addListeners(Collection<ImporterListener> listeners) |
void |
addListeners(ImporterListener... listeners) |
static long |
getCreatedDocsCounter() |
static ThreadPoolExecutor |
getExecutor() |
ImporterDocumentModelFactory |
getFactory() |
String |
getRepositoryName() |
ImporterThreadingPolicy |
getThreadPolicy() |
void |
run() |
void |
setEnablePerfLogging(boolean enablePerfLogging) |
void |
setFactory(ImporterDocumentModelFactory factory) |
void |
setRepositoryName(String repositoryName) |
void |
setRootImportTask(GenericThreadedImportTask rootImportTask) |
void |
setThreadPolicy(ImporterThreadingPolicy threadPolicy) |
void |
setTransactionTimeout(int transactionTimeout) |
void |
stopImportProcrocess() |
public GenericMultiThreadedImporter(SourceNode sourceNode, String importWritePath, Boolean skipRootContainerCreation, Integer batchSize, Integer nbThreads, ImporterLogger log, int queueSize)
public GenericMultiThreadedImporter(SourceNode sourceNode, String importWritePath, Boolean skipRootContainerCreation, Integer batchSize, Integer nbThreads, ImporterLogger log)
public GenericMultiThreadedImporter(SourceNode sourceNode, String importWritePath, Integer batchSize, Integer nbThreads, ImporterLogger log)
public GenericMultiThreadedImporter(SourceNode sourceNode, String importWritePath, Boolean skipRootContainerCreation, Integer batchSize, Integer nbThreads, String jobName, ImporterLogger log)
public GenericMultiThreadedImporter(SourceNode sourceNode, String importWritePath, Integer batchSize, Integer nbThreads, String jobName, ImporterLogger log)
public GenericMultiThreadedImporter(ImporterRunnerConfiguration configuration)
public static ThreadPoolExecutor getExecutor()
public static void addCreatedDoc(String taskId, long nbDocs)
public static long getCreatedDocsCounter()
public void addFilter(ImporterFilter filter)
public void addListeners(ImporterListener... listeners)
public void addListeners(Collection<ImporterListener> listeners)
public void addImportingDocumentFilters(ImportingDocumentFilter... importingDocumentFilters)
public void addImportingDocumentFilters(Collection<ImportingDocumentFilter> importingDocumentFilters)
public void setRootImportTask(GenericThreadedImportTask rootImportTask)
public ImporterThreadingPolicy getThreadPolicy()
public void setThreadPolicy(ImporterThreadingPolicy threadPolicy)
public ImporterDocumentModelFactory getFactory()
public void setFactory(ImporterDocumentModelFactory factory)
public void setTransactionTimeout(int transactionTimeout)
public void setEnablePerfLogging(boolean enablePerfLogging)
public void stopImportProcrocess()
stopImportProcrocess
in interface ImporterRunner
public String getRepositoryName()
public void setRepositoryName(String repositoryName)
Copyright © 2015 Nuxeo SA. All rights reserved.