You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2020/06/28 16:49:41 UTC

[shardingsphere-elasticjob-lite] branch master updated: Update for README (#858) (#859)

This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere-elasticjob-lite.git


The following commit(s) were added to refs/heads/master by this push:
     new 9f5d725  Update for README (#858) (#859)
9f5d725 is described below

commit 9f5d725c164a0e0ef65c6ee1bfaa113b6fae09a1
Author: Tboy <gu...@immomo.com>
AuthorDate: Mon Jun 29 00:49:32 2020 +0800

    Update for README (#858) (#859)
---
 README.md    | 9 ++++++---
 README_ZH.md | 9 ++++++---
 2 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md
index 7be1e6b..877bd32 100644
--- a/README.md
+++ b/README.md
@@ -105,9 +105,12 @@ public class MyElasticJob implements SimpleJob {
                         http://elasticjob.shardingsphere.apache.org/schema/job/job.xsd
                         ">
     <!--configure registry center -->
-    <reg:zookeeper id="regCenter" server-lists="yourhost:2181" namespace="dd-job" base-sleep-time-milliseconds="1000" max-sleep-time-milliseconds="3000" max-retries="3" />
-
+    <reg:zookeeper id="regCenter" server-lists="yourhost:2181" namespace="elastic-job" base-sleep-time-milliseconds="1000" max-sleep-time-milliseconds="3000" max-retries="3" />
+    
+    <!--configure job class -->
+    <bean id="simpleJob" class="xxx.MyElasticJob" />
+    
     <!--configure job -->
-    <job:simple id="myElasticJob" class="xxx.MyElasticJob" registry-center-ref="regCenter" cron="0/10 * * * * ?"   sharding-total-count="3" sharding-item-parameters="0=A,1=B,2=C" />
+    <job:simple id="oneOffElasticJob" job-ref="simpleJob" registry-center-ref="regCenter" cron="0/10 * * * * ?"   sharding-total-count="3" sharding-item-parameters="0=A,1=B,2=C" />
 </beans>
 ```
diff --git a/README_ZH.md b/README_ZH.md
index ec714be..5df3882 100644
--- a/README_ZH.md
+++ b/README_ZH.md
@@ -97,9 +97,12 @@ public class MyElasticJob implements SimpleJob {
                         http://elasticjob.shardingsphere.apache.org/schema/job/job.xsd
                         ">
     <!--配置作业注册中心 -->
-    <reg:zookeeper id="regCenter" server-lists="yourhost:2181" namespace="dd-job" base-sleep-time-milliseconds="1000" max-sleep-time-milliseconds="3000" max-retries="3" />
+    <reg:zookeeper id="regCenter" server-lists="yourhost:2181" namespace="elastic-job" base-sleep-time-milliseconds="1000" max-sleep-time-milliseconds="3000" max-retries="3" />
     
-    <!-- 配置作业-->
-    <job:simple id="oneOffElasticJob" class="xxx.MyElasticJob" registry-center-ref="regCenter" cron="0/10 * * * * ?" sharding-total-count="3" sharding-item-parameters="0=A,1=B,2=C" />
+    <!--配置作业类 -->
+    <bean id="simpleJob" class="xxx.MyElasticJob" />
+    
+    <!--配置作业 -->
+    <job:simple id="oneOffElasticJob" job-ref="simpleJob" registry-center-ref="regCenter" cron="0/10 * * * * ?" sharding-total-count="3" sharding-item-parameters="0=A,1=B,2=C" />
 </beans>
 ```