Class RuleAlteredJobSchedulerCenter

java.lang.Object
org.apache.shardingsphere.data.pipeline.scenario.rulealtered.RuleAlteredJobSchedulerCenter

public final class RuleAlteredJobSchedulerCenter extends Object
Rule altered job scheduler center.
  • Constructor Details

    • RuleAlteredJobSchedulerCenter

      public RuleAlteredJobSchedulerCenter()
  • Method Details

    • start

      public static void start(RuleAlteredJobContext jobContext)
      Start a job.
      Parameters:
      jobContext - job context
    • existJob

      public static boolean existJob(String jobId)
      Check whether the same job exists.
      Parameters:
      jobId - job id
      Returns:
      exist then true else false
    • updateJobStatus

      public static void updateJobStatus(String jobId, JobStatus jobStatus)
      Update job status for all job sharding.
      Parameters:
      jobId - job id
      jobStatus - job status