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,
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() |
ImporterThreadingPolicy |
getThreadPolicy() |
void |
run() |
void |
setEnablePerfLogging(boolean enablePerfLogging) |
void |
setFactory(ImporterDocumentModelFactory factory) |
void |
setRootImportTask(GenericThreadedImportTask rootImportTask) |
void |
setThreadPolicy(ImporterThreadingPolicy threadPolicy) |
void |
stopImportProcrocess() |
public GenericMultiThreadedImporter(SourceNode sourceNode, String importWritePath, Boolean skipRootContainerCreation, Integer batchSize, Integer nbThreads, ImporterLogger log) throws Exception
Exception
public GenericMultiThreadedImporter(SourceNode sourceNode, String importWritePath, Integer batchSize, Integer nbThreads, ImporterLogger log) throws Exception
Exception
public GenericMultiThreadedImporter(SourceNode sourceNode, String importWritePath, Boolean skipRootContainerCreation, Integer batchSize, Integer nbThreads, String jobName, ImporterLogger log) throws Exception
Exception
public GenericMultiThreadedImporter(SourceNode sourceNode, String importWritePath, Integer batchSize, Integer nbThreads, String jobName, ImporterLogger log) throws Exception
Exception
public GenericMultiThreadedImporter(ImporterRunnerConfiguration configuration) throws Exception
Exception
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 setEnablePerfLogging(boolean enablePerfLogging)
public void stopImportProcrocess()
stopImportProcrocess
in interface ImporterRunner
Copyright © 2013 Nuxeo SA. All Rights Reserved.