public interface IIterativeRunListener
TerminateIterativeRunException
from any of the methods (except
stop()
) and the block will exit. Listeners will not be notified of
TerminateIterativeRunException
. Even if the exception is thrown,
stop()
will still be called.Modifier and Type | Method and Description |
---|---|
void |
exceptionThrown(int index,
IModel model,
java.lang.Throwable thrown)
called if something goes horribly wrong.
|
void |
postRun(int currentRunIndex,
int totalRuns,
java.util.Collection<IModel> models) |
void |
preBuild(int currentRunIndex,
int totalRuns,
java.util.Collection<org.antlr.runtime.tree.CommonTree> modelDescriptors)
called before each build of the models in the IterativeMain.
|
void |
preLoad(int currentRunIndex,
int totalRuns) |
void |
preRun(int currentRunIndex,
int totalRuns,
java.util.Collection<IModel> models)
called before the run starts
|
void |
start(int totalRuns) |
void |
stop() |
void start(int totalRuns) throws TerminateIterativeRunException
TerminateIterativeRunException
void stop()
void preLoad(int currentRunIndex, int totalRuns) throws TerminateIterativeRunException
TerminateIterativeRunException
void preBuild(int currentRunIndex, int totalRuns, java.util.Collection<org.antlr.runtime.tree.CommonTree> modelDescriptors) throws TerminateIterativeRunException
currentRunIndex
- totalRuns
- modelDescriptors
- all the descriptors of the models to be created.TerminateIterativeRunException
- TODOvoid preRun(int currentRunIndex, int totalRuns, java.util.Collection<IModel> models) throws TerminateIterativeRunException
currentRunIndex
- totalRuns
- models
- TerminateIterativeRunException
- TODOvoid postRun(int currentRunIndex, int totalRuns, java.util.Collection<IModel> models) throws TerminateIterativeRunException
TerminateIterativeRunException
void exceptionThrown(int index, IModel model, java.lang.Throwable thrown) throws TerminateIterativeRunException
TerminateIterativeRunException
when model!=null,
as it will not be caught by the IterativeMain entry point. If you need to
terminate the iterative run entirely because of a model level exception,
you should record that the exception occured and then terminate from
postRun()index
- thrown
- TerminateIterativeRunException
- if the iterative run should be killed. TODO