@kangwg
2017-05-26T17:12:32.000000Z
字数 2101
阅读 905
{
"code": 0,
"data": [
{
"jobName": "e80f0e724d144e44a99382a4bec7c561",
"jobGroup": "dispatch",
"jobClassName": "cn.langya.longjing.job.DisPatchPackageJob",
"dataMap": {
"code": "123",
"packageId": "150",
"time": "1493882284310",
"url": "https://st.orangelife.com.cn/package/2941db944fe548b5af72e4022b500e08.zip"
},
"description": "https://st.orangelife.com.cn/package/2941db944fe548b5af72e4022b500e08.zip,123",
"triggerList": []
},
{
"jobName": "dispatchPackage",
"jobGroup": "dispatchPackage",
"jobClassName": "cn.langya.longjing.job.CreatePackgeJob",
"dataMap": {},
"description": "这是第三个测试",
"triggerList": [
{
"cronExpression": "0/30 * * * * ?",
"triggerGroup": "dispatchPackage",
"triggerState": "NORMAL",
"triggerName": "dispatchPackage"
}
]
}
]
}
其中:triggerState的值意义:BLOCKED 4 // 运行 COMPLETE 2 //完成 ERROR 3 // 错误 NONE -1 //未知 NORMAL 0 //正常无任务,用这个判断Job是否在运行 PAUSED 1 //暂停
{
"jobName": "dispatchInstanceJob",
"jobGroup": "dispatch",
"jobClassName": " cn.langya.longjing.job.DispatchInstanceJob",
"dataMap": {
"key1": "value1",
"key2": "value2"
},
"description": "这是第三个测试",
"triggerList": [
{
"cronExpression": "0/30 * * * * ?",
"triggerGroup": "dispatch",
"triggerName": "test3"
},
{
"cronExpression": "0/30 * * * * ?",
"triggerGroup": "dispatch",
"triggerName": "test3"
}
]
}
接口:Scheduler/createJob出参excute:true/false
9. 提供"增加触发器"按钮:选中一条数据提供三个输入框
入参:{"jobName":"","jobGroup":"","cronExpression":"","triggerGroup":"","triggerName":""}接口:Scheduler/addJobTime 出参excute:true/false
10. 提供"修改触发器"按钮: 选中"triggerList"这个集合中的一条数据,输入框输入"cronExpression"的值,入参:{"cronExpression":"","triggerGroup":"","triggerName":""},接口:Scheduler/modifyJobTime 出参excute:true/false