public class JMSQueueCronTask extends SimpleCronTask
Constructor and Description |
---|
JMSQueueCronTask() |
Modifier and Type | Method and Description |
---|---|
void |
cronAction()
This is the CORE METHOD of this class.
|
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 mbo for the crontask parameter
|
void |
init()
Invoked by the CronTaskManager when the class is instantiated.
|
boolean |
isOKToRun(MXServerRemote server)
This method informs the crontask manager whether the crontask instance associated
to this crontask object should be running on the specified server.
|
void |
killConsumer() |
void |
setCrontaskInstance(CrontaskInstanceRemote inst)
Cache the crontask instance this crontask object is instantiated for.
|
void |
start()
Default implementation for start().
|
void |
stop()
Default implementation for stop().
|
beforeRemoval, getCronTaskHistoryMsg, getCrontaskInstance, getCronTaskLogger, getCronTaskSqlLogger, getDBLastSeed, getEnteredValueVector, getInterval, getIntervalFlag, getLastRunDate, getLastSeed, getName, getParamAsBoolean, getParamAsDate, getParamAsDouble, getParamAsInt, getParamAsString, getParameter, getParameterValidationMbo, getRunasUserInfo, getSleepTime, isShutdown, setCronTaskHistoryMsg, setDBLastSeed, setEnteredValueVector, setInterval, setIntervalFlag, setLastRunDate, setLastSeed, setSleepTime, shutdown
public void init()
SimpleCronTask
runAsUserInfo
.
Performs a silent login via SecurityService.init
in interface CronTask
init
in class SimpleCronTask
SecurityService.authenticateUser(String, boolean)
public void start()
SimpleCronTask
start
in interface CronTask
start
in class SimpleCronTask
CronTask.stop()
,
startup()
public void killConsumer()
public void cronAction()
SimpleCronTask
cronAction
in interface CronTask
cronAction
in class SimpleCronTask
public CrontaskParamInfo[] getParameters() throws MXException, java.rmi.RemoteException
CronTask
getParameters
in interface CronTask
getParameters
in class SimpleCronTask
MXException
java.rmi.RemoteException
CrontaskParamInfo
public boolean isOKToRun(MXServerRemote server)
isOKToRun
in interface CronTask
isOKToRun
in class SimpleCronTask
server
- psdi.server.CronTask#isOKToRun();
public void stop()
SimpleCronTask
stop
in interface CronTask
stop
in class SimpleCronTask
public void setCrontaskInstance(CrontaskInstanceRemote inst)
SimpleCronTask
setCrontaskInstance
in interface CronTask
setCrontaskInstance
in class SimpleCronTask
CronTask.setCrontaskInstance(CrontaskInstanceRemote)
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)