Class JobOperateAPIImpl
java.lang.Object
org.apache.shardingsphere.elasticjob.lite.lifecycle.internal.operate.JobOperateAPIImpl
- All Implemented Interfaces:
JobOperateAPI
Job operate API implementation class.
-
Constructor Summary
ConstructorsConstructorDescriptionJobOperateAPIImpl(org.apache.shardingsphere.elasticjob.reg.base.CoordinatorRegistryCenter regCenter) -
Method Summary
Modifier and TypeMethodDescriptionvoidDisable job.voidEnable job.voidRemove job.voidShutdown Job.voidTrigger job to run at once.
-
Constructor Details
-
JobOperateAPIImpl
public JobOperateAPIImpl(org.apache.shardingsphere.elasticjob.reg.base.CoordinatorRegistryCenter regCenter)
-
-
Method Details
-
trigger
Description copied from interface:JobOperateAPITrigger 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:
triggerin interfaceJobOperateAPI- Parameters:
jobName- job name
-
disable
Description copied from interface:JobOperateAPIDisable job.Will cause resharding.
- Specified by:
disablein interfaceJobOperateAPI- Parameters:
jobName- job nameserverIp- server IP address
-
enable
Description copied from interface:JobOperateAPIEnable job.- Specified by:
enablein interfaceJobOperateAPI- Parameters:
jobName- job nameserverIp- server IP address
-
shutdown
Description copied from interface:JobOperateAPIShutdown Job.- Specified by:
shutdownin interfaceJobOperateAPI- Parameters:
jobName- job nameserverIp- server IP address
-
remove
Description copied from interface:JobOperateAPIRemove job.- Specified by:
removein interfaceJobOperateAPI- Parameters:
jobName- job nameserverIp- server IP address
-