之前文章介绍过统一对象消息编程详解——定时任务模块的命令行控制台 ,现在进行了改进,更方便的可以查看任务,包括任务状态,状态变化时间、上次执行时间、下次执行时间、执行次数。
list
/**** task list***/
1. taskid: pcboy_play status: stoping(2019-02-02 22:03:13) lastexec:2019-02-02 22:03:10 nextexec:2019-02-02 22:03:20 execTimes:5
2. taskid: pcboy_eat status: shutdown(2019-02-02 22:02:27) lastexec:2019-02-02 22:02:22 execTimes:1
3. taskid: pcboy_sleep status: stoping(2019-02-02 22:03:13) lastexec: nextexec:2019-02-16 21:06:00 execTimes:0
--nextexec only for cron express type
2019-02-02 22??17,935 (TLLog.java:159) INFO moduleForLog: monitorConfig Tag:runing Content:监听模块工作中。。。。
shutdown all
2019-02-02 22??25,296 (TLLog.java:162) WARN moduleForLog: myTaskManger Tag:shutdown Content:taskid:pcboy_play shutdown
2019-02-02 22??25,297 (TLLog.java:162) WARN moduleForLog: myTaskManger Tag:shutdown Content:taskid:pcboy_sleep shutdown
lsit
no cmd: lsit
list
/**** task list***/
1. taskid: pcboy_play status: shutdown(2019-02-02 22:03:25) lastexec:2019-02-02 22:03:10 execTimes:5
2. taskid: pcboy_eat status: shutdown(2019-02-02 22:02:27) lastexec:2019-02-02 22:02:22 execTimes:1
3. taskid: pcboy_sleep status: shutdown(2019-02-02 22:03:25) lastexec: execTimes:0
--nextexec only for cron express type