Skip to content

Commit

Permalink
Refactor elasticjob-spring module
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Oct 15, 2023
1 parent 99f87a3 commit cf74040
Show file tree
Hide file tree
Showing 135 changed files with 238 additions and 238 deletions.
4 changes: 2 additions & 2 deletions distribution/bin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@
</dependency>
<dependency>
<groupId>org.apache.shardingsphere.elasticjob</groupId>
<artifactId>elasticjob-engine-spring-namespace</artifactId>
<artifactId>elasticjob-spring-namespace</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.shardingsphere.elasticjob</groupId>
<artifactId>elasticjob-engine-spring-boot-starter</artifactId>
<artifactId>elasticjob-spring-boot-starter</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ weight = 2
chapter = true
+++

使用 Spring-boot 需在 pom.xml 文件中添加 elasticjob-engine-spring-boot-starter 模块的依赖。
使用 Spring-boot 需在 pom.xml 文件中添加 elasticjob-spring-boot-starter 模块的依赖。

```xml
<dependency>
<groupId>org.apache.shardingsphere.elasticjob</groupId>
<artifactId>elasticjob-engine-spring-boot-starter</artifactId>
<artifactId>elasticjob-spring-boot-starter</artifactId>
<version>${latest.release.version}</version>
</dependency>
```
Expand Down Expand Up @@ -38,12 +38,12 @@ chapter = true
elasticjob:
regCenter:
serverLists: localhost:6181
namespace: elasticjob-engine-springboot
namespace: elasticjob-springboot
```
**Properties**
```
elasticjob.reg-center.namespace=elasticjob-engine-springboot
elasticjob.reg-center.namespace=elasticjob-springboot
elasticjob.reg-center.server-lists=localhost:6181
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ weight = 2
chapter = true
+++

To use the Spring boot, user need to add the dependency of the `elasticjob-engine-spring-boot-starter` module in the `pom.xml` file.
To use the Spring boot, user need to add the dependency of the `elasticjob-spring-boot-starter` module in the `pom.xml` file.

```xml
<dependency>
<groupId>org.apache.shardingsphere.elasticjob</groupId>
<artifactId>elasticjob-engine-spring-boot-starter</artifactId>
<artifactId>elasticjob-spring-boot-starter</artifactId>
<version>${latest.release.version}</version>
</dependency>
```
Expand Down Expand Up @@ -38,12 +38,12 @@ Reference:
elasticjob:
regCenter:
serverLists: localhost:6181
namespace: elasticjob-engine-springboot
namespace: elasticjob-springboot
```
**Properties**
```
elasticjob.reg-center.namespace=elasticjob-engine-springboot
elasticjob.reg-center.namespace=elasticjob-springboot
elasticjob.reg-center.server-lists=localhost:6181
```

Expand Down
4 changes: 2 additions & 2 deletions docs/content/user-manual/configuration/spring-namespace.cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ weight = 3
chapter = true
+++

使用 Spring 命名空间需在 pom.xml 文件中添加 elasticjob-engine-spring 模块的依赖。
使用 Spring 命名空间需在 pom.xml 文件中添加 elasticjob-spring 模块的依赖。

```xml
<dependency>
<groupId>org.apache.shardingsphere.elasticjob</groupId>
<artifactId>elasticjob-engine-spring-namespace</artifactId>
<artifactId>elasticjob-spring-namespace</artifactId>
<version>${latest.release.version}</version>
</dependency>
```
Expand Down
4 changes: 2 additions & 2 deletions docs/content/user-manual/configuration/spring-namespace.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ weight = 2
chapter = true
+++

To use the Spring namespace, user need to add the dependency of the `elasticjob-engine-spring` module in the `pom.xml` file.
To use the Spring namespace, user need to add the dependency of the `elasticjob-spring` module in the `pom.xml` file.

```xml
<dependency>
<groupId>org.apache.shardingsphere.elasticjob</groupId>
<artifactId>elasticjob-engine-spring-namespace</artifactId>
<artifactId>elasticjob-spring-namespace</artifactId>
<version>${latest.release.version}</version>
</dependency>
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Starter 会根据该配置自动创建 `OneOffJobBootstrap` 或 `ScheduleJobBoot
elasticjob:
regCenter:
serverLists: localhost:6181
namespace: elasticjob-engine-springboot
namespace: elasticjob-springboot
jobs:
dataflowJob:
elasticJobClass: org.apache.shardingsphere.elasticjob.dataflow.job.DataflowJob
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Configuration reference:
elasticjob:
regCenter:
serverLists: localhost:6181
namespace: elasticjob-engine-springboot
namespace: elasticjob-springboot
jobs:
dataflowJob:
elasticJobClass: org.apache.shardingsphere.elasticjob.dataflow.job.DataflowJob
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ elasticjob:
## 作业启动
指定事件追踪数据源类型为 RDB,TracingConfiguration 会自动注册到容器中,如果与 elasticjob-engine-spring-boot-starter 配合使用,
指定事件追踪数据源类型为 RDB,TracingConfiguration 会自动注册到容器中,如果与 elasticjob-spring-boot-starter 配合使用,
开发者无需进行其他额外的操作,作业启动器会自动使用创建的 TracingConfiguration。
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ elasticjob:
## Job Start
TracingConfiguration will be registered into the IoC container imperceptibly after setting tracing type to RDB.
If elasticjob-engine-spring-boot-starter was imported, developers need to do nothing else.
If elasticjob-spring-boot-starter was imported, developers need to do nothing else.
The instances of JobBootstrap will use the TracingConfiguration automatically.
4 changes: 2 additions & 2 deletions docs/content/user-manual/usage/tracing/spring-namespace.cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ chapter = true

## 引入 Maven 依赖

引入 elasticjob-engine-spring
引入 elasticjob-spring

```xml
<dependency>
<groupId>org.apache.shardingsphere.elasticjob</groupId>
<artifactId>elasticjob-engine-spring-namespace</artifactId>
<artifactId>elasticjob-spring-namespace</artifactId>
<version>${elasticjob.latest.version}</version>
</dependency>
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ chapter = true
```xml
<dependency>
<groupId>org.apache.shardingsphere.elasticjob</groupId>
<artifactId>elasticjob-engine-spring-namespace</artifactId>
<artifactId>elasticjob-spring-namespace</artifactId>
<version>${elasticjob.latest.version}</version>
</dependency>
```
Expand Down
2 changes: 1 addition & 1 deletion examples/elasticjob-example-lite-spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

<dependency>
<groupId>org.apache.shardingsphere.elasticjob</groupId>
<artifactId>elasticjob-engine-spring-namespace</artifactId>
<artifactId>elasticjob-spring-namespace</artifactId>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion examples/elasticjob-example-lite-springboot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<dependencies>
<dependency>
<groupId>org.apache.shardingsphere.elasticjob</groupId>
<artifactId>elasticjob-engine-spring-boot-starter</artifactId>
<artifactId>elasticjob-spring-boot-starter</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ elasticjob:
type: RDB
regCenter:
serverLists: localhost:6181
namespace: elasticjob-engine-springboot
namespace: elasticjob-springboot
jobs:
simpleJob:
elasticJobClass: org.apache.shardingsphere.elasticjob.engine.example.job.SpringBootSimpleJob
Expand Down
2 changes: 1 addition & 1 deletion examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
</dependency>
<dependency>
<groupId>org.apache.shardingsphere.elasticjob</groupId>
<artifactId>elasticjob-engine-spring-namespace</artifactId>
<artifactId>elasticjob-spring-namespace</artifactId>
<version>${revision}</version>
</dependency>

Expand Down
4 changes: 2 additions & 2 deletions spring/boot-starter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
```xml
<dependency>
<groupId>org.apache.shardingsphere.elasticjob</groupId>
<artifactId>elasticjob-engine-spring-boot-starter</artifactId>
<artifactId>elasticjob-spring-boot-starter</artifactId>
<version>${latest.version}</version>
</dependency>
```
Expand Down Expand Up @@ -52,7 +52,7 @@ elasticjob:
type: RDB
regCenter:
serverLists: localhost:6181
namespace: elasticjob-engine-springboot
namespace: elasticjob-springboot
jobs:
classed:
org.apache.shardingsphere.elasticjob.simple.job.SimpleJob:
Expand Down
6 changes: 3 additions & 3 deletions spring/boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.shardingsphere.elasticjob</groupId>
<artifactId>elasticjob-engine-spring</artifactId>
<artifactId>elasticjob-spring</artifactId>
<version>3.1.0-SNAPSHOT</version>
</parent>
<artifactId>elasticjob-engine-spring-boot-starter</artifactId>
<artifactId>elasticjob-spring-boot-starter</artifactId>
<name>${project.artifactId}</name>

<dependencies>
<dependency>
<groupId>org.apache.shardingsphere.elasticjob</groupId>
<artifactId>elasticjob-engine-spring-core</artifactId>
<artifactId>elasticjob-spring-core</artifactId>
<version>${project.parent.version}</version>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.shardingsphere.elasticjob.engine.spring.boot.job;
package org.apache.shardingsphere.elasticjob.spring.boot.job;

import com.google.common.base.Preconditions;
import com.google.common.base.Strings;
Expand All @@ -25,7 +25,7 @@
import org.apache.shardingsphere.elasticjob.api.JobConfiguration;
import org.apache.shardingsphere.elasticjob.engine.api.bootstrap.impl.OneOffJobBootstrap;
import org.apache.shardingsphere.elasticjob.engine.api.bootstrap.impl.ScheduleJobBootstrap;
import org.apache.shardingsphere.elasticjob.engine.spring.boot.tracing.TracingProperties;
import org.apache.shardingsphere.elasticjob.spring.boot.tracing.TracingProperties;
import org.apache.shardingsphere.elasticjob.reg.base.CoordinatorRegistryCenter;
import org.apache.shardingsphere.elasticjob.tracing.api.TracingConfiguration;
import org.springframework.beans.factory.BeanCreationException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.shardingsphere.elasticjob.engine.spring.boot.job;
package org.apache.shardingsphere.elasticjob.spring.boot.job;

import lombok.Getter;
import lombok.Setter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
* limitations under the License.
*/

package org.apache.shardingsphere.elasticjob.engine.spring.boot.job;
package org.apache.shardingsphere.elasticjob.spring.boot.job;

import org.apache.shardingsphere.elasticjob.engine.spring.boot.reg.ElasticJobRegistryCenterConfiguration;
import org.apache.shardingsphere.elasticjob.engine.spring.boot.reg.snapshot.ElasticJobSnapshotServiceConfiguration;
import org.apache.shardingsphere.elasticjob.engine.spring.boot.tracing.ElasticJobTracingConfiguration;
import org.apache.shardingsphere.elasticjob.spring.boot.reg.ElasticJobRegistryCenterConfiguration;
import org.apache.shardingsphere.elasticjob.spring.boot.reg.snapshot.ElasticJobSnapshotServiceConfiguration;
import org.apache.shardingsphere.elasticjob.spring.boot.tracing.ElasticJobTracingConfiguration;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.shardingsphere.elasticjob.engine.spring.boot.job;
package org.apache.shardingsphere.elasticjob.spring.boot.job;

import lombok.Getter;
import lombok.Setter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.shardingsphere.elasticjob.engine.spring.boot.job;
package org.apache.shardingsphere.elasticjob.spring.boot.job;

import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.shardingsphere.elasticjob.engine.spring.boot.reg;
package org.apache.shardingsphere.elasticjob.spring.boot.reg;

import org.apache.shardingsphere.elasticjob.reg.zookeeper.ZookeeperRegistryCenter;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.shardingsphere.elasticjob.engine.spring.boot.reg;
package org.apache.shardingsphere.elasticjob.spring.boot.reg;

import lombok.Getter;
import lombok.Setter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.shardingsphere.elasticjob.engine.spring.boot.reg.snapshot;
package org.apache.shardingsphere.elasticjob.spring.boot.reg.snapshot;

import org.apache.shardingsphere.elasticjob.engine.internal.snapshot.SnapshotService;
import org.apache.shardingsphere.elasticjob.reg.base.CoordinatorRegistryCenter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.shardingsphere.elasticjob.engine.spring.boot.reg.snapshot;
package org.apache.shardingsphere.elasticjob.spring.boot.reg.snapshot;

import lombok.Getter;
import lombok.Setter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.shardingsphere.elasticjob.engine.spring.boot.tracing;
package org.apache.shardingsphere.elasticjob.spring.boot.tracing;

import com.zaxxer.hikari.HikariDataSource;
import org.apache.shardingsphere.elasticjob.tracing.api.TracingConfiguration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.shardingsphere.elasticjob.engine.spring.boot.tracing;
package org.apache.shardingsphere.elasticjob.spring.boot.tracing;

import lombok.Getter;
import lombok.Setter;
Expand Down
Loading

0 comments on commit cf74040

Please sign in to comment.