public class DebugCronTask extends SimpleCronTask
CronTaskManager
,
CronTask
,
psdi.test.CronErrorTest
Constructor and Description |
---|
DebugCronTask() |
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.
|
void |
init()
Invoked by the CronTaskManager when the class is instantiated.
|
boolean |
isOKToRun(MXServerRemote server)
Default implementation of isOKToRun.
|
void |
shutdown()
Sets the shutdown variable.
|
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, getParameterValidationMbo, getRunasUserInfo, getSleepTime, isShutdown, setCronTaskHistoryMsg, setCrontaskInstance, setDBLastSeed, setEnteredValueVector, setInterval, setIntervalFlag, setLastRunDate, setLastSeed, setSleepTime
public boolean isOKToRun(MXServerRemote server)
SimpleCronTask
isOKToRun
in interface CronTask
isOKToRun
in class SimpleCronTask
psdi.server.CronTask#isOKToRun();
public void init() throws MXException
SimpleCronTask
runAsUserInfo
.
Performs a silent login via SecurityService.init
in interface CronTask
init
in class SimpleCronTask
MXException
SecurityService.authenticateUser(String, boolean)
public void cronAction()
cronAction
in interface CronTask
cronAction
in class SimpleCronTask
public void shutdown()
shutdown
in interface CronTask
shutdown
in class SimpleCronTask
public void start()
SimpleCronTask
start
in interface CronTask
start
in class SimpleCronTask
CronTask.stop()
,
startup()
public void stop()
stop
in interface CronTask
stop
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