Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
spring-cloud-timeloit
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
loit-Infrastructure
spring-cloud-timeloit
Commits
ee39dc58
提交
ee39dc58
authored
8月 14, 2020
作者:
陈世营
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[修改]sentinel 版本升级为1.7.2 并将spring-cloud-timeloit修改为0.0.1-SNAPSHOT
上级
a6574127
隐藏空白字符变更
内嵌
并排
正在显示
14 个修改的文件
包含
25 行增加
和
19 行删除
+25
-19
pom.xml
pom.xml
+2
-2
pom.xml
spring-cloud-starter-timeloit/pom.xml
+1
-1
pom.xml
...oit/spring-cloud-starter-timeloit-nacos-discovery/pom.xml
+1
-1
pom.xml
...r-timeloit/spring-cloud-starter-timeloit-sentinel/pom.xml
+1
-1
pom.xml
spring-cloud-timeloit-dependencies/pom.xml
+2
-2
pom.xml
spring-cloud-timeloit-examples/pom.xml
+1
-1
pom.xml
spring-cloud-timeloit-nacos-config/pom.xml
+1
-1
pom.xml
spring-cloud-timeloit-nacos-discovery/pom.xml
+1
-1
pom.xml
spring-cloud-timeloit-seata/pom.xml
+1
-1
pom.xml
spring-cloud-timeloit-sentinel-datasource/pom.xml
+1
-1
pom.xml
spring-cloud-timeloit-sentinel-gateway/pom.xml
+1
-1
pom.xml
spring-cloud-timeloit-sentinel/pom.xml
+1
-1
SentinelEndpoint.java
...om/timeloit/cloud/sentinel/endpoint/SentinelEndpoint.java
+1
-1
SentinelHealthIndicator.java
...loit/cloud/sentinel/endpoint/SentinelHealthIndicator.java
+10
-4
没有找到文件。
pom.xml
浏览文件 @
ee39dc58
...
...
@@ -14,7 +14,7 @@
<groupId>
com.timeloit.cloud
</groupId>
<artifactId>
spring-cloud-timeloit
</artifactId>
<version>
2.0.2.RELEASE
</version>
<version>
0.0.1-SNAPSHOT
</version>
<packaging>
pom
</packaging>
<name>
Spring Cloud Timeloit
</name>
...
...
@@ -98,7 +98,7 @@
<dependency>
<groupId>
com.timeloit.cloud
</groupId>
<artifactId>
spring-cloud-timeloit-dependencies
</artifactId>
<version>
2.0.2.RELEASE
</version>
<version>
0.0.1-SNAPSHOT
</version>
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
...
...
spring-cloud-starter-timeloit/pom.xml
浏览文件 @
ee39dc58
...
...
@@ -5,7 +5,7 @@
<parent>
<artifactId>
spring-cloud-timeloit
</artifactId>
<groupId>
com.timeloit.cloud
</groupId>
<version>
2.0.2.RELEASE
</version>
<version>
0.0.1-SNAPSHOT
</version>
<relativePath>
../pom.xml
</relativePath>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
spring-cloud-starter-timeloit/spring-cloud-starter-timeloit-nacos-discovery/pom.xml
浏览文件 @
ee39dc58
...
...
@@ -5,7 +5,7 @@
<parent>
<artifactId>
spring-cloud-starter-timeloit
</artifactId>
<groupId>
com.timeloit.cloud
</groupId>
<version>
2.0.2.RELEASE
</version>
<version>
0.0.1-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
spring-cloud-starter-timeloit/spring-cloud-starter-timeloit-sentinel/pom.xml
浏览文件 @
ee39dc58
...
...
@@ -5,7 +5,7 @@
<parent>
<artifactId>
spring-cloud-starter-timeloit
</artifactId>
<groupId>
com.timeloit.cloud
</groupId>
<version>
2.0.2.RELEASE
</version>
<version>
0.0.1-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
spring-cloud-timeloit-dependencies/pom.xml
浏览文件 @
ee39dc58
...
...
@@ -12,7 +12,7 @@
<groupId>
com.timeloit.cloud
</groupId>
<artifactId>
spring-cloud-timeloit-dependencies
</artifactId>
<version>
2.0.2.RELEASE
</version>
<version>
0.0.1-SNAPSHOT
</version>
<packaging>
pom
</packaging>
<name>
Spring Cloud Timeloit
</name>
...
...
@@ -21,7 +21,7 @@
<properties>
<revision>
2.0.2.RELEASE
</revision>
<sentinel.version>
1.7.
1
</sentinel.version>
<sentinel.version>
1.7.
2
</sentinel.version>
<seata.version>
1.1.0
</seata.version>
<nacos.client.version>
1.2.1
</nacos.client.version>
<nacos.config.version>
0.8.0
</nacos.config.version>
...
...
spring-cloud-timeloit-examples/pom.xml
浏览文件 @
ee39dc58
...
...
@@ -5,7 +5,7 @@
<parent>
<artifactId>
spring-cloud-timeloit
</artifactId>
<groupId>
com.timeloit.cloud
</groupId>
<version>
2.0.2.RELEASE
</version>
<version>
0.0.1-SNAPSHOT
</version>
<relativePath>
../pom.xml
</relativePath>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
spring-cloud-timeloit-nacos-config/pom.xml
浏览文件 @
ee39dc58
...
...
@@ -5,7 +5,7 @@
<parent>
<artifactId>
spring-cloud-timeloit
</artifactId>
<groupId>
com.timeloit.cloud
</groupId>
<version>
2.0.2.RELEASE
</version>
<version>
0.0.1-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
spring-cloud-timeloit-nacos-discovery/pom.xml
浏览文件 @
ee39dc58
...
...
@@ -5,7 +5,7 @@
<parent>
<artifactId>
spring-cloud-timeloit
</artifactId>
<groupId>
com.timeloit.cloud
</groupId>
<version>
2.0.2.RELEASE
</version>
<version>
0.0.1-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
spring-cloud-timeloit-seata/pom.xml
浏览文件 @
ee39dc58
...
...
@@ -5,7 +5,7 @@
<parent>
<artifactId>
spring-cloud-timeloit
</artifactId>
<groupId>
com.timeloit.cloud
</groupId>
<version>
2.0.2.RELEASE
</version>
<version>
0.0.1-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
spring-cloud-timeloit-sentinel-datasource/pom.xml
浏览文件 @
ee39dc58
...
...
@@ -5,7 +5,7 @@
<parent>
<artifactId>
spring-cloud-timeloit
</artifactId>
<groupId>
com.timeloit.cloud
</groupId>
<version>
2.0.2.RELEASE
</version>
<version>
0.0.1-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
spring-cloud-timeloit-sentinel-gateway/pom.xml
浏览文件 @
ee39dc58
...
...
@@ -5,7 +5,7 @@
<parent>
<artifactId>
spring-cloud-timeloit
</artifactId>
<groupId>
com.timeloit.cloud
</groupId>
<version>
2.0.2.RELEASE
</version>
<version>
0.0.1-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
spring-cloud-timeloit-sentinel/pom.xml
浏览文件 @
ee39dc58
...
...
@@ -5,7 +5,7 @@
<parent>
<artifactId>
spring-cloud-timeloit
</artifactId>
<groupId>
com.timeloit.cloud
</groupId>
<version>
2.0.2.RELEASE
</version>
<version>
0.0.1-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
spring-cloud-timeloit-sentinel/src/main/java/com/timeloit/cloud/sentinel/endpoint/SentinelEndpoint.java
浏览文件 @
ee39dc58
...
...
@@ -61,7 +61,7 @@ public class SentinelEndpoint {
result
.
put
(
"metricsFileSize"
,
SentinelConfig
.
singleMetricFileSize
());
result
.
put
(
"metricsFileCharset"
,
SentinelConfig
.
charset
());
result
.
put
(
"totalMetricsFileCount"
,
SentinelConfig
.
totalMetricFileCount
());
result
.
put
(
"consoleServer"
,
TransportConfig
.
getConsoleServer
());
result
.
put
(
"consoleServer"
,
TransportConfig
.
getConsoleServer
List
());
result
.
put
(
"clientIp"
,
TransportConfig
.
getHeartbeatClientIp
());
result
.
put
(
"heartbeatIntervalMs"
,
TransportConfig
.
getHeartbeatIntervalMs
());
result
.
put
(
"clientPort"
,
TransportConfig
.
getPort
());
...
...
spring-cloud-timeloit-sentinel/src/main/java/com/timeloit/cloud/sentinel/endpoint/SentinelHealthIndicator.java
浏览文件 @
ee39dc58
...
...
@@ -17,8 +17,10 @@
package
com
.
timeloit
.
cloud
.
sentinel
.
endpoint
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
com.alibaba.csp.sentinel.util.function.Tuple2
;
import
com.timeloit.cloud.sentinel.SentinelProperties
;
import
com.alibaba.csp.sentinel.datasource.AbstractDataSource
;
import
com.alibaba.csp.sentinel.heartbeat.HeartbeatSenderProvider
;
...
...
@@ -30,6 +32,7 @@ import org.springframework.boot.actuate.health.AbstractHealthIndicator;
import
org.springframework.boot.actuate.health.Health
;
import
org.springframework.boot.actuate.health.HealthIndicator
;
import
org.springframework.boot.actuate.health.Status
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.StringUtils
;
/**
...
...
@@ -82,8 +85,9 @@ public class SentinelHealthIndicator extends AbstractHealthIndicator {
// Check health of Dashboard
boolean
dashboardUp
=
true
;
String
consoleServer
=
TransportConfig
.
getConsoleServer
();
if
(
StringUtils
.
isEmpty
(
consoleServer
))
{
List
<
Tuple2
<
String
,
Integer
>>
consoleServerList
=
TransportConfig
.
getConsoleServerList
();
if
(
CollectionUtils
.
isEmpty
(
consoleServerList
))
{
// If Dashboard isn't configured, it's OK and mark the status of Dashboard
// with UNKNOWN.
detailMap
.
put
(
"dashboard"
,
...
...
@@ -101,8 +105,10 @@ public class SentinelHealthIndicator extends AbstractHealthIndicator {
else
{
// If failed to send heartbeat message, means that the Dashboard is DOWN
dashboardUp
=
false
;
detailMap
.
put
(
"dashboard"
,
new
Status
(
Status
.
DOWN
.
getCode
(),
consoleServer
+
" can't be connected"
));
detailMap
.
put
(
"dashboard"
,
new
Status
(
Status
.
DOWN
.
getCode
(),
String
.
format
(
"the dashboard servers [%s] one of them can't be connected"
,
consoleServerList
)));
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论