-
Notifications
You must be signed in to change notification settings - Fork 3k
[type:feature] Custome classloader hot load plugins to gateway. #5403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking "Sign up for GitHub", you agree to our terms of service and privacy statement. We'll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Open
[type:feature] Custome classloader hot load plugins to gateway. #5403
Changes from 1 commit
Commits
Show all changes
134 commits
Select commit
Hold shift + click to select a range
6e90c09
test
lahmXu 6cff152
He Bing AbstractShenyuClassIsolationDao AbstractShenyuPluginLei Zhong
lahmXu 3606286
Diao Zheng Dai Ma
lahmXu 3d5392e
Jia Zai Cha Jian Dao spring beanZhong
lahmXu 2132596
fix
lahmXu 25de55e
fix
lahmXu 2c3fd4d
Tian Jia mavenDa Bao pluginPei Zhi ,Tong Guo includeArtifactIdsKe Yi Jiang Xu Yao De Yi Lai Fang Dao Zi Ding Yi Lei Jia Zai Qi Zhong
lahmXu 2cf80d8
Pai Chu Bao Cuo Yi Lai
lahmXu 6797b15
Ji Lu Dang Qian Xiu Gai
lahmXu d9b2654
Xiu Fu motanChu Shi Hua Shi Bai Wen Ti
lahmXu e8e485a
Jie Jue Xu Lie Hua sofaQing Qiu Can Shu Shi Bai Wen Ti
lahmXu 16c41ab
feat: Jiang Cha Jian Xu Yao Chuang Jian De Dui Xiang Jiao Gei springQu Chuang Jian
lahmXu 2a7e14d
feat: Zeng Jia releasaDa Bao
lahmXu 426cf37
[type:fix] refactor class isolation.
761ee11
Merge branch 'apache:master' into class_isolation
lahmXu 303a704
[type:fix] refactor class isolation.
6729ebd
Merge remote-tracking branch 'lamuxu/class_isolation' into class_isol...
194e0f5
[type:fix] refactor class isolation.
fba3c97
[type:fix] refactor class isolation.
07600ca
[type:fix] refactor class isolation.
a55abe1
[type:fix] refactor class isolation.
ca78bcf
[type:fix] refactor class isolation.
62d12d5
fix: Zeng Jia motanCha Jian
lahmXu ae8d6ab
[type:fix] refactor class isolation.
84dd81f
fix: Xiu Gai motanCha Jian
lahmXu f98af5c
fix: Xiu Gai motanCha Jian
lahmXu 9e14994
Merge branch 'apache:master' into class_isolation
lahmXu 746c65a
feat: Zeng Jia Cha Jian Tong Yong libMu Lu ,Zeng Jia mavenGou Jian Shi Yi Chu jarWen Jian De Gong Neng
lahmXu f3e6760
feat: Gai Xie requestCha Jian
lahmXu 68d79f9
fix: Diao Zheng motan, sofaCha Jian Da Bao Pei Zhi
lahmXu 1cea6c0
fix: Diao Zheng motanCha Jian
lahmXu 6037fca
fix: Diao Zheng sofaCha Jian
lahmXu b06629b
fix: Diao Zheng sofaCha Jian
lahmXu e7eb2db
fix: Xiu Fu fatjarZhong Bao Han Duo Ge pom.propertiesDe Wen Ti
lahmXu 3a278a1
fix: Jia Ru motan-apiYi Lai
lahmXu aab516b
Merge branch 'apache:master' into class_isolation
lahmXu 91e3efb
fix: Kai Qi motan, sofaCha Jian De e2eCe Shi
lahmXu ce56e38
fix: Diao Zheng e2eCe Shi Pei Zhi
lahmXu b4ce158
fix: Diao Zheng e2eCe Shi Pei Zhi
lahmXu 23e701e
fix: Diao Zheng e2eCe Shi Pei Zhi
lahmXu d861c3e
fix: Xiu Fu checkstyleWen Ti
lahmXu 46351d6
fix: Kai Qi motan e2eCe Shi
lahmXu 96d4781
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu 5987a73
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu 6fdedec
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu e1e358c
fix: Kai Qi motan e2eCe Shi
lahmXu b51f8af
fix: Kai Qi motan e2eCe Shi
lahmXu 54b7904
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu 46f6d92
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu bcf69d9
fix: Diao Zheng motan e2eCe Shi
lahmXu 55f9dde
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu ac92bb4
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu 07918b1
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu 5a979de
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu 824bfcb
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu 1161706
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu 9976f94
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu 0dea96b
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu 6dfeb31
fix: Diao Zheng motan e2eCe Shi
lahmXu 350a945
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu a2b8936
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu 3875a0c
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu ec2bfd2
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu d387a34
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu 8744738
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu 95cb3a6
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu d8b59e6
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu 21d6e52
fix: Diao Zheng motan e2eCe Shi
lahmXu 3b48b63
feat: He Bing Dai Ma
lahmXu 52fce52
fix: Ce Shi sofa e2eCe Shi
lahmXu 0a4ac1a
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu f128ce3
fix: Jie Jue motan NoClassDefFoundError
lahmXu 5ab2a77
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu 2068aa6
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu fab3b73
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu 232419e
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu 5e7f0e8
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu 2ba5986
fix: Da Yin endpointRi Zhi
lahmXu 70cc749
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu 11030c8
fix: Xiu Gai motanCha Jian De e2eCe Shi
lahmXu 6c0bad2
fix: Yi Chu sofa, motanCha Jian Yi Lai
lahmXu 7a1769e
fix: Xiu Gai sofaCha Jian De e2eCe Shi
lahmXu db4eee6
fix: Hui Fu shenyu git actionPei Zhi
lahmXu c4e0938
fix: Hui Fu shenyu git actionPei Zhi
lahmXu c0041a1
fix: Xiu Fu Ge Shi Wen Ti
lahmXu 37050fc
fix: Xiu Fu Ge Shi Wen Ti
lahmXu ca0bf41
fix: Xiu Fu actionsShi Bai Wen Ti
lahmXu cab1654
fix: Xiu Fu actionsShi Bai Wen Ti
lahmXu 46c7d91
fix: Xiu Fu actionsShi Bai Wen Ti
lahmXu e1da7f7
Merge branch 'master' into class_isolation
lahmXu 7237fb4
fix: Xiu Fu actionsShi Bai Wen Ti
lahmXu cca9d2f
fix: Xiu Fu actionsShi Bai Wen Ti
lahmXu f958688
fix: Xiu Fu actionsShi Bai Wen Ti
lahmXu b3ae051
fix: Xiu Fu actionsShi Bai Wen Ti
lahmXu e7a17df
fix: Xiu Fu actionsShi Bai Wen Ti
lahmXu 0daa58a
fix: Xiu Fu actionsShi Bai Wen Ti
lahmXu 3e49b64
fix: Xiu Fu actionsShi Bai Wen Ti
lahmXu 095c7b5
fix: Xiu Fu actionsShi Bai Wen Ti
lahmXu fc3fdeb
fix: Xiu Fu actionsShi Bai Wen Ti
lahmXu 0705196
fix: Xiu Fu actionsShi Bai Wen Ti
lahmXu a54ef32
fix: Xiu Fu actionsShi Bai Wen Ti
lahmXu 69caeaa
fix: Xiu Fu actionsShi Bai Wen Ti
lahmXu cd11b5b
fix: Xiu Fu actionsShi Bai Wen Ti
lahmXu fe3f057
fix: He Bing masterDai Ma
lahmXu 4d5cb41
fix: He Bing masterDai Ma
lahmXu 26f1e20
Merge branch 'master' into class_isolation
loongs-zhang 8e30a51
fix: He Bing masterDai Ma
lahmXu 91d4cb1
fix: Diao Zheng shenyu-integrated-test-k8s-ingress-motanCe Shi Qi Dong Jiao Ben
lahmXu b04a9a9
fix: Diao Zheng shenyu-integrated-test-k8s-ingress-motanCe Shi Qi Dong Jiao Ben
lahmXu 972b39c
fix: Diao Zheng shenyu-integrated-test-k8s-ingress-motanCe Shi Qi Dong Jiao Ben
lahmXu 8262cbf
fix: Diao Zheng Dai Ma
lahmXu f181162
fix: Diao Zheng Dai Ma
lahmXu 1620f29
fix: Diao Zheng Dai Ma
lahmXu ed5b0b0
fix: Diao Zheng Dai Ma
lahmXu 0fa97ca
fix: Xiu Fu Ge Shi Wen Ti
lahmXu 914d7c8
Merge branch 'master' into class_isolation
lahmXu 9827562
fix: Yi Chu Jian Kang Jian Cha
lahmXu 298b5a6
Merge branch 'master' into class_isolation
lahmXu 198f193
fix: He Bing Dai Ma
lahmXu a4b07bd
fix: He Bing Dai Ma
lahmXu 3246f39
fix: He Bing Dai Ma
lahmXu 8b2f414
fix: Yi Chu isolationYi Lai ,Shi Yong Fu Jia Zai Qi Jia Zai
lahmXu c599f37
feat: He Bing Dai Ma
lahmXu 774038f
fix: Yi Chu motan Yi Lai
lahmXu 1924fb9
fix: Tian Jia sofa Ban Ben
lahmXu eae5d7d
fix: Diao Zheng motan Jian Kang Jian Ce Lu Jing
lahmXu cccfd0b
fix: Yi Chu Jian Kang Jian Cha
lahmXu 6846805
fix: Yi Chu Jian Kang Jian Cha
lahmXu 9be7ff3
Merge branch 'master' into class_isolation
lahmXu 506b34e
fix: Xiu Fu sofaDan Ce Wen Ti
lahmXu 0530f8e
Merge branch 'class_isolation' of https://github.com/lahmXu/shenyu in...
lahmXu 0c8d0a5
fix: Jie Jue Chong Tu
lahmXu 0f08c41
Merge branch 'master' of https://github.com/apache/shenyu into class_...
lahmXu a475652
fix: Xiu Fu Que Shao jakartaWen Ti
lahmXu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: Jie Jue Chong Tu
- Loading branch information
commit 0c8d0a53d0c0f91e04d0fa7f1677f11e63e154d7
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -53,17 +53,17 @@ public enum DiscoveryTransfer { | |
| * @param discoveryUpstreamData discoveryUpstreamData | ||
| * @return DiscoveryUpstreamDO | ||
| */ | ||
| public DiscoveryUpstreamDO mapToDo(final DiscoveryUpstreamData discoveryUpstreamData) { | ||
| return DiscoveryUpstreamDO.builder() | ||
| .discoveryHandlerId(discoveryUpstreamData.getDiscoveryHandlerId()) | ||
| .id(discoveryUpstreamData.getId()) | ||
| .protocol(discoveryUpstreamData.getProtocol()) | ||
| .status(discoveryUpstreamData.getStatus()) | ||
| .weight(discoveryUpstreamData.getWeight()) | ||
| .props(discoveryUpstreamData.getProps()) | ||
| .url(discoveryUpstreamData.getUrl()) | ||
| .dateUpdated(discoveryUpstreamData.getDateUpdated()) | ||
| .dateCreated(discoveryUpstreamData.getDateCreated()).build(); | ||
| public DiscoveryUpstreamDO mapToDo(DiscoveryUpstreamData discoveryUpstreamData) { | ||
| return Optional.ofNullable(discoveryUpstreamData).map(data -> DiscoveryUpstreamDO.builder() | ||
| .discoveryHandlerId(data.getDiscoveryHandlerId()) | ||
| .id(data.getId()) | ||
| .protocol(data.getProtocol()) | ||
| .status(data.getStatus()) | ||
| .weight(data.getWeight()) | ||
| .props(data.getProps()) | ||
| .url(data.getUrl()) | ||
| .dateUpdated(data.getDateUpdated()) | ||
| .dateCreated(data.getDateCreated()).build()).orElse(null); | ||
| } | ||
|
|
||
| /** | ||
|
|
@@ -72,19 +72,22 @@ public DiscoveryUpstreamDO mapToDo(final DiscoveryUpstreamData discoveryUpstream | |
| * @param discoveryUpstreamDO discoveryUpstreamDO | ||
| * @return DiscoveryUpstreamVO | ||
| */ | ||
| public DiscoveryUpstreamVO mapToVo(final DiscoveryUpstreamDO discoveryUpstreamDO) { | ||
| DiscoveryUpstreamVO vo = new DiscoveryUpstreamVO(); | ||
| vo.setId(discoveryUpstreamDO.getId()); | ||
| vo.setDiscoveryHandlerId(discoveryUpstreamDO.getDiscoveryHandlerId()); | ||
| vo.setProtocol(discoveryUpstreamDO.getProtocol()); | ||
| vo.setUrl(discoveryUpstreamDO.getUrl()); | ||
| vo.setStatus(discoveryUpstreamDO.getStatus()); | ||
| vo.setWeight(discoveryUpstreamDO.getWeight()); | ||
| vo.setProps(discoveryUpstreamDO.getProps()); | ||
| vo.setStartupTime(String.valueOf(discoveryUpstreamDO.getDateCreated().getTime())); | ||
| return vo; | ||
| public DiscoveryUpstreamVO mapToVo(DiscoveryUpstreamDO discoveryUpstreamDO) { | ||
| return Optional.ofNullable(discoveryUpstreamDO).map(data -> { | ||
| DiscoveryUpstreamVO vo = new DiscoveryUpstreamVO(); | ||
| vo.setId(data.getId()); | ||
| vo.setDiscoveryHandlerId(data.getDiscoveryHandlerId()); | ||
| vo.setProtocol(data.getProtocol()); | ||
| vo.setUrl(data.getUrl()); | ||
| vo.setStatus(data.getStatus()); | ||
| vo.setWeight(data.getWeight()); | ||
| vo.setProps(data.getProps()); | ||
| vo.setStartupTime(String.valueOf(data.getDateCreated().getTime())); | ||
| return vo; | ||
| }).orElse(null); | ||
| } | ||
|
|
||
|
|
||
| public DiscoveryRelVO mapToVo(DiscoveryRelDO discoveryRelDO) { | ||
| return Optional.ofNullable(discoveryRelDO).map(data -> { | ||
| DiscoveryRelVO discoveryRelVO = new DiscoveryRelVO(); | ||
|
|
@@ -156,18 +159,20 @@ public DiscoveryHandlerVO mapToVo(DiscoveryHandlerDO discoveryDO) { | |
| * @param discoveryUpstreamDO discoveryUpstreamDO | ||
| * @return DiscoveryUpstreamData | ||
| */ | ||
| public DiscoveryUpstreamData mapToData(final DiscoveryUpstreamDO discoveryUpstreamDO) { | ||
| DiscoveryUpstreamData discoveryUpstreamData = new DiscoveryUpstreamData(); | ||
| discoveryUpstreamData.setId(discoveryUpstreamDO.getId()); | ||
| discoveryUpstreamData.setProtocol(discoveryUpstreamDO.getProtocol()); | ||
| discoveryUpstreamData.setUrl(discoveryUpstreamDO.getUrl()); | ||
| discoveryUpstreamData.setStatus(discoveryUpstreamDO.getStatus()); | ||
| discoveryUpstreamData.setDiscoveryHandlerId(discoveryUpstreamDO.getDiscoveryHandlerId()); | ||
| discoveryUpstreamData.setWeight(discoveryUpstreamDO.getWeight()); | ||
| discoveryUpstreamData.setProps(discoveryUpstreamDO.getProps()); | ||
| discoveryUpstreamData.setDateUpdated(discoveryUpstreamDO.getDateUpdated()); | ||
| discoveryUpstreamData.setDateCreated(discoveryUpstreamDO.getDateCreated()); | ||
| return discoveryUpstreamData; | ||
| public DiscoveryUpstreamData mapToData(DiscoveryUpstreamDO discoveryUpstreamDO) { | ||
| return Optional.ofNullable(discoveryUpstreamDO).map(data -> { | ||
| DiscoveryUpstreamData discoveryUpstreamData = new DiscoveryUpstreamData(); | ||
| discoveryUpstreamData.setId(data.getId()); | ||
| discoveryUpstreamData.setProtocol(data.getProtocol()); | ||
| discoveryUpstreamData.setUrl(data.getUrl()); | ||
| discoveryUpstreamData.setStatus(data.getStatus()); | ||
| discoveryUpstreamData.setDiscoveryHandlerId(data.getDiscoveryHandlerId()); | ||
| discoveryUpstreamData.setWeight(data.getWeight()); | ||
| discoveryUpstreamData.setProps(data.getProps()); | ||
| discoveryUpstreamData.setDateUpdated(data.getDateUpdated()); | ||
| discoveryUpstreamData.setDateCreated(data.getDateCreated()); | ||
| return discoveryUpstreamData; | ||
| }).orElse(null); | ||
| } | ||
|
|
||
| /** | ||
|
|
@@ -176,18 +181,20 @@ public DiscoveryUpstreamData mapToData(final DiscoveryUpstreamDO discoveryUpstre | |
| * @param discoveryUpstreamDTO discoveryUpstreamDTO | ||
| * @return DiscoveryUpstreamData | ||
| */ | ||
| public DiscoveryUpstreamData mapToData(final DiscoveryUpstreamDTO discoveryUpstreamDTO) { | ||
| DiscoveryUpstreamData discoveryUpstreamData = new DiscoveryUpstreamData(); | ||
| discoveryUpstreamData.setId(discoveryUpstreamDTO.getId()); | ||
| discoveryUpstreamData.setProtocol(discoveryUpstreamDTO.getProtocol()); | ||
| discoveryUpstreamData.setUrl(discoveryUpstreamDTO.getUrl()); | ||
| discoveryUpstreamData.setStatus(discoveryUpstreamDTO.getStatus()); | ||
| discoveryUpstreamData.setDiscoveryHandlerId(discoveryUpstreamDTO.getDiscoveryHandlerId()); | ||
| discoveryUpstreamData.setWeight(discoveryUpstreamDTO.getWeight()); | ||
| discoveryUpstreamData.setProps(discoveryUpstreamDTO.getProps()); | ||
| discoveryUpstreamData.setDateCreated(discoveryUpstreamDTO.getDateCreated()); | ||
| discoveryUpstreamData.setDateUpdated(discoveryUpstreamDTO.getDateUpdated()); | ||
| return discoveryUpstreamData; | ||
| public DiscoveryUpstreamData mapToData(DiscoveryUpstreamDTO discoveryUpstreamDTO) { | ||
| return Optional.ofNullable(discoveryUpstreamDTO).map(data -> { | ||
| DiscoveryUpstreamData discoveryUpstreamData = new DiscoveryUpstreamData(); | ||
| discoveryUpstreamData.setId(data.getId()); | ||
| discoveryUpstreamData.setProtocol(data.getProtocol()); | ||
| discoveryUpstreamData.setUrl(data.getUrl()); | ||
| discoveryUpstreamData.setStatus(data.getStatus()); | ||
| discoveryUpstreamData.setDiscoveryHandlerId(data.getDiscoveryHandlerId()); | ||
| discoveryUpstreamData.setWeight(data.getWeight()); | ||
| discoveryUpstreamData.setProps(data.getProps()); | ||
| discoveryUpstreamData.setDateCreated(data.getDateCreated()); | ||
| discoveryUpstreamData.setDateUpdated(data.getDateUpdated()); | ||
| return discoveryUpstreamData; | ||
| }).orElse(null); | ||
| } | ||
|
|
||
| /** | ||
|
|
@@ -196,17 +203,19 @@ public DiscoveryUpstreamData mapToData(final DiscoveryUpstreamDTO discoveryUpstr | |
| * @param proxySelectorDTO proxySelectorDTO | ||
| * @return ProxySelectorData | ||
| */ | ||
| public ProxySelectorData mapToData(final ProxySelectorDTO proxySelectorDTO) { | ||
| ProxySelectorData proxySelectorData = new ProxySelectorData(); | ||
| proxySelectorData.setId(proxySelectorDTO.getId()); | ||
| proxySelectorData.setName(proxySelectorDTO.getName()); | ||
| proxySelectorData.setPluginName(proxySelectorDTO.getPluginName()); | ||
| proxySelectorData.setType(proxySelectorDTO.getType()); | ||
| proxySelectorData.setForwardPort(proxySelectorDTO.getForwardPort()); | ||
| String props = proxySelectorDTO.getProps(); | ||
| Properties properties = GsonUtils.getInstance().fromJson(props, Properties.class); | ||
| proxySelectorData.setProps(properties); | ||
| return proxySelectorData; | ||
| public ProxySelectorData mapToData(ProxySelectorDTO proxySelectorDTO) { | ||
| return Optional.ofNullable(proxySelectorDTO).map(data -> { | ||
| ProxySelectorData proxySelectorData = new ProxySelectorData(); | ||
| proxySelectorData.setId(data.getId()); | ||
| proxySelectorData.setName(data.getName()); | ||
| proxySelectorData.setPluginName(data.getPluginName()); | ||
| proxySelectorData.setType(data.getType()); | ||
| proxySelectorData.setForwardPort(data.getForwardPort()); | ||
| String props = data.getProps(); | ||
| Properties properties = GsonUtils.getInstance().fromJson(props, Properties.class); | ||
| proxySelectorData.setProps(properties); | ||
| return proxySelectorData; | ||
| }).orElse(null); | ||
| } | ||
|
|
||
| /** | ||
|
|
@@ -215,17 +224,19 @@ public ProxySelectorData mapToData(final ProxySelectorDTO proxySelectorDTO) { | |
| * @param proxySelectorDO proxySelectorDO | ||
| * @return ProxySelectorData | ||
| */ | ||
| public ProxySelectorData mapToData(final ProxySelectorDO proxySelectorDO) { | ||
| ProxySelectorData proxySelectorData = new ProxySelectorData(); | ||
| proxySelectorData.setId(proxySelectorDO.getId()); | ||
| proxySelectorData.setName(proxySelectorDO.getName()); | ||
| proxySelectorData.setPluginName(proxySelectorDO.getPluginName()); | ||
| proxySelectorData.setType(proxySelectorDO.getType()); | ||
| proxySelectorData.setForwardPort(proxySelectorDO.getForwardPort()); | ||
| String props = proxySelectorDO.getProps(); | ||
| Properties properties = GsonUtils.getInstance().fromJson(props, Properties.class); | ||
| proxySelectorData.setProps(properties); | ||
| return proxySelectorData; | ||
| public ProxySelectorData mapToData(ProxySelectorDO proxySelectorDO) { | ||
| return Optional.ofNullable(proxySelectorDO).map(data -> { | ||
| ProxySelectorData proxySelectorData = new ProxySelectorData(); | ||
| proxySelectorData.setId(data.getId()); | ||
| proxySelectorData.setName(data.getName()); | ||
| proxySelectorData.setPluginName(data.getPluginName()); | ||
| proxySelectorData.setType(data.getType()); | ||
| proxySelectorData.setForwardPort(data.getForwardPort()); | ||
| String props = data.getProps(); | ||
| Properties properties = GsonUtils.getInstance().fromJson(props, Properties.class); | ||
| proxySelectorData.setProps(properties); | ||
| return proxySelectorData; | ||
| }).orElse(null); | ||
| } | ||
|
|
||
| /** | ||
|
|
@@ -234,15 +245,17 @@ public ProxySelectorData mapToData(final ProxySelectorDO proxySelectorDO) { | |
| * @param proxySelectorDO proxySelectorDO | ||
| * @return ProxySelectorDTO | ||
| */ | ||
| public ProxySelectorDTO mapToDTO(final ProxySelectorDO proxySelectorDO) { | ||
| ProxySelectorDTO proxySelectorDTO = new ProxySelectorDTO(); | ||
| proxySelectorDTO.setId(proxySelectorDO.getId()); | ||
| proxySelectorDTO.setName(proxySelectorDO.getName()); | ||
| proxySelectorDTO.setType(proxySelectorDO.getType()); | ||
| proxySelectorDTO.setProps(proxySelectorDO.getProps()); | ||
| proxySelectorDTO.setForwardPort(proxySelectorDO.getForwardPort()); | ||
| proxySelectorDTO.setPluginName(proxySelectorDO.getPluginName()); | ||
| return proxySelectorDTO; | ||
| public ProxySelectorDTO mapToDTO(ProxySelectorDO proxySelectorDO) { | ||
| return Optional.ofNullable(proxySelectorDO).map(data -> { | ||
| ProxySelectorDTO proxySelectorDTO = new ProxySelectorDTO(); | ||
| proxySelectorDTO.setId(data.getId()); | ||
| proxySelectorDTO.setName(data.getName()); | ||
| proxySelectorDTO.setType(data.getType()); | ||
| proxySelectorDTO.setProps(data.getProps()); | ||
| proxySelectorDTO.setForwardPort(data.getForwardPort()); | ||
| proxySelectorDTO.setPluginName(data.getPluginName()); | ||
| return proxySelectorDTO; | ||
| }).orElse(null); | ||
| } | ||
|
|
||
| /** | ||
|
|
@@ -251,14 +264,16 @@ public ProxySelectorDTO mapToDTO(final ProxySelectorDO proxySelectorDO) { | |
| * @param discoveryHandlerDO discoveryHandlerDO | ||
| * @return DiscoveryHandlerDTO | ||
| */ | ||
| public DiscoveryHandlerDTO mapToDTO(final DiscoveryHandlerDO discoveryHandlerDO) { | ||
| DiscoveryHandlerDTO discoveryHandlerDTO = new DiscoveryHandlerDTO(); | ||
| discoveryHandlerDTO.setDiscoveryId(discoveryHandlerDO.getDiscoveryId()); | ||
| discoveryHandlerDTO.setHandler(discoveryHandlerDO.getHandler()); | ||
| discoveryHandlerDTO.setProps(discoveryHandlerDO.getProps()); | ||
| discoveryHandlerDTO.setListenerNode(discoveryHandlerDO.getListenerNode()); | ||
| discoveryHandlerDTO.setId(discoveryHandlerDO.getId()); | ||
| return discoveryHandlerDTO; | ||
| public DiscoveryHandlerDTO mapToDTO(DiscoveryHandlerDO discoveryHandlerDO) { | ||
| return Optional.ofNullable(discoveryHandlerDO).map(data -> { | ||
| DiscoveryHandlerDTO discoveryHandlerDTO = new DiscoveryHandlerDTO(); | ||
| discoveryHandlerDTO.setDiscoveryId(data.getDiscoveryId()); | ||
| discoveryHandlerDTO.setHandler(data.getHandler()); | ||
| discoveryHandlerDTO.setProps(data.getProps()); | ||
| discoveryHandlerDTO.setListenerNode(data.getListenerNode()); | ||
| discoveryHandlerDTO.setId(data.getId()); | ||
| return discoveryHandlerDTO; | ||
| }).orElse(null); | ||
| } | ||
|
|
||
| /** | ||
|
|
@@ -285,18 +300,20 @@ public DiscoveryHandlerDO mapToDO(DiscoveryHandlerDTO discoveryHandlerDTO) { | |
| * @param discoveryUpstreamDO discoveryUpstreamDO | ||
| * @return DiscoveryUpstreamDTO | ||
| */ | ||
| public DiscoveryUpstreamDTO mapToDTO(final DiscoveryUpstreamDO discoveryUpstreamDO) { | ||
| DiscoveryUpstreamDTO discoveryUpstreamDTO = new DiscoveryUpstreamDTO(); | ||
| discoveryUpstreamDTO.setProps(discoveryUpstreamDO.getProps()); | ||
| discoveryUpstreamDTO.setStatus(discoveryUpstreamDO.getStatus()); | ||
| discoveryUpstreamDTO.setUrl(discoveryUpstreamDO.getUrl()); | ||
| discoveryUpstreamDTO.setDiscoveryHandlerId(discoveryUpstreamDO.getDiscoveryHandlerId()); | ||
| discoveryUpstreamDTO.setProtocol(discoveryUpstreamDO.getProtocol()); | ||
| discoveryUpstreamDTO.setId(discoveryUpstreamDO.getId()); | ||
| discoveryUpstreamDTO.setWeight(discoveryUpstreamDO.getWeight()); | ||
| discoveryUpstreamDTO.setDateCreated(discoveryUpstreamDO.getDateCreated()); | ||
| discoveryUpstreamDTO.setDateUpdated(discoveryUpstreamDO.getDateUpdated()); | ||
| return discoveryUpstreamDTO; | ||
| public DiscoveryUpstreamDTO mapToDTO(DiscoveryUpstreamDO discoveryUpstreamDO) { | ||
| return Optional.ofNullable(discoveryUpstreamDO).map(data -> { | ||
| DiscoveryUpstreamDTO discoveryUpstreamDTO = new DiscoveryUpstreamDTO(); | ||
| discoveryUpstreamDTO.setProps(data.getProps()); | ||
| discoveryUpstreamDTO.setStatus(data.getStatus()); | ||
| discoveryUpstreamDTO.setUrl(data.getUrl()); | ||
| discoveryUpstreamDTO.setDiscoveryHandlerId(data.getDiscoveryHandlerId()); | ||
| discoveryUpstreamDTO.setProtocol(data.getProtocol()); | ||
| discoveryUpstreamDTO.setId(data.getId()); | ||
| discoveryUpstreamDTO.setWeight(data.getWeight()); | ||
| discoveryUpstreamDTO.setDateCreated(data.getDateCreated()); | ||
| discoveryUpstreamDTO.setDateUpdated(data.getDateUpdated()); | ||
| return discoveryUpstreamDTO; | ||
| }).orElse(null); | ||
| } | ||
|
|
||
| } | ||
You are viewing a condensed version of this merge commit. You can view the full changes here.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.