public abstract class AsyncJobCron extends SimpleCronTask
Constructor and Description |
---|
AsyncJobCron() |
Modifier and Type | Method and Description |
---|---|
void |
cronAction()
This method picks up an entry in the asynchronous job queue and handles it to its specified
asynchronous job handler to process it.
|
UserInfo |
getJobUserInfo(java.lang.String userID,
java.lang.String locale)
Get the user info by the passed in userId and locale.
|
CrontaskParamInfo[] |
getParameters()
This method provides an array of CrontaskParamInfo() object to describe
all the parameters of the crontask.
|
MboRemote |
getParameterValidationMbo(CrontaskInstanceRemote instance)
Returns the validation non-persistent mbo for the crontask parameters.
|
abstract boolean |
isImmediate()
The actual foreground or background crontask definitation class needs to implement this method
to return true or false.
|
java.lang.String |
pickupOneJob()
Returns the jobnum if successfully picks up a job.
|
beforeRemoval, getCronTaskHistoryMsg, getCrontaskInstance, getCronTaskLogger, getCronTaskSqlLogger, getDBLastSeed, getEnteredValueVector, getInterval, getIntervalFlag, getLastRunDate, getLastSeed, getName, getParamAsBoolean, getParamAsDate, getParamAsDouble, getParamAsInt, getParamAsString, getParameter, getParameterValidationMbo, getRunasUserInfo, getSleepTime, init, isOKToRun, isShutdown, setCronTaskHistoryMsg, setCrontaskInstance, setDBLastSeed, setEnteredValueVector, setInterval, setIntervalFlag, setLastRunDate, setLastSeed, setSleepTime, shutdown, start, stop
public abstract boolean isImmediate()
public void cronAction()
cronAction
in interface CronTask
cronAction
in class SimpleCronTask
public UserInfo getJobUserInfo(java.lang.String userID, java.lang.String locale)
userID
- locale
- public java.lang.String pickupOneJob() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote getParameterValidationMbo(CrontaskInstanceRemote instance) throws MXException, java.rmi.RemoteException
getParameterValidationMbo
in interface CronTask
getParameterValidationMbo
in class SimpleCronTask
MXException
java.rmi.RemoteException
CronTask.getParameterValidationMbo(CrontaskInstanceRemote)
public CrontaskParamInfo[] getParameters() throws MXException, java.rmi.RemoteException
CronTask
getParameters
in interface CronTask
getParameters
in class SimpleCronTask
MXException
java.rmi.RemoteException
CrontaskParamInfo