Class TaskerProp
-
- All Implemented Interfaces:
public class TaskerPropTinyTask Config, A taskerBean can have only one
- Since:
2022-12-09
trydofor
-
-
Constructor Summary
Constructors Constructor Description TaskerProp()
-
Method Summary
Modifier and Type Method Description booleannotTaskerApps()booleannotTaskerRuns()booleannotNoticeBean()booleannotNoticeWhen()booleannotNoticeConf()booleannotTimingZone()booleannotTimingType()booleannotTimingCron()booleannotTimingIdle()booleannotTimingRate()booleannotTimingTune()booleannotTimingMiss()booleannotResultKeep()booleanisEnabled()whether to register and execute, not use Default config. booleanisAutorun()whether to auto register and start, not use Default config. intgetVersion()config version number, higher version overrides lower one, when equals, properties override database, not use Default config. StringgetTaskerBean()Beans annotated by TinyTasker, formatted as Class#method, automatically recognized by default, not use Default config. StringgetTaskerPara()Parameters of the task, object array in json format, default null or no parameters, not use Default config. StringgetTaskerName()Task name, used for notice and log, better readability, default is `[shortClassName#method]`, not use Default config. booleanisTaskerFast()Whether it is a light task, fast execution, completed in seconds, not use Default config. StringgetTaskerApps()The app it belongs to, comma separated, use Default config if null or empty. StringgetTaskerRuns()RunMode(product|test|develop|local), `!test`,`-test` means not test, Comma separated, ignore case, default all, use Default config if null or empty. StringgetNoticeBean()Notice bean, SmallNotice type, fullpath of Class, no notice by default. StringgetNoticeWhen()Timing of notice, exec|fail|done|feed, comma separated ignoring case, default fail. use Default config if null or empty. * timing is roughly expressed: exec;try{run...;done}catch{fail} * exec - init task; done - success; fail - failed; feed - non-empty return.StringgetNoticeConf()The config name of the notice bean, automatic by default. StringgetTimingZone()timezone of scheduling , default system timezone, use Default config if null or empty. StringgetTimingType()scheduling expression type, affects how timingCron is parsed, defaults to spring cron format, use Default config if null or empty. StringgetTimingCron()Scheduling expression content, highest priority, affected by timingType, default spring cron format (second minute hour day month week), not use Default config. intgetTimingIdle()Fixed idle interval (seconds), lower priority than timingCron, equal to fixedDelay, end to start, 0 means disable, not use Default config. intgetTimingRate()Fixed frequency interval (seconds), lower priority than timingIdle, equal to fixedRate, start to start, 0 means disable, not use Default config. intgetTimingTune()execute the task before(negative) or after tune seconds, not use Default config. like Scheduled.initialDelay, but * rate - first time on this jvm * idle - first time on this jvm * cron - each timelonggetTimingMiss()Within how many seconds of a misfire, execution is required, not use Default config. * `<0` - execute as `0` if now + miss * 1000 >= 0 * `0` - execute if N0 < now <= N0 + (N1-N0) * 25% < N1 * `>0` - execute if N1 < now <= N1 + miss * 1000longgetTimingBeat()the interval seconds of heartbeat and health-check, not use Default config. it is considered as an exception if the last_exec is more than 2 heartbeats away from now. * `<0` - calculate as `0` if now + beat * 1000 >= 0 * `0` - calculate, when cron, calc next_exec from last_exec, others, max rate and idle * `>0` - fixed positive secondsStringgetDuringFrom()schedule start datetime at timingZone, in yyyy-MM-dd HH:mm:ss format, 0 means disable, not use Default config. StringgetDuringStop()schedule stop datetime at timingZone, in yyyy-MM-dd HH:mm:ss format, 0 means disable, not use Default config. intgetDuringExec()stop schedule after how many total executions, not use Default config. intgetDuringFail()stop schedule after how many consecutive failures, not use Default config. intgetDuringDone()stop schedule after how many successful executions, not use Default config. intgetDuringBoot()recount each time the app is started, and stop schedule after how many successful executions, disable by default, not use Default config. intgetResultKeep()how many days to save the execution results, default 60 days, 0 means not save, use Default configuration if null. voidsetEnabled(boolean enabled)whether to register and execute, not use Default config. voidsetAutorun(boolean autorun)whether to auto register and start, not use Default config. voidsetVersion(int version)config version number, higher version overrides lower one, when equals, properties override database, not use Default config. voidsetTaskerBean(String taskerBean)Beans annotated by TinyTasker, formatted as Class#method, automatically recognized by default, not use Default config. voidsetTaskerPara(String taskerPara)Parameters of the task, object array in json format, default null or no parameters, not use Default config. voidsetTaskerName(String taskerName)Task name, used for notice and log, better readability, default is `[shortClassName#method]`, not use Default config. voidsetTaskerFast(boolean taskerFast)Whether it is a light task, fast execution, completed in seconds, not use Default config. voidsetTaskerApps(String taskerApps)The app it belongs to, comma separated, use Default config if null or empty. voidsetTaskerRuns(String taskerRuns)RunMode(product|test|develop|local), `!test`,`-test` means not test, Comma separated, ignore case, default all, use Default config if null or empty. voidsetNoticeBean(String noticeBean)Notice bean, SmallNotice type, fullpath of Class, no notice by default. voidsetNoticeWhen(String noticeWhen)Timing of notice, exec|fail|done|feed, comma separated ignoring case, default fail. use Default config if null or empty. * timing is roughly expressed: exec;try{run...;done}catch{fail} * exec - init task; done - success; fail - failed; feed - non-empty return.voidsetNoticeConf(String noticeConf)The config name of the notice bean, automatic by default. voidsetTimingZone(String timingZone)timezone of scheduling , default system timezone, use Default config if null or empty. voidsetTimingType(String timingType)scheduling expression type, affects how timingCron is parsed, defaults to spring cron format, use Default config if null or empty. voidsetTimingCron(String timingCron)Scheduling expression content, highest priority, affected by timingType, default spring cron format (second minute hour day month week), not use Default config. voidsetTimingIdle(int timingIdle)Fixed idle interval (seconds), lower priority than timingCron, equal to fixedDelay, end to start, 0 means disable, not use Default config. voidsetTimingRate(int timingRate)Fixed frequency interval (seconds), lower priority than timingIdle, equal to fixedRate, start to start, 0 means disable, not use Default config. voidsetTimingTune(int timingTune)execute the task before(negative) or after tune seconds, not use Default config. like Scheduled.initialDelay, but * rate - first time on this jvm * idle - first time on this jvm * cron - each timevoidsetTimingMiss(long timingMiss)Within how many seconds of a misfire, execution is required, not use Default config. * `<0` - execute as `0` if now + miss * 1000 >= 0 * `0` - execute if N0 < now <= N0 + (N1-N0) * 25% < N1 * `>0` - execute if N1 < now <= N1 + miss * 1000voidsetTimingBeat(long timingBeat)the interval seconds of heartbeat and health-check, not use Default config. it is considered as an exception if the last_exec is more than 2 heartbeats away from now. * `<0` - calculate as `0` if now + beat * 1000 >= 0 * `0` - calculate, when cron, calc next_exec from last_exec, others, max rate and idle * `>0` - fixed positive secondsvoidsetDuringFrom(String duringFrom)schedule start datetime at timingZone, in yyyy-MM-dd HH:mm:ss format, 0 means disable, not use Default config. voidsetDuringStop(String duringStop)schedule stop datetime at timingZone, in yyyy-MM-dd HH:mm:ss format, 0 means disable, not use Default config. voidsetDuringExec(int duringExec)stop schedule after how many total executions, not use Default config. voidsetDuringFail(int duringFail)stop schedule after how many consecutive failures, not use Default config. voidsetDuringDone(int duringDone)stop schedule after how many successful executions, not use Default config. voidsetDuringBoot(int duringBoot)recount each time the app is started, and stop schedule after how many successful executions, disable by default, not use Default config. voidsetResultKeep(int resultKeep)how many days to save the execution results, default 60 days, 0 means not save, use Default configuration if null. booleanequals(@Nullable() Object o)inthashCode()StringtoString()-
-
Method Detail
-
notTaskerApps
boolean notTaskerApps()
-
notTaskerRuns
boolean notTaskerRuns()
-
notNoticeBean
boolean notNoticeBean()
-
notNoticeWhen
boolean notNoticeWhen()
-
notNoticeConf
boolean notNoticeConf()
-
notTimingZone
boolean notTimingZone()
-
notTimingType
boolean notTimingType()
-
notTimingCron
boolean notTimingCron()
-
notTimingIdle
boolean notTimingIdle()
-
notTimingRate
boolean notTimingRate()
-
notTimingTune
boolean notTimingTune()
-
notTimingMiss
boolean notTimingMiss()
-
notResultKeep
boolean notResultKeep()
-
isEnabled
boolean isEnabled()
whether to register and execute, not use Default config.
-
isAutorun
boolean isAutorun()
whether to auto register and start, not use Default config.
-
getVersion
int getVersion()
config version number, higher version overrides lower one, when equals, properties override database, not use Default config.
-
getTaskerBean
String getTaskerBean()
Beans annotated by TinyTasker, formatted as Class#method, automatically recognized by default, not use Default config.
-
getTaskerPara
String getTaskerPara()
Parameters of the task, object array in json format, default null or no parameters, not use Default config.
-
getTaskerName
String getTaskerName()
Task name, used for notice and log, better readability, default is `[shortClassName#method]`, not use Default config.
-
isTaskerFast
boolean isTaskerFast()
Whether it is a light task, fast execution, completed in seconds, not use Default config.
-
getTaskerApps
String getTaskerApps()
The app it belongs to, comma separated, use Default config if null or empty.
-
getTaskerRuns
String getTaskerRuns()
RunMode(product|test|develop|local), `!test`,`-test` means not test, Comma separated, ignore case, default all, use Default config if null or empty.
-
getNoticeBean
String getNoticeBean()
Notice bean, SmallNotice type, fullpath of Class, no notice by default. use Default config if null or empty.
-
getNoticeWhen
String getNoticeWhen()
Timing of notice, exec|fail|done|feed, comma separated ignoring case, default fail. use Default config if null or empty. * timing is roughly expressed: exec;try{run...;done}catch{fail} * exec - init task; done - success; fail - failed; feed - non-empty return.
-
getNoticeConf
String getNoticeConf()
The config name of the notice bean, automatic by default. use Default config if empty.
-
getTimingZone
String getTimingZone()
timezone of scheduling , default system timezone, use Default config if null or empty.
-
getTimingType
String getTimingType()
scheduling expression type, affects how timingCron is parsed, defaults to spring cron format, use Default config if null or empty.
-
getTimingCron
String getTimingCron()
Scheduling expression content, highest priority, affected by timingType, default spring cron format (second minute hour day month week), not use Default config.
-
getTimingIdle
int getTimingIdle()
Fixed idle interval (seconds), lower priority than timingCron, equal to fixedDelay, end to start, 0 means disable, not use Default config.
-
getTimingRate
int getTimingRate()
Fixed frequency interval (seconds), lower priority than timingIdle, equal to fixedRate, start to start, 0 means disable, not use Default config.
-
getTimingTune
int getTimingTune()
execute the task before(negative) or after tune seconds, not use Default config. like Scheduled.initialDelay, but * rate - first time on this jvm * idle - first time on this jvm * cron - each time
-
getTimingMiss
long getTimingMiss()
Within how many seconds of a misfire, execution is required, not use Default config. * `<0` - execute as `0` if now + miss * 1000 >= 0 * `0` - execute if N0 < now <= N0 + (N1-N0) * 25% < N1 * `>0` - execute if N1 < now <= N1 + miss * 1000
-
getTimingBeat
long getTimingBeat()
the interval seconds of heartbeat and health-check, not use Default config. it is considered as an exception if the last_exec is more than 2 heartbeats away from now. * `<0` - calculate as `0` if now + beat * 1000 >= 0 * `0` - calculate, when cron, calc next_exec from last_exec, others, max rate and idle * `>0` - fixed positive seconds
-
getDuringFrom
String getDuringFrom()
schedule start datetime at timingZone, in yyyy-MM-dd HH:mm:ss format, 0 means disable, not use Default config.
-
getDuringStop
String getDuringStop()
schedule stop datetime at timingZone, in yyyy-MM-dd HH:mm:ss format, 0 means disable, not use Default config.
-
getDuringExec
int getDuringExec()
stop schedule after how many total executions, not use Default config.
-
getDuringFail
int getDuringFail()
stop schedule after how many consecutive failures, not use Default config.
-
getDuringDone
int getDuringDone()
stop schedule after how many successful executions, not use Default config.
-
getDuringBoot
int getDuringBoot()
recount each time the app is started, and stop schedule after how many successful executions, disable by default, not use Default config.
-
getResultKeep
int getResultKeep()
how many days to save the execution results, default 60 days, 0 means not save, use Default configuration if null.
-
setEnabled
void setEnabled(boolean enabled)
whether to register and execute, not use Default config.
-
setAutorun
void setAutorun(boolean autorun)
whether to auto register and start, not use Default config.
-
setVersion
void setVersion(int version)
config version number, higher version overrides lower one, when equals, properties override database, not use Default config.
-
setTaskerBean
void setTaskerBean(String taskerBean)
Beans annotated by TinyTasker, formatted as Class#method, automatically recognized by default, not use Default config.
-
setTaskerPara
void setTaskerPara(String taskerPara)
Parameters of the task, object array in json format, default null or no parameters, not use Default config.
-
setTaskerName
void setTaskerName(String taskerName)
Task name, used for notice and log, better readability, default is `[shortClassName#method]`, not use Default config.
-
setTaskerFast
void setTaskerFast(boolean taskerFast)
Whether it is a light task, fast execution, completed in seconds, not use Default config.
-
setTaskerApps
void setTaskerApps(String taskerApps)
The app it belongs to, comma separated, use Default config if null or empty.
-
setTaskerRuns
void setTaskerRuns(String taskerRuns)
RunMode(product|test|develop|local), `!test`,`-test` means not test, Comma separated, ignore case, default all, use Default config if null or empty.
-
setNoticeBean
void setNoticeBean(String noticeBean)
Notice bean, SmallNotice type, fullpath of Class, no notice by default. use Default config if null or empty.
-
setNoticeWhen
void setNoticeWhen(String noticeWhen)
Timing of notice, exec|fail|done|feed, comma separated ignoring case, default fail. use Default config if null or empty. * timing is roughly expressed: exec;try{run...;done}catch{fail} * exec - init task; done - success; fail - failed; feed - non-empty return.
-
setNoticeConf
void setNoticeConf(String noticeConf)
The config name of the notice bean, automatic by default. use Default config if empty.
-
setTimingZone
void setTimingZone(String timingZone)
timezone of scheduling , default system timezone, use Default config if null or empty.
-
setTimingType
void setTimingType(String timingType)
scheduling expression type, affects how timingCron is parsed, defaults to spring cron format, use Default config if null or empty.
-
setTimingCron
void setTimingCron(String timingCron)
Scheduling expression content, highest priority, affected by timingType, default spring cron format (second minute hour day month week), not use Default config.
-
setTimingIdle
void setTimingIdle(int timingIdle)
Fixed idle interval (seconds), lower priority than timingCron, equal to fixedDelay, end to start, 0 means disable, not use Default config.
-
setTimingRate
void setTimingRate(int timingRate)
Fixed frequency interval (seconds), lower priority than timingIdle, equal to fixedRate, start to start, 0 means disable, not use Default config.
-
setTimingTune
void setTimingTune(int timingTune)
execute the task before(negative) or after tune seconds, not use Default config. like Scheduled.initialDelay, but * rate - first time on this jvm * idle - first time on this jvm * cron - each time
-
setTimingMiss
void setTimingMiss(long timingMiss)
Within how many seconds of a misfire, execution is required, not use Default config. * `<0` - execute as `0` if now + miss * 1000 >= 0 * `0` - execute if N0 < now <= N0 + (N1-N0) * 25% < N1 * `>0` - execute if N1 < now <= N1 + miss * 1000
-
setTimingBeat
void setTimingBeat(long timingBeat)
the interval seconds of heartbeat and health-check, not use Default config. it is considered as an exception if the last_exec is more than 2 heartbeats away from now. * `<0` - calculate as `0` if now + beat * 1000 >= 0 * `0` - calculate, when cron, calc next_exec from last_exec, others, max rate and idle * `>0` - fixed positive seconds
-
setDuringFrom
void setDuringFrom(String duringFrom)
schedule start datetime at timingZone, in yyyy-MM-dd HH:mm:ss format, 0 means disable, not use Default config.
-
setDuringStop
void setDuringStop(String duringStop)
schedule stop datetime at timingZone, in yyyy-MM-dd HH:mm:ss format, 0 means disable, not use Default config.
-
setDuringExec
void setDuringExec(int duringExec)
stop schedule after how many total executions, not use Default config.
-
setDuringFail
void setDuringFail(int duringFail)
stop schedule after how many consecutive failures, not use Default config.
-
setDuringDone
void setDuringDone(int duringDone)
stop schedule after how many successful executions, not use Default config.
-
setDuringBoot
void setDuringBoot(int duringBoot)
recount each time the app is started, and stop schedule after how many successful executions, disable by default, not use Default config.
-
setResultKeep
void setResultKeep(int resultKeep)
how many days to save the execution results, default 60 days, 0 means not save, use Default configuration if null.
-
hashCode
int hashCode()
-
-
-
-