Package org.openforis.collect.manager
Class ValidationReportJob
- java.lang.Object
-
- org.openforis.concurrency.Worker
-
- org.openforis.concurrency.Job
-
- org.openforis.collect.manager.ValidationReportJob
-
@Component @Scope("prototype") public class ValidationReportJob extends org.openforis.concurrency.Job
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classValidationReportJob.Inputstatic classValidationReportJob.ReportType
-
Constructor Summary
Constructors Constructor Description ValidationReportJob()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbuildTasks()ValidationReportJob.InputgetInput()FilegetOutputFile()protected voidinitializeInternalVariables()protected voidonEnd()voidrun()voidsetInput(ValidationReportJob.Input input)-
Methods inherited from class org.openforis.concurrency.Job
abort, addTask, addTask, addTasks, createTask, execute, getCurrentTask, getCurrentTaskIndex, getJobManager, getProgressPercent, getTasks, hasTaskToRun, initializeTask, nextTask, onTaskCompleted, onTaskEnd, onTaskFailed, release, runTask, setJobManager
-
Methods inherited from class org.openforis.concurrency.Worker
addStatusChangeListener, afterExecute, afterExecuteInternal, beforeExecute, beforeExecuteInternal, changeStatus, createInternalVariables, destroy, getDuration, getEndTime, getErrorMessage, getErrorMessageArgs, getId, getLastException, getName, getResult, getStartTime, getStatus, getWeight, initialize, isAborted, isCompleted, isEnded, isFailed, isPending, isRunning, logDebug, logError, logInfo, logWarning, notifyAllStatusChangeListeners, onAborted, onCompleted, onFailed, prepareResult, removeStatusChangeListener, setErrorMessage, setErrorMessageArgs, setLastException, setResult, setWeight, validateInput, waitFor
-
-
-
-
Method Detail
-
run
@Transactional(rollbackFor=java.lang.RuntimeException.class) public void run()
- Overrides:
runin classorg.openforis.concurrency.Worker
-
initializeInternalVariables
protected void initializeInternalVariables() throws Throwable- Overrides:
initializeInternalVariablesin classorg.openforis.concurrency.Job- Throws:
Throwable
-
buildTasks
protected void buildTasks() throws Throwable- Specified by:
buildTasksin classorg.openforis.concurrency.Job- Throws:
Throwable
-
onEnd
protected void onEnd()
- Overrides:
onEndin classorg.openforis.concurrency.Worker
-
getInput
public ValidationReportJob.Input getInput()
-
setInput
public void setInput(ValidationReportJob.Input input)
-
getOutputFile
public File getOutputFile()
-
-