-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSentinelClientConfigEntity.java
87 lines (82 loc) · 1.81 KB
/
SentinelClientConfigEntity.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
package com.sentinel.client.demo.config;
import lombok.Data;
/**
* @Description 客户端配置
*/
@Data
public class SentinelClientConfigEntity {
/**
* zookeeper的配置信息
*/
private ZkConfig zkConfig;
/**
* nacos的配置信息
*/
private NacosConfig nacosConfig;
/**
* zookeeper的配置
*/
@Data
public static class ZkConfig {
private String address;
private RulePath rulePath;
}
/**
* nacos的配置
*/
@Data
public static class NacosConfig {
private String address;
private String namespace;
private String username;
private String password;
private String groupId;
private RulePath rulePath;
}
/**
* 监听配置文件地址
*/
@Data
public static class RulePath {
/**
* 限流规则
*/
private String flowPath;
/**
* 熔断降级规则地址
*/
private String degradePath;
/**
* 热点规则
*/
private String paramFlowPath;
/**
* 系统规则
*/
private String systemRulePath;
/**
* 授权规则
*/
private String authorityRulePath;
/**
* 集群配置-模式
*/
private String clusterModePath;
/**
* 集群配置-客户端配置
*/
private String clusterClientConfigPath;
/**
* 集群配置-服务端配置
*/
private String clusterServerFlowPath;
/**
* 集群配置-服务端配置
*/
private String clusterServerTransportPath;
/**
* 集群配置-命名空间配置
*/
private String clusterServerNamespacePath;
}
}