You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/06/18 06:04:24 UTC

[GitHub] [shardingsphere-elasticjob-lite] hujunzhong commented on issue #787: shutdownInstance空指针

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:
users@infra.apache.org