Back to Shardingsphere Elasticjob

Java Api.En

docs/content/user-manual/configuration/java-api.en.md

3.0.52.3 KB
Original Source

+++ title = "Java API" weight = 1 chapter = true +++

Registry Center Configuration

The component which is used to register and coordinate the distributed behavior of jobs, currently only supports ZooKeeper.

Class name: org.apache.shardingsphere.elasticjob.reg.zookeeper.ZookeeperConfiguration

Configuration:

NameConstructor injection
serverListsYes
namespaceYes
baseSleepTimeMillisecondsNo
maxSleepTimeMillisecondsNo
maxRetriesNo
sessionTimeoutMillisecondsNo
connectionTimeoutMillisecondsNo
digestNo

Job Configuration

Class name: org.apache.shardingsphere.elasticjob.api.JobConfiguration

Configuration:

NameConstructor injection
jobNameYes
shardingTotalCountYes
cronNo
timeZoneNo
shardingItemParametersNo
jobParameterNo
monitorExecutionNo
failoverNo
misfireNo
maxTimeDiffSecondsNo
reconcileIntervalMinutesNo
jobShardingStrategyTypeNo
jobExecutorThreadPoolSizeProviderNo
jobErrorHandlerTypeNo
jobListenerTypesNo
descriptionNo
propsNo
disabledNo
overwriteNo