|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IBatch
The batch class is the class in which tasks are created and provided to a service that executes them.
The batch class must implements the interface IBatch. Each method corresponds to a step of the batch life cycle.
If a BatchException is throw into one of these methods, the method
manageFatalError will be called and the batch will be shutdown.
ITask| Method Summary | |
|---|---|
void |
end(ExecutionReport report)
Called at the end of the batch execution. |
void |
endOfExecution(ITask task,
java.lang.Throwable exception)
Called after the end of the execution of a task. |
void |
execute(ITaskExecutor executor)
Execution method of the batch. |
void |
init(BatchConfiguration configuration)
Initialization method of the batch. |
void |
manageFatalError(ExecutionReport report,
java.lang.Throwable throwable)
Called if a fatal error occurred. |
void |
pause()
Called then the batch execution has been put into waking through the call of the corresponding JMX operation. |
void |
resume()
Called then the batch execution has been resumed through the call of the corresponding JMX operation. |
| Method Detail |
|---|
void init(BatchConfiguration configuration)
throws BatchException
configuration - the configuration of the batch
BatchException - if throw, then the batch is stopped
void execute(ITaskExecutor executor)
throws BatchException
executor - the tasks executor
BatchException - if throw, then the batch is stoppedITask
void pause()
throws BatchException
BatchException - if throw, then the batch is stopped
void resume()
throws BatchException
BatchException - if throw, then the batch is stopped
void end(ExecutionReport report)
throws BatchException
report - the execution report
BatchException - if throw, then the batch is stopped
void endOfExecution(ITask task,
java.lang.Throwable exception)
task - the failed taskexception - the cause of the failure
void manageFatalError(ExecutionReport report,
java.lang.Throwable throwable)
report - the execution reportthrowable - the cause of the error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||