Class SnailJobOpenApi
java.lang.Object
com.aizuda.snailjob.client.job.core.openapi.SnailJobOpenApi
- Since:
- sj_1.1.0
- Author:
- opensnail
-
Method Summary
Modifier and TypeMethodDescriptionstatic BroadcastAddHandler添加广播定时任务static ClusterAddHandler添加集群定时任务static MapAddHandler添加Map定时任务static MapReduceAddHandler添加MapReduce定时任务static ShardingAddHandler添加固定分片定时任务static DeleteJobHandler删除任务static DeleteWorkflowHandlerdeleteWorkflow(Set<Long> toDeleteIds) 删除工作流任务static RequestQueryJobBatchHandlergetJobBatchDetail(Long jobBatchId) 获取任务批次详情static RequestQueryHandlergetJobDetail(Long jobId) 获取定时任务详情getWorkflowBatchDetail(Long workflowBatchId) 获取工作流任务批次详情static BroadcastTriggerHandlertriggerBroadcastJob(Long jobId) 手动触发广播定时任务static ClusterTriggerHandlertriggerClusterJob(Long jobId) 手动触发集群定时任务static MapTriggerHandlertriggerMapJob(Long jobId) 手动触发Map定时任务static MapReduceTriggerHandlertriggerMapReduceJob(Long jobId) 手动触发MapReduce定时任务static ShardingTriggerHandlertriggerShardingJob(Long jobId) 手动触发静态分片定时任务static TriggerWorkflowHandlertriggerWorkFlow(Long id) 手动触发工作流任务static BroadcastUpdateHandlerupdateBroadcastJob(Long jobId) 更新广播定时任务static ClusterUpdateHandlerupdateClusterJob(Long jobId) 更新集群定时任务static UpdateJobStatusHandlerupdateJobStatus(Long jobId) 更新定时任务状态static MapUpdateHandlerupdateMapJob(Long jobId) 更新Map定时任务static MapReduceUpdateHandlerupdateMapReduceJob(Long jobId) 更新MapReduce定时任务static ShardingUpdateHandlerupdateShardingJob(Long jobId) 更新静态分片定时任务static UpdateWorkflowStatusHandlerupdateWorkFlowStatus(Long workFlowId) 更新工作流任务状态
-
Method Details
-
addClusterJob
添加集群定时任务- Returns:
ClusterAddHandler
-
addBroadcastJob
添加广播定时任务- Returns:
BroadcastAddHandler
-
addShardingJob
添加固定分片定时任务- Returns:
ShardingAddHandler
-
addMapJob
添加Map定时任务- Returns:
MapAddHandler
-
addMapReduceJob
添加MapReduce定时任务- Returns:
MapReduceAddHandler
-
updateBroadcastJob
更新广播定时任务- Parameters:
jobId- 定时任务ID- Returns:
BroadcastUpdateHandler
-
updateClusterJob
更新集群定时任务- Parameters:
jobId- 定时任务ID- Returns:
ClusterUpdateHandler
-
updateMapReduceJob
更新MapReduce定时任务- Parameters:
jobId- 定时任务ID- Returns:
MapReduceUpdateHandler
-
updateMapJob
更新Map定时任务- Parameters:
jobId- 定时任务ID- Returns:
MapUpdateHandler
-
updateShardingJob
更新静态分片定时任务- Parameters:
jobId- 定时任务ID- Returns:
ShardingUpdateHandler
-
getJobDetail
获取定时任务详情- Parameters:
jobId- 定时任务ID- Returns:
RequestQueryHandler
-
getJobBatchDetail
获取任务批次详情- Parameters:
jobBatchId- 任务批次 ID- Returns:
RequestQueryJobBatchHandler
-
getWorkflowBatchDetail
获取工作流任务批次详情- Parameters:
workflowBatchId- 工作流任务批次 ID- Returns:
RequestQueryWorkflowBatchHandler
-
triggerBroadcastJob
手动触发广播定时任务- Parameters:
jobId- 定时任务ID- Returns:
BroadcastTriggerHandler
-
triggerClusterJob
手动触发集群定时任务- Parameters:
jobId- 定时任务ID- Returns:
ClusterTriggerHandler
-
triggerMapReduceJob
手动触发MapReduce定时任务- Parameters:
jobId- 定时任务ID- Returns:
MapReduceTriggerHandler
-
triggerMapJob
手动触发Map定时任务- Parameters:
jobId- 定时任务ID- Returns:
MapTriggerHandler
-
triggerShardingJob
手动触发静态分片定时任务- Parameters:
jobId- 定时任务ID- Returns:
ShardingTriggerHandler
-
triggerWorkFlow
手动触发工作流任务- Parameters:
id- 工作流任务ID- Returns:
TriggerWorkflowHandler
-
updateJobStatus
更新定时任务状态- Parameters:
jobId- 任务ID- Returns:
UpdateJobStatusHandler
-
updateWorkFlowStatus
更新工作流任务状态- Parameters:
workFlowId- 工作流ID- Returns:
UpdateJobStatusHandler
-
deleteJob
删除任务- Parameters:
toDeleteIds- 待删除任务IDS- Returns:
DeleteJobHandler
-
deleteWorkflow
删除工作流任务- Parameters:
toDeleteIds- 待删除工作流任务IDS- Returns:
DeleteWorkflowHandler
-