|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsalto.batch.lanceur.thread.Traitement
com.ubikingenierie.console.apiconsole.BaseBatch
public abstract class BaseBatch
Base class for Batches, subclasses will implement:
BaseBatch#registerInServer() Method used to register batch in server, contains all configurationBaseBatchexecuteBeforeData() to do some job before getting data, this method is called in Monothreaded modeBaseBatchexec(Object[]) to call the business classes that do the Job on the Data, this method is called in Multi threaded mode if batch is multi threadedBaseBatchexecuteAfterDataEnd() to do some job after all data have been treated, this method is called in Monothreaded mode
| Field Summary |
|---|
| Fields inherited from class salto.batch.lanceur.thread.Traitement |
|---|
batchAppender |
| Constructor Summary | |
|---|---|
BaseBatch()
|
|
| Method Summary | |
|---|---|
boolean |
canExec(java.lang.Object[] dataEnCours,
java.lang.Object[] data)
Called before execution of Traitement#Traitement.exec(Object[]). |
protected Traitement |
childClone(Traitement clone)
Clone method for Traitement. |
abstract TraitementConfiguration |
createConfiguration()
Method used to create a Batch configuration |
void |
exec(java.lang.Object[] data)
Implement this method to execute the business code on the Block of data |
protected abstract void |
executeAfterDataEnd()
Called when batch has finished treating all data or has encountered an error. |
protected abstract void |
executeBeforeData()
Called when batch is triggered. |
protected abstract void |
executeOnBlock(java.lang.Object[] data)
Implement this method to execute the business code on the Block of data |
void |
finalizeBatch()
Called when batch has finished treating all data or has encountered an error. |
void |
initialize()
Called when batch is triggered. |
void |
postExec(long numJob,
java.lang.Object[] data,
java.lang.Object ids,
java.lang.Throwable ex)
NOT PART OF PUBLIC API Called after execution of exec |
void |
preExec(long numJob,
java.lang.Object[] data,
java.lang.Object ids)
NOT PART OF PUBLIC API Called after execution on a block of data. |
| Methods inherited from class salto.batch.lanceur.thread.Traitement |
|---|
clone, execute, getBatchExecutionContext, getBatchParameters, getBatchPhysicalsFileNames, setBatchAppender, setReturnStatus, vetoExecution |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseBatch()
| Method Detail |
|---|
protected abstract void executeOnBlock(java.lang.Object[] data)
throws java.lang.Exception
data - Object[] Array of Data as specified by IBatchStart
java.lang.Exception
protected abstract void executeBeforeData()
throws java.lang.Exception
IBatchStart.
java.lang.Exception
protected abstract void executeAfterDataEnd()
throws java.lang.Exception
java.lang.Exception
public final void initialize()
throws java.lang.Exception
TraitementIBatchStart.
initialize in class Traitementjava.lang.ExceptionTraitement.initialize()public final void finalizeBatch()
Traitement
finalizeBatch in class TraitementTraitement.finalizeBatch()
public final void exec(java.lang.Object[] data)
throws java.lang.Exception
exec in class Traitementdata - Object[] Array of Data as specified by IBatchStart
java.lang.ExceptionTraitement.exec(java.lang.Object[])
public final boolean canExec(java.lang.Object[] dataEnCours,
java.lang.Object[] data)
TraitementTraitement#Traitement.exec(Object[]).
canExec in class TraitementdataEnCours - Data currently treated by concurrent threads of the batchdata - New block of data
Traitement.canExec(java.lang.Object[], java.lang.Object[])
public final void postExec(long numJob,
java.lang.Object[] data,
java.lang.Object ids,
java.lang.Throwable ex)
Traitement
postExec in class TraitementTraitement.postExec(long, java.lang.Object[], java.lang.Object, java.lang.Throwable)
public final void preExec(long numJob,
java.lang.Object[] data,
java.lang.Object ids)
Traitement
preExec in class TraitementnumJob - Job Iddata - Object[]ids - Ids of dataTraitement.preExec(long, java.lang.Object[], java.lang.Object)
protected Traitement childClone(Traitement clone)
throws java.lang.CloneNotSupportedException
TraitementTraitement.
childClone in class Traitementclone - Traitement to clone
java.lang.CloneNotSupportedExceptionTraitement.childClone(salto.batch.lanceur.thread.Traitement)
public abstract TraitementConfiguration createConfiguration()
throws BatchException
TraitementConfiguration Configuration of Batch
BatchException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||