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/07/23 16:20:24 UTC

[shardingsphere-elasticjob] branch master updated: Add Spring Boot Configuration Metadata (#1264)

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.git


The following commit(s) were added to refs/heads/master by this push:
     new 60b87c0  Add Spring Boot Configuration Metadata (#1264)
60b87c0 is described below

commit 60b87c0f786674497d26012dc9737c3684284d1d
Author: 吴伟杰 <ro...@me.com>
AuthorDate: Fri Jul 24 00:20:14 2020 +0800

    Add Spring Boot Configuration Metadata (#1264)
---
 .../additional-spring-configuration-metadata.json  | 124 +++++++++++++++++++++
 .../src/main/resources/META-INF/spring.provides    |  18 +++
 2 files changed, 142 insertions(+)

diff --git a/elasticjob-lite/elasticjob-lite-spring/elasticjob-lite-spring-boot-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json b/elasticjob-lite/elasticjob-lite-spring/elasticjob-lite-spring-boot-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json
new file mode 100644
index 0000000..9469e91
--- /dev/null
+++ b/elasticjob-lite/elasticjob-lite-spring/elasticjob-lite-spring-boot-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json
@@ -0,0 +1,124 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+{
+  "groups": [
+    {
+      "name": "elasticjob.reg-center",
+      "type": "org.apache.shardingsphere.elasticjob.lite.spring.boot.reg.ZookeeperProperties",
+      "description": "Registry Center configurations."
+    },
+    {
+      "name": "elasticjob.tracing",
+      "type": "org.apache.shardingsphere.elasticjob.lite.spring.boot.reg.ZookeeperProperties",
+      "description": "Event Trace configurations."
+    }
+  ],
+  "properties": [
+    {
+      "name": "elasticjob.reg-center.server-lists",
+      "type": "java.lang.String",
+      "description": "Include IP addresses and ports. Multiple IP address split by comma.",
+      "sourceType": "org.apache.shardingsphere.elasticjob.lite.spring.boot.reg.ZookeeperProperties"
+    },
+    {
+      "name": "elasticjob.reg-center.namespace",
+      "type": "java.lang.String",
+      "description": "Namespace.",
+      "sourceType": "org.apache.shardingsphere.elasticjob.lite.spring.boot.reg.ZookeeperProperties"
+    },
+    {
+      "name": "elasticjob.reg-center.base-sleep-time-milliseconds",
+      "type": "java.lang.Integer",
+      "defaultValue": 1000,
+      "description": "Base sleep time milliseconds.",
+      "sourceType": "org.apache.shardingsphere.elasticjob.lite.spring.boot.reg.ZookeeperProperties"
+    },
+    {
+      "name": "elasticjob.reg-center.max-sleep-time-milliseconds",
+      "type": "java.lang.Integer",
+      "defaultValue": 3000,
+      "description": "Max sleep time milliseconds.",
+      "sourceType": "org.apache.shardingsphere.elasticjob.lite.spring.boot.reg.ZookeeperProperties"
+    },
+    {
+      "name": "elasticjob.reg-center.max-retries",
+      "type": "java.lang.Integer",
+      "defaultValue": 3,
+      "description": "Max retry times.",
+      "sourceType": "org.apache.shardingsphere.elasticjob.lite.spring.boot.reg.ZookeeperProperties"
+    },
+    {
+      "name": "elasticjob.reg-center.session-timeout-milliseconds",
+      "type": "java.lang.Integer",
+      "description": "Session timeout milliseconds.",
+      "sourceType": "org.apache.shardingsphere.elasticjob.lite.spring.boot.reg.ZookeeperProperties"
+    },
+    {
+      "name": "elasticjob.reg-center.connection-timeout-milliseconds",
+      "type": "java.lang.Integer",
+      "description": "Connection timeout milliseconds.",
+      "sourceType": "org.apache.shardingsphere.elasticjob.lite.spring.boot.reg.ZookeeperProperties"
+    },
+    {
+      "name": "elasticjob.reg-center.digest",
+      "type": "java.lang.String",
+      "description": "Zookeeper digest.",
+      "sourceType": "org.apache.shardingsphere.elasticjob.lite.spring.boot.reg.ZookeeperProperties"
+    },
+    {
+      "name": "elasticjob.tracing.type",
+      "type": "java.lang.String",
+      "description": "Type of Event Trace storage."
+    },
+    {
+      "name": "elasticjob.jobs",
+      "type": "java.util.Map<java.lang.String,org.apache.shardingsphere.elasticjob.lite.spring.boot.job.ElasticJobConfigurationProperties>"
+    }
+  ],
+  "hints": [
+    {
+      "name": "elasticjob.tracing.type",
+      "values": [
+        {
+          "value": "RDB",
+          "description": "Using JDBC DataSource for Event Trace."
+        }
+      ]
+    },
+    {
+      "name": "elasticjob.jobs.keys",
+      "values": [
+        {
+          "value": "simpleJob"
+        }
+      ]
+    },
+    {
+      "name": "elasticjob.jobs.values",
+      "values": [],
+      "providers": [
+        {
+          "name": "class-reference",
+          "parameters": {
+            "target": "org.apache.shardingsphere.elasticjob.lite.spring.boot.job.ElasticJobConfigurationProperties"
+          }
+        }
+      ]
+    }
+  ]
+}
diff --git a/elasticjob-lite/elasticjob-lite-spring/elasticjob-lite-spring-boot-starter/src/main/resources/META-INF/spring.provides b/elasticjob-lite/elasticjob-lite-spring/elasticjob-lite-spring-boot-starter/src/main/resources/META-INF/spring.provides
new file mode 100644
index 0000000..d5f5ef5
--- /dev/null
+++ b/elasticjob-lite/elasticjob-lite-spring/elasticjob-lite-spring-boot-starter/src/main/resources/META-INF/spring.provides
@@ -0,0 +1,18 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+provides: elasticjob-lite-spring-boot-starter