hujunzhong commented on issue #787:
URL: 
https://github.com/apache/shardingsphere-elasticjob-lite/issues/787#issuecomment-645797694


                ZookeeperConfiguration zkConfig = new 
ZookeeperConfiguration(zkAddress, "elastic-job-price_source");
           String jobName = "test";
           CoordinatorRegistryCenter regCenter = new 
ZookeeperRegistryCenter(zkConfig);
           regCenter.init();
           JobCoreConfiguration simpleCoreConfig = 
JobCoreConfiguration.newBuilder(jobName, "0/1 * * * * ?", 1).build();
           SimpleJobConfiguration simpleJobConfig = new 
SimpleJobConfiguration(simpleCoreConfig, TestJob.class.getCanonicalName());
           LiteJobConfiguration planJobConfig = 
LiteJobConfiguration.newBuilder(simpleJobConfig).overwrite(true).build();
           JobScheduler job = new JobScheduler(regCenter, planJobConfig);
           job.init();
                job.getSchedulerFacade().shutdownInstance();


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to