Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ERROR_ON_COMPLETE |
Constructor and Description |
---|
BatchManager() |
Modifier and Type | Method and Description |
---|---|
void |
abort()
Abort the running timer task.
|
static void |
abortBatchJob(ActivityInstance ai) |
void |
compensate(ActivityInstance ai) |
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.
|
static void |
reactivateBatchJob(ActivityInstance ai) |
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.
|
public static final java.lang.String ERROR_ON_COMPLETE
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 variationsjava.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,GOBACKONERROR=1" Behavior Variations
public void submitJob(java.lang.String adapterClassName) throws java.lang.Exception
submitJob
with null as params and default execModesjava.lang.Exception
public void submitJob(java.lang.String adapterClassName, java.lang.String param) throws java.lang.Exception
submitJob
with default execModesjava.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 BatchJobjava.lang.Exception
public static void markJobFinished(BatchJob bj, int resultCode) throws java.lang.Exception
bj
- a BatchJobresultCode
- an intjava.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 resultsjava.lang.Exception
public static void exceptionHandlingFinished(java.lang.String id)
public void run(TimerEntry te, java.lang.String args)
public void abort()
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(ActivityInstance ai)
public static void abortBatchJob(ActivityInstance ai)
public static void reactivateBatchJob(ActivityInstance ai)
@enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.