public interface CronTask
psdi.server.CronService
Modifier and Type | Method and Description |
---|---|
void |
beforeRemoval()
Method to implement when there are actions involved when the crontask instance is about to be removed
by the crontask manager when the crontask instance is auto removal and it is time to remove it.
|
void |
cronAction()
This is the "main" method of the CronTask interface.
|
java.lang.String |
getCronTaskHistoryMsg()
Get message to be written to crontaskhistory.
|
CrontaskInstanceRemote |
getCrontaskInstance()
This method will return the Crontask instance associated with this
crontask object.
|
int |
getDBLastSeed()
Gets the last seed for the server for a task in database
|
java.util.Vector |
getEnteredValueVector()
Gets the vector containg individual time values
|
java.util.Date |
getLastRunDate()
Gets the last Run Time for a task in database
|
int |
getLastSeed()
Gets the last seed for the server for a task
|
CrontaskParamInfo[] |
getParameters()
This method provides an array of CrontaskParamInfo() object to describe
all the parameters of the crontask.
|
MboRemote |
getParameterValidationMbo(CrontaskInstanceRemote instance)
The non-persistent MBO returned by this method will be used to validate the
value for the parameter of the crontask instance.
|
long |
getSleepTime()
Gets the time for the server to sleep before the next task
|
void |
init()
Called the very first time when the crontask instance is loaded by
Crontask manager.
|
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.
|
boolean |
isShutdown()
Responds back with true indicating the CronTask has done
any last minute processing it needs to do; or false if
it hasn't.
|
void |
setCronTaskHistoryMsg(java.lang.String val)
Set message to be written to CronTaskHistory.
|
void |
setCrontaskInstance(CrontaskInstanceRemote inst)
This method will be called by the crontask manager to tell the crontask object
which CrontaskInstanceRemote object it is instantiated for.
|
void |
setDBLastSeed(int seed)
Sets the last seed for the server for a task in database
|
void |
setEnteredValueVector(java.util.Vector v)
Sets the vector containg invidual time values
|
void |
setLastRunDate(java.util.Date d)
Sets the last Run Time for a task in database
|
void |
setLastSeed(int seed)
Sets the last seed for the server for a task
|
void |
setSleepTime(long time)
Sets the time for the server to sleep before the next task
|
void |
shutdown()
Called when the CronService is being shut down.
|
void |
start()
Called only when the crontask instance is first loaded and active
or when it is reloaded and active.
|
void |
stop()
Called when an active crontask instance is interupted by a reload request,
or when the contask manager is shutting down.
|
long getSleepTime()
void setSleepTime(long time)
void setLastSeed(int seed)
int getLastSeed()
void setDBLastSeed(int seed)
int getDBLastSeed()
void setLastRunDate(java.util.Date d)
java.util.Date getLastRunDate()
void setEnteredValueVector(java.util.Vector v)
java.util.Vector getEnteredValueVector()
void setCronTaskHistoryMsg(java.lang.String val)
java.lang.String getCronTaskHistoryMsg()
setCronTaskHistoryMsg(java.lang.String)
void start()
stop()
,
startup()
void init() throws MXException
MXException
void stop()
void cronAction()
void shutdown()
boolean isShutdown()
MboRemote getParameterValidationMbo(CrontaskInstanceRemote instance) throws MXException, java.rmi.RemoteException
instance
- MXException
java.rmi.RemoteException
CrontaskParamInfo[] getParameters() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
CrontaskParamInfo
boolean isOKToRun(MXServerRemote server)
server
- void setCrontaskInstance(CrontaskInstanceRemote inst)
inst
- CrontaskInstanceRemote getCrontaskInstance()
void beforeRemoval() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException