java.lang.Object
org.apache.shardingsphere.elasticjob.lite.lifecycle.internal.operate.JobOperateAPIImpl
All Implemented Interfaces:
JobOperateAPI

public final class JobOperateAPIImpl extends Object implements JobOperateAPI
Job operate API implementation class.
  • Constructor Details

    • JobOperateAPIImpl

      public JobOperateAPIImpl(org.apache.shardingsphere.elasticjob.reg.base.CoordinatorRegistryCenter regCenter)
  • Method Details

    • trigger

      public void trigger(String jobName)
      Description copied from interface: JobOperateAPI
      Trigger job to run at once.

      Job will not start until it does not conflict with the last running job, and this tag will be automatically cleaned up after it starts.

      Specified by:
      trigger in interface JobOperateAPI
      Parameters:
      jobName - job name
    • disable

      public void disable(String jobName, String serverIp)
      Description copied from interface: JobOperateAPI
      Disable job.

      Will cause resharding.

      Specified by:
      disable in interface JobOperateAPI
      Parameters:
      jobName - job name
      serverIp - server IP address
    • enable

      public void enable(String jobName, String serverIp)
      Description copied from interface: JobOperateAPI
      Enable job.
      Specified by:
      enable in interface JobOperateAPI
      Parameters:
      jobName - job name
      serverIp - server IP address
    • shutdown

      public void shutdown(String jobName, String serverIp)
      Description copied from interface: JobOperateAPI
      Shutdown Job.
      Specified by:
      shutdown in interface JobOperateAPI
      Parameters:
      jobName - job name
      serverIp - server IP address
    • remove

      public void remove(String jobName, String serverIp)
      Description copied from interface: JobOperateAPI
      Remove job.
      Specified by:
      remove in interface JobOperateAPI
      Parameters:
      jobName - job name
      serverIp - server IP address