public abstract class AbstractImporterExecutor extends Object
Modifier and Type | Field and Description |
---|---|
protected static Thread |
executorMainThread |
protected ImporterDocumentModelFactory |
factory |
protected static ImporterRunner |
lastRunner |
protected static ImporterLogger |
log |
protected ImporterThreadingPolicy |
threadPolicy |
protected int |
transactionTimeout |
Constructor and Description |
---|
AbstractImporterExecutor() |
Modifier and Type | Method and Description |
---|---|
protected String |
doRun(ImporterRunner runner,
Boolean interactive) |
ImporterDocumentModelFactory |
getFactory() |
protected abstract org.apache.commons.logging.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 the
DefaultImporterService and passing the executor to
the importDocuments method |
void |
setFactory(ImporterDocumentModelFactory factory) |
void |
setThreadPolicy(ImporterThreadingPolicy threadPolicy) |
void |
setTransactionTimeout(int transactionTimeout) |
protected void |
startTask(ImporterRunner runner,
boolean interactive) |
protected static ImporterLogger log
protected static Thread executorMainThread
protected static ImporterRunner lastRunner
protected ImporterThreadingPolicy threadPolicy
protected ImporterDocumentModelFactory factory
protected int transactionTimeout
public AbstractImporterExecutor()
protected abstract org.apache.commons.logging.Log getJavaLogger()
public ImporterLogger getLogger()
public boolean isRunning()
protected void startTask(ImporterRunner runner, boolean interactive)
protected String doRun(ImporterRunner runner, Boolean interactive)
public ImporterThreadingPolicy getThreadPolicy()
public void setThreadPolicy(ImporterThreadingPolicy threadPolicy)
public ImporterDocumentModelFactory getFactory()
public void setFactory(ImporterDocumentModelFactory factory)
public int getTransactionTimeout()
public void setTransactionTimeout(int transactionTimeout)
public String run(ImporterRunner runner, Boolean interactive)
DefaultImporterService
and passing the executor to
the importDocuments methodrunner
- interactive
- Exception
Copyright © 2018 Nuxeo. All rights reserved.