-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: restructure Flink engine modules and update UI
1. Split Flink engine into separate modules: - datavines-engine-flink-config - datavines-engine-flink-jdbc - datavines-engine-flink-transform 2. Update UI components: - Add FlinkConfiguration component - Update CreateConfig to support Flink configuration - Update localization files
- Loading branch information
Showing
20 changed files
with
664 additions
and
900 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
datavines-engine/datavines-engine-plugins/datavines-engine-flink/HEADER
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
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. |
57 changes: 57 additions & 0 deletions
57
...ine/datavines-engine-plugins/datavines-engine-flink/datavines-engine-flink-config/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
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. | ||
--> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<parent> | ||
<artifactId>datavines-engine-flink</artifactId> | ||
<groupId>io.datavines</groupId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
</parent> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<artifactId>datavines-engine-flink-config</artifactId> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>io.datavines</groupId> | ||
<artifactId>datavines-engine-core</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>io.datavines</groupId> | ||
<artifactId>datavines-engine-api</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>io.datavines</groupId> | ||
<artifactId>datavines-engine-flink-api</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.apache.flink</groupId> | ||
<artifactId>flink-core</artifactId> | ||
<version>${flink.version}</version> | ||
</dependency> | ||
</dependencies> | ||
</project> |
55 changes: 55 additions & 0 deletions
55
...ngine-flink-config/src/main/java/io/datavines/engine/flink/config/FlinkConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* 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. | ||
*/ | ||
package io.datavines.engine.flink.config; | ||
|
||
import io.datavines.common.config.BaseConfig; | ||
|
||
public class FlinkConfiguration extends BaseConfig { | ||
|
||
private String jobName; | ||
private String checkpointPath; | ||
private int checkpointInterval = 10000; // default 10s | ||
|
||
@Override | ||
public String getType() { | ||
return "FLINK"; | ||
} | ||
|
||
public String getJobName() { | ||
return jobName; | ||
} | ||
|
||
public void setJobName(String jobName) { | ||
this.jobName = jobName; | ||
} | ||
|
||
public String getCheckpointPath() { | ||
return checkpointPath; | ||
} | ||
|
||
public void setCheckpointPath(String checkpointPath) { | ||
this.checkpointPath = checkpointPath; | ||
} | ||
|
||
public int getCheckpointInterval() { | ||
return checkpointInterval; | ||
} | ||
|
||
public void setCheckpointInterval(int checkpointInterval) { | ||
this.checkpointInterval = checkpointInterval; | ||
} | ||
} |
227 changes: 0 additions & 227 deletions
227
...nk-core/src/main/java/io/datavines/engine/flink/config/BaseFlinkConfigurationBuilder.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.