Class RuleAlteredJobSchedulerCenter
java.lang.Object
org.apache.shardingsphere.data.pipeline.scenario.rulealtered.RuleAlteredJobSchedulerCenter
Rule altered job scheduler center.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanCheck whether the same job exists.static voidstart(RuleAlteredJobContext jobContext) Start a job.static voidupdateJobStatus(String jobId, JobStatus jobStatus) Update job status for all job sharding.
-
Constructor Details
-
RuleAlteredJobSchedulerCenter
public RuleAlteredJobSchedulerCenter()
-
-
Method Details
-
start
Start a job.- Parameters:
jobContext- job context
-
existJob
Check whether the same job exists.- Parameters:
jobId- job id- Returns:
- exist then true else false
-
updateJobStatus
Update job status for all job sharding.- Parameters:
jobId- job idjobStatus- job status
-