Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
武汉红喜
whatsmars
提交
8eb7595b
W
whatsmars
项目概览
武汉红喜
/
whatsmars
通知
3
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
whatsmars
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
8eb7595b
编写于
9月 17, 2020
作者:
武汉红喜
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
embed zk
上级
5015e4ed
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
109 addition
and
20 deletion
+109
-20
pom.xml
pom.xml
+27
-0
whatsmars-elasticjob/pom.xml
whatsmars-elasticjob/pom.xml
+3
-2
whatsmars-elasticjob/src/main/java/org/hongxi/whatsmars/job/Application.java
...b/src/main/java/org/hongxi/whatsmars/job/Application.java
+1
-0
whatsmars-zk-embed/pom.xml
whatsmars-zk-embed/pom.xml
+26
-0
whatsmars-zk-embed/src/main/java/org/hongxi/whatsmars/zk/embed/EmbedZookeeperServer.java
...a/org/hongxi/whatsmars/zk/embed/EmbedZookeeperServer.java
+1
-18
whatsmars-zk-embed/src/main/java/org/hongxi/whatsmars/zk/embed/Startup.java
.../src/main/java/org/hongxi/whatsmars/zk/embed/Startup.java
+11
-0
whatsmars-zk-embed/src/main/resources/logback.xml
whatsmars-zk-embed/src/main/resources/logback.xml
+40
-0
未找到文件。
pom.xml
浏览文件 @
8eb7595b
...
...
@@ -33,6 +33,7 @@
<module>
whatsmars-archetypes
</module>
<module>
whatsmars-netty
</module>
<module>
whatsmars-sentinel
</module>
<module>
whatsmars-zk-embed
</module>
</modules>
<!--这里的properties会覆盖父pom里的重名的配置-->
...
...
@@ -87,6 +88,32 @@
<version>
${rocketmq.version}
</version>
</dependency>
<dependency>
<groupId>
com.alibaba.csp
</groupId>
<artifactId>
sentinel-core
</artifactId>
<version>
${sentinel.version}
</version>
</dependency>
<dependency>
<groupId>
com.alibaba.csp
</groupId>
<artifactId>
sentinel-transport-simple-http
</artifactId>
<version>
${sentinel.version}
</version>
</dependency>
<dependency>
<groupId>
com.alibaba.csp
</groupId>
<artifactId>
sentinel-spring-webmvc-adapter
</artifactId>
<version>
${sentinel.version}
</version>
</dependency>
<dependency>
<groupId>
com.alibaba.csp
</groupId>
<artifactId>
sentinel-annotation-aspectj
</artifactId>
<version>
${sentinel.version}
</version>
</dependency>
<dependency>
<groupId>
com.alibaba.csp
</groupId>
<artifactId>
sentinel-apache-dubbo-adapter
</artifactId>
<version>
${sentinel.version}
</version>
</dependency>
<dependency>
<groupId>
com.google.guava
</groupId>
<artifactId>
guava
</artifactId>
...
...
whatsmars-elasticjob/pom.xml
浏览文件 @
8eb7595b
...
...
@@ -34,8 +34,9 @@
</dependency>
<dependency>
<groupId>
org.apache.curator
</groupId>
<artifactId>
curator-test
</artifactId>
<groupId>
org.hongxi
</groupId>
<artifactId>
whatsmars-zk-embed
</artifactId>
<version>
Rocket.S9
</version>
</dependency>
<dependency>
<groupId>
com.h2database
</groupId>
...
...
whatsmars-elasticjob/src/main/java/org/hongxi/whatsmars/job/Application.java
浏览文件 @
8eb7595b
...
...
@@ -17,6 +17,7 @@
package
org.hongxi.whatsmars.job
;
import
org.hongxi.whatsmars.zk.embed.EmbedZookeeperServer
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
...
...
whatsmars-zk-embed/pom.xml
0 → 100644
浏览文件 @
8eb7595b
<?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"
>
<parent>
<artifactId>
whatsmars-parent
</artifactId>
<groupId>
org.hongxi
</groupId>
<version>
Rocket.S9
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
whatsmars-zk-embed
</artifactId>
<dependencies>
<dependency>
<groupId>
org.apache.curator
</groupId>
<artifactId>
curator-test
</artifactId>
</dependency>
<dependency>
<groupId>
ch.qos.logback
</groupId>
<artifactId>
logback-classic
</artifactId>
<optional>
true
</optional>
</dependency>
</dependencies>
</project>
\ No newline at end of file
whatsmars-
elasticjob/src/main/java/org/hongxi/whatsmars/job
/EmbedZookeeperServer.java
→
whatsmars-
zk-embed/src/main/java/org/hongxi/whatsmars/zk/embed
/EmbedZookeeperServer.java
浏览文件 @
8eb7595b
/*
* 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
org.hongxi.whatsmars.job
;
package
org.hongxi.whatsmars.zk.embed
;
import
org.apache.curator.test.TestingServer
;
...
...
whatsmars-zk-embed/src/main/java/org/hongxi/whatsmars/zk/embed/Startup.java
0 → 100644
浏览文件 @
8eb7595b
package
org.hongxi.whatsmars.zk.embed
;
/**
* Created by shenhongxi on 2020/9/17.
*/
public
class
Startup
{
public
static
void
main
(
String
[]
args
)
{
EmbedZookeeperServer
.
start
(
2181
);
}
}
whatsmars-zk-embed/src/main/resources/logback.xml
0 → 100644
浏览文件 @
8eb7595b
<?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.
-->
<configuration>
<property
name=
"log.context.name"
value=
"elasticjob-example-lite"
/>
<property
name=
"log.charset"
value=
"UTF-8"
/>
<property
name=
"log.pattern"
value=
"[%-5level] %date --%thread-- [%logger] %msg %n"
/>
<contextName>
${log.context.name}
</contextName>
<appender
name=
"STDOUT"
class=
"ch.qos.logback.core.ConsoleAppender"
>
<encoder
charset=
"${log.charset}"
>
<pattern>
${log.pattern}
</pattern>
</encoder>
</appender>
<root>
<level
value=
"INFO"
/>
<appender-ref
ref=
"STDOUT"
/>
</root>
<logger
name=
"org.apache.zookeeper"
level=
"INFO"
/>
<logger
name=
"org.apache.curator"
level=
"INFO"
/>
</configuration>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录