|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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(String id)
|
protected static BatchAdapter |
getBatchAdapter(String adapterClassName)
|
static void |
markJobError(BatchJob bj,
Exception ex)
|
static void |
markJobError(BatchJob bj,
int resultCode,
String resultValue,
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,
String resultvalues)
Mark a BatchJob as finished. |
void |
run(TimerEntry te,
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(String adapterClassName)
Method submitJob submits a BatchJob for later execution. |
void |
submitJob(String adapterClassName,
String param)
Method submitJob submits a BatchJob for later execution. |
void |
submitJob(String adapterClassName,
String params,
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(String adapterClassName)
public void submitJob(String adapterClassName,
String params,
String execModes)
throws Exception
adapterClassName - name of a Class implementing BatchAdapterparams - additional params for the execution can be passed in this StringexecModes - attributes for behaviour variations
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(String adapterClassName)
throws Exception
submitJob with null as params and default execModes
Exception
public void submitJob(String adapterClassName,
String param)
throws Exception
submitJob with default execModes
Exception
public static void markJobError(BatchJob bj,
Exception ex)
public static void markJobError(BatchJob bj,
int resultCode,
String resultValue,
Exception ex)
public static void markJobFinished(BatchJob bj)
throws Exception
bj - a BatchJob
Exception
public static void markJobFinished(BatchJob bj,
int resultCode)
throws Exception
bj - a BatchJobresultCode - an int
Exception
public static void markJobFinished(BatchJob bj,
int resultCode,
String resultvalues)
throws Exception
bj - the BatchJob to markresultCode - an int to indicate a result conditionresultvalues - a String to transport some results
Exceptionpublic static void exceptionHandlingFinished(String id)
public void run(TimerEntry te,
String args)
run in interface TimerTaskte - 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 adapter
protected 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 | ||||||||