Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-adapter
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄营
data-adapter
Commits
d223e22e
Commit
d223e22e
authored
Feb 23, 2024
by
hy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor the structure of the project
parent
d39055e8
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
163 additions
and
52 deletions
+163
-52
pom.xml
dataadapter-console/pom.xml
+32
-0
DataAdapterConsoleApplication.java
...yf/dataadapter/console/DataAdapterConsoleApplication.java
+0
-0
DataAdapterConsoleConfig.java
.../dataadapter/console/config/DataAdapterConsoleConfig.java
+0
-0
PluginController.java
.../tbyf/dataadapter/console/controlle/PluginController.java
+0
-0
WorkerController.java
.../tbyf/dataadapter/console/controlle/WorkerController.java
+0
-0
application.yml
dataadapter-console/src/main/resources/application.yml
+10
-0
pom.xml
dataadapter-core/pom.xml
+48
-0
pom.xml
dataadapter-worker/pom.xml
+28
-0
WorkerBootstrap.java
...c/main/java/com/tbyf/dataadapter/app/WorkerBootstrap.java
+37
-0
worker.conf
dataadapter-worker/src/main/resources/worker.conf
+6
-0
new-plugin-1.1-SNAPSHOT.jar
plugins001/new-plugin-1.1-SNAPSHOT.jar
+0
-0
new-plugin-1.1-SNAPSHOT-jar-with-dependencies.jar
...insRepo/new-plugin-1.1-SNAPSHOT-jar-with-dependencies.jar
+0
-0
pom.xml
pom.xml
+2
-52
No files found.
dataadapter-console/pom.xml
0 → 100644
View file @
d223e22e
<?xml version="1.0" encoding="UTF-8"?>
<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"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<groupId>
com.tbyf.dataadapter
</groupId>
<artifactId>
dataadapter
</artifactId>
<version>
3.0-SNAPSHOT
</version>
</parent>
<artifactId>
dataadapter-console
</artifactId>
<properties>
<maven.compiler.source>
8
</maven.compiler.source>
<maven.compiler.target>
8
</maven.compiler.target>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>
com.tbyf.dataadapter
</groupId>
<artifactId>
dataadapter-core
</artifactId>
<version>
3.0-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
</dependencies>
</project>
\ No newline at end of file
dataadapter-co
r
e/src/main/java/com/tbyf/dataadapter/console/DataAdapterConsoleApplication.java
→
dataadapter-co
nsol
e/src/main/java/com/tbyf/dataadapter/console/DataAdapterConsoleApplication.java
View file @
d223e22e
File moved
dataadapter-co
r
e/src/main/java/com/tbyf/dataadapter/console/config/DataAdapterConsoleConfig.java
→
dataadapter-co
nsol
e/src/main/java/com/tbyf/dataadapter/console/config/DataAdapterConsoleConfig.java
View file @
d223e22e
File moved
dataadapter-co
r
e/src/main/java/com/tbyf/dataadapter/console/controlle/PluginController.java
→
dataadapter-co
nsol
e/src/main/java/com/tbyf/dataadapter/console/controlle/PluginController.java
View file @
d223e22e
File moved
dataadapter-co
r
e/src/main/java/com/tbyf/dataadapter/console/controlle/WorkerController.java
→
dataadapter-co
nsol
e/src/main/java/com/tbyf/dataadapter/console/controlle/WorkerController.java
View file @
d223e22e
File moved
dataadapter-console/src/main/resources/application.yml
0 → 100644
View file @
d223e22e
spring
:
servlet
:
multipart
:
max-request-size
:
100MB
max-file-size
:
100MB
pluginsRepoLocation
:
PluginRepo
zk
:
localhost:2181
server
:
port
:
18080
\ No newline at end of file
dataadapter-core/pom.xml
View file @
d223e22e
...
@@ -17,4 +17,51 @@
...
@@ -17,4 +17,51 @@
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
</properties>
<dependencies>
<dependency>
<groupId>
org.projectlombok
</groupId>
<artifactId>
lombok
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
org.apache.curator
</groupId>
<artifactId>
curator-recipes
</artifactId>
<version>
5.2.0
</version>
</dependency>
<dependency>
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-lang3
</artifactId>
</dependency>
<dependency>
<groupId>
io.netty
</groupId>
<artifactId>
netty-all
</artifactId>
</dependency>
<dependency>
<groupId>
org.junit.jupiter
</groupId>
<artifactId>
junit-jupiter
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
ch.qos.logback
</groupId>
<artifactId>
logback-classic
</artifactId>
</dependency>
<dependency>
<groupId>
com.google.code.gson
</groupId>
<artifactId>
gson
</artifactId>
<version>
2.10.1
</version>
</dependency>
<dependency>
<groupId>
org.pf4j
</groupId>
<artifactId>
pf4j
</artifactId>
<version>
3.10.0
</version>
</dependency>
<dependency>
<groupId>
com.squareup.okhttp3
</groupId>
<artifactId>
okhttp
</artifactId>
</dependency>
<dependency>
<groupId>
com.squareup.okhttp3
</groupId>
<artifactId>
logging-interceptor
</artifactId>
</dependency>
</dependencies>
</project>
</project>
\ No newline at end of file
dataadapter-worker/pom.xml
0 → 100644
View file @
d223e22e
<?xml version="1.0" encoding="UTF-8"?>
<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"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<groupId>
com.tbyf.dataadapter
</groupId>
<artifactId>
dataadapter
</artifactId>
<version>
3.0-SNAPSHOT
</version>
</parent>
<artifactId>
dataadapter-worker
</artifactId>
<properties>
<maven.compiler.source>
8
</maven.compiler.source>
<maven.compiler.target>
8
</maven.compiler.target>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>
com.tbyf.dataadapter
</groupId>
<artifactId>
dataadapter-core
</artifactId>
<version>
3.0-SNAPSHOT
</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
dataadapter-worker/src/main/java/com/tbyf/dataadapter/app/WorkerBootstrap.java
0 → 100644
View file @
d223e22e
package
com
.
tbyf
.
dataadapter
.
app
;
import
com.tbyf.dataadapter.Worker
;
import
com.tbyf.dataadapter.WorkerApiRequestHandler
;
import
com.tbyf.dataadapter.WorkerProperties
;
import
com.tbyf.dataadapter.api.impl.WorkerBizImpl
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.util.Properties
;
public
class
WorkerBootstrap
{
public
static
void
main
(
String
[]
args
)
{
Properties
props
=
loadProps
();
WorkerProperties
wp
=
new
WorkerProperties
();
wp
.
setName
(
props
.
getProperty
(
"name"
));
wp
.
setGroup
(
props
.
getProperty
(
"group"
));
wp
.
setRegistryAddress
(
props
.
getProperty
(
"registryAddress"
));
wp
.
setPort
(
Integer
.
parseInt
(
props
.
getProperty
(
"port"
)));
Worker
worker
=
new
Worker
(
wp
);
WorkerApiRequestHandler
handler
=
new
WorkerApiRequestHandler
(
new
WorkerBizImpl
(
props
.
getProperty
(
"pluginsRoot"
),
props
.
getProperty
(
"pluginRepositoryUrl"
)));
worker
.
setRequestHandler
(
handler
);
worker
.
start
();
}
private
static
Properties
loadProps
()
{
ClassLoader
cld
=
WorkerBootstrap
.
class
.
getClassLoader
();
Properties
props
=
new
Properties
();
try
(
InputStream
is
=
cld
.
getResourceAsStream
(
"worker.conf"
))
{
props
.
load
(
is
);
}
catch
(
IOException
e
)
{
}
return
props
;
}
}
dataadapter-worker/src/main/resources/worker.conf
0 → 100644
View file @
d223e22e
name
=
w008
group
=
biz02
registryAddress
=
127
.
0
.
0
.
1
:
2181
port
=
8083
pluginsRoot
=
plugin01
pluginRepositoryUrl
=
http
://
localhost
:
8082
/
plugin
/
download
plugins001/new-plugin-1.1-SNAPSHOT.jar
deleted
100644 → 0
View file @
d39055e8
File deleted
pluginsRepo/new-plugin-1.1-SNAPSHOT-jar-with-dependencies.jar
deleted
100644 → 0
View file @
d39055e8
File deleted
pom.xml
View file @
d223e22e
...
@@ -10,6 +10,8 @@
...
@@ -10,6 +10,8 @@
<packaging>
pom
</packaging>
<packaging>
pom
</packaging>
<modules>
<modules>
<module>
dataadapter-core
</module>
<module>
dataadapter-core
</module>
<module>
dataadapter-console
</module>
<module>
dataadapter-worker
</module>
</modules>
</modules>
<properties>
<properties>
...
@@ -30,55 +32,4 @@
...
@@ -30,55 +32,4 @@
</dependencies>
</dependencies>
</dependencyManagement>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>
org.projectlombok
</groupId>
<artifactId>
lombok
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
org.apache.curator
</groupId>
<artifactId>
curator-recipes
</artifactId>
<version>
5.2.0
</version>
</dependency>
<dependency>
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-lang3
</artifactId>
</dependency>
<dependency>
<groupId>
io.netty
</groupId>
<artifactId>
netty-all
</artifactId>
</dependency>
<dependency>
<groupId>
org.junit.jupiter
</groupId>
<artifactId>
junit-jupiter
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
ch.qos.logback
</groupId>
<artifactId>
logback-classic
</artifactId>
</dependency>
<dependency>
<groupId>
com.google.code.gson
</groupId>
<artifactId>
gson
</artifactId>
<version>
2.10.1
</version>
</dependency>
<dependency>
<groupId>
org.pf4j
</groupId>
<artifactId>
pf4j
</artifactId>
<version>
3.10.0
</version>
</dependency>
<dependency>
<groupId>
com.squareup.okhttp3
</groupId>
<artifactId>
okhttp
</artifactId>
</dependency>
<dependency>
<groupId>
com.squareup.okhttp3
</groupId>
<artifactId>
logging-interceptor
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
</dependencies>
</project>
</project>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment