|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.groiss.wf.batch.BatchManager
public class BatchManager
Starts and Completes BatchJobs. Provides methods for creation of jobs and to mark them as finished.
Constructor Summary | |
---|---|
BatchManager()
|
Method Summary | |
---|---|
void |
abort()
Abort the running timer task. |
static void |
abortBatchJob(com.dec.avw.core.StepInstance si)
|
void |
compensate(com.dec.avw.core.StepInstance si)
|
static void |
exceptionHandlingFinished(java.lang.String id)
|
protected static BatchAdapter |
getBatchAdapter(java.lang.String adapterClassName)
|
static void |
markJobError(BatchJob bj,
java.lang.Exception ex)
|
static void |
markJobError(BatchJob bj,
int resultCode,
java.lang.String resultValue,
java.lang.Exception ex)
|
static void |
markJobFinished(BatchJob bj)
Mark a BatchJob finished without resultcode and resultstring |
static void |
markJobFinished(BatchJob bj,
int resultCode)
Mark a BatchJob as finished without a result string |
static void |
markJobFinished(BatchJob bj,
int resultCode,
java.lang.String resultvalues)
Mark a BatchJob as finished. |
void |
run(TimerEntry te,
java.lang.String args)
the TimerTask interface |
protected static void |
startJob(BatchJob bj,
BatchAdapter adapter)
Start a BatchJob. |
protected static void |
startJobHere(BatchJob bj,
BatchAdapter adapter)
Start a BatchJob in the current thread. |
void |
submitJob(java.lang.String adapterClassName)
Method submitJob submits a BatchJob for later execution. |
void |
submitJob(java.lang.String adapterClassName,
java.lang.String param)
Method submitJob submits a BatchJob for later execution. |
void |
submitJob(java.lang.String adapterClassName,
java.lang.String params,
java.lang.String execModes)
Method submitJob submits a BatchJob for later execution. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BatchManager()
Method Detail |
---|
protected static BatchAdapter getBatchAdapter(java.lang.String adapterClassName)
public void submitJob(java.lang.String adapterClassName, java.lang.String params, java.lang.String execModes) throws java.lang.Exception
adapterClassName
- name of a Class implementing BatchAdapter
params
- additional params for the execution can be passed in this StringexecModes
- attributes for behaviour variations
java.lang.Exception
- execModes is a string where the behavior modifications of a batchjob can be encoded in the following form: "STARTNOW=1,AUTOFINISH=1,NEWTHREAD=1" Behavior Variations
public void submitJob(java.lang.String adapterClassName) throws java.lang.Exception
submitJob
with null as params and default execModes
java.lang.Exception
public void submitJob(java.lang.String adapterClassName, java.lang.String param) throws java.lang.Exception
submitJob
with default execModes
java.lang.Exception
public static void markJobError(BatchJob bj, java.lang.Exception ex)
public static void markJobError(BatchJob bj, int resultCode, java.lang.String resultValue, java.lang.Exception ex)
public static void markJobFinished(BatchJob bj) throws java.lang.Exception
bj
- a BatchJob
java.lang.Exception
public static void markJobFinished(BatchJob bj, int resultCode) throws java.lang.Exception
bj
- a BatchJobresultCode
- an int
java.lang.Exception
public static void markJobFinished(BatchJob bj, int resultCode, java.lang.String resultvalues) throws java.lang.Exception
bj
- the BatchJob to markresultCode
- an int to indicate a result conditionresultvalues
- a String to transport some results
java.lang.Exception
public static void exceptionHandlingFinished(java.lang.String id)
public void run(TimerEntry te, java.lang.String args)
run
in interface TimerTask
te
- the persistent timer entryargs
- the argument string defined in the timer entry.public void abort()
abort
in interface TimerTask
protected static void startJob(BatchJob bj, BatchAdapter adapter)
bj
- the Batchjob to startadapter
- the corresponding adapterprotected static void startJobHere(BatchJob bj, BatchAdapter adapter)
bj
- the Batchjob to startadapter
- the corresponding adapterpublic void compensate(com.dec.avw.core.StepInstance si)
public static void abortBatchJob(com.dec.avw.core.StepInstance si)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |