Class AbstractImporterExecutor
- java.lang.Object
-
- org.nuxeo.ecm.platform.importer.executor.AbstractImporterExecutor
-
- Direct Known Subclasses:
AbstractJaxRSImporterExecutor
,DefaultImporterExecutor
public abstract class AbstractImporterExecutor extends Object
base class for importers- Author:
- Thierry Delprat
-
-
Field Summary
Fields Modifier and Type Field Description protected static Thread
executorMainThread
protected ImporterDocumentModelFactory
factory
protected static ImporterRunner
lastRunner
protected static ImporterLogger
log
protected ImporterThreadingPolicy
threadPolicy
protected int
transactionTimeout
-
Constructor Summary
Constructors Constructor Description AbstractImporterExecutor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected String
doRun(ImporterRunner runner, Boolean interactive)
ImporterDocumentModelFactory
getFactory()
protected abstract Log
getJavaLogger()
ImporterLogger
getLogger()
String
getStatus()
ImporterThreadingPolicy
getThreadPolicy()
int
getTransactionTimeout()
boolean
isRunning()
String
kill()
String
run(ImporterRunner runner, Boolean interactive)
since 5.5 this method is invoked when using theDefaultImporterService
and passing the executor to the importDocuments methodvoid
setFactory(ImporterDocumentModelFactory factory)
void
setThreadPolicy(ImporterThreadingPolicy threadPolicy)
void
setTransactionTimeout(int transactionTimeout)
protected void
startTask(ImporterRunner runner, boolean interactive)
-
-
-
Field Detail
-
log
protected static ImporterLogger log
-
executorMainThread
protected static Thread executorMainThread
-
lastRunner
protected static ImporterRunner lastRunner
-
threadPolicy
protected ImporterThreadingPolicy threadPolicy
-
factory
protected ImporterDocumentModelFactory factory
-
transactionTimeout
protected int transactionTimeout
-
-
Method Detail
-
getJavaLogger
protected abstract Log getJavaLogger()
-
getLogger
public ImporterLogger getLogger()
-
getStatus
public String getStatus()
-
isRunning
public boolean isRunning()
-
kill
public String kill()
-
startTask
protected void startTask(ImporterRunner runner, boolean interactive)
-
doRun
protected String doRun(ImporterRunner runner, Boolean interactive)
-
getThreadPolicy
public ImporterThreadingPolicy getThreadPolicy()
-
setThreadPolicy
public void setThreadPolicy(ImporterThreadingPolicy threadPolicy)
-
getFactory
public ImporterDocumentModelFactory getFactory()
-
setFactory
public void setFactory(ImporterDocumentModelFactory factory)
-
getTransactionTimeout
public int getTransactionTimeout()
- Since:
- 5.9.4
-
setTransactionTimeout
public void setTransactionTimeout(int transactionTimeout)
- Since:
- 5.9.4
-
run
public String run(ImporterRunner runner, Boolean interactive)
since 5.5 this method is invoked when using theDefaultImporterService
and passing the executor to the importDocuments method
-
-