repo_name
stringclasses
5 values
pr_number
int64
1.52k
15.5k
pr_title
stringlengths
8
143
pr_description
stringlengths
0
10.2k
author
stringlengths
3
18
date_created
timestamp[ns, tz=UTC]
date_merged
timestamp[ns, tz=UTC]
previous_commit
stringlengths
40
40
pr_commit
stringlengths
40
40
query
stringlengths
11
10.2k
filepath
stringlengths
6
220
before_content
stringlengths
0
597M
after_content
stringlengths
0
597M
label
int64
-1
1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./doc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><;q<e7Nk}*e0ݖj؇H梚Oq qرcݻg?:ubFjeU?™:U^e\F)իWLS.\3w`-e .Vovg0Zfm&j/" " " " " " " [@>X2;Vxf߰s,qdzn=%RMP2e1rJ3{1~E\rƍa,`/^hdgkLƈU vq}vۿ|~rFRˋ;R?Ēp2zpyxxx>i#"ڵ+?Te'ZƺNX.)KGKG&_"a!O[jj#" " " " " " "  @`ľ%vXo-{{d҃z%[[43nedJ1?ցZE@b->:}!F<c@۽{w=M|)yD 1ٳA<Cc 1y 6^Gamt'A<DKv4vLlf&n)?6[&IKMyTM]eԗ}Xt +N/YqeNY'L ܮ)+<XKu`vbaIU,*Eh.pp9D6ȋQ1/PG\Du{X:',57g!;sⰵ4ͻvc ;3#鯍$KD@D@D@D@D@D@D@օ}a}50-77|f_޶d砥-aV[+<^[Ԏ|9(9Z8Q!;W8QJ9υG6u"L o?}Ԇ{u"su}qh]u<lcKl" " " " " " " ":Q%D2dg^}u'~&wtQKDm}t8.w7@_T9o2vxq:XgVhھRCV~o7VxcY2eɖ &,^ZE:qV1MRJa*oet+^D@D@D@D@D@D@D@2#%RliɎgR*,ߍKP^an#R\D@D@D@D@D@D@D@֎@}5#E@D@D@D@D@D@D@D@D`4˵:`˨<IENDB`
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-common/src/main/java/com/ctrip/framework/apollo/common/constants/GsonType.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.common.constants; import com.google.gson.reflect.TypeToken; import com.ctrip.framework.apollo.common.dto.GrayReleaseRuleItemDTO; import java.lang.reflect.Type; import java.util.List; import java.util.Map; public interface GsonType { Type CONFIG = new TypeToken<Map<String, String>>() {}.getType(); Type RULE_ITEMS = new TypeToken<List<GrayReleaseRuleItemDTO>>() {}.getType(); }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.common.constants; import com.google.gson.reflect.TypeToken; import com.ctrip.framework.apollo.common.dto.GrayReleaseRuleItemDTO; import java.lang.reflect.Type; import java.util.List; import java.util.Map; public interface GsonType { Type CONFIG = new TypeToken<Map<String, String>>() {}.getType(); Type RULE_ITEMS = new TypeToken<List<GrayReleaseRuleItemDTO>>() {}.getType(); }
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/UserInfoController.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.controller; import com.ctrip.framework.apollo.common.exception.BadRequestException; import com.ctrip.framework.apollo.core.utils.StringUtils; import com.ctrip.framework.apollo.portal.entity.bo.UserInfo; import com.ctrip.framework.apollo.portal.entity.po.UserPO; import com.ctrip.framework.apollo.portal.spi.LogoutHandler; import com.ctrip.framework.apollo.portal.spi.UserInfoHolder; import com.ctrip.framework.apollo.portal.spi.UserService; import com.ctrip.framework.apollo.portal.spi.springsecurity.SpringSecurityUserService; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.List; @RestController public class UserInfoController { private final UserInfoHolder userInfoHolder; private final LogoutHandler logoutHandler; private final UserService userService; public UserInfoController( final UserInfoHolder userInfoHolder, final LogoutHandler logoutHandler, final UserService userService) { this.userInfoHolder = userInfoHolder; this.logoutHandler = logoutHandler; this.userService = userService; } @PreAuthorize(value = "@permissionValidator.isSuperAdmin()") @PostMapping("/users") public void createOrUpdateUser(@RequestBody UserPO user) { if (StringUtils.isContainEmpty(user.getUsername(), user.getPassword())) { throw new BadRequestException("Username and password can not be empty."); } if (userService instanceof SpringSecurityUserService) { ((SpringSecurityUserService) userService).createOrUpdate(user); } else { throw new UnsupportedOperationException("Create or update user operation is unsupported"); } } @GetMapping("/user") public UserInfo getCurrentUserName() { return userInfoHolder.getUser(); } @GetMapping("/user/logout") public void logout(HttpServletRequest request, HttpServletResponse response) throws IOException { logoutHandler.logout(request, response); } @GetMapping("/users") public List<UserInfo> searchUsersByKeyword(@RequestParam(value = "keyword") String keyword, @RequestParam(value = "offset", defaultValue = "0") int offset, @RequestParam(value = "limit", defaultValue = "10") int limit) { return userService.searchUsers(keyword, offset, limit); } @GetMapping("/users/{userId}") public UserInfo getUserByUserId(@PathVariable String userId) { return userService.findByUserId(userId); } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.controller; import com.ctrip.framework.apollo.common.exception.BadRequestException; import com.ctrip.framework.apollo.core.utils.StringUtils; import com.ctrip.framework.apollo.portal.entity.bo.UserInfo; import com.ctrip.framework.apollo.portal.entity.po.UserPO; import com.ctrip.framework.apollo.portal.spi.LogoutHandler; import com.ctrip.framework.apollo.portal.spi.UserInfoHolder; import com.ctrip.framework.apollo.portal.spi.UserService; import com.ctrip.framework.apollo.portal.spi.springsecurity.SpringSecurityUserService; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.List; @RestController public class UserInfoController { private final UserInfoHolder userInfoHolder; private final LogoutHandler logoutHandler; private final UserService userService; public UserInfoController( final UserInfoHolder userInfoHolder, final LogoutHandler logoutHandler, final UserService userService) { this.userInfoHolder = userInfoHolder; this.logoutHandler = logoutHandler; this.userService = userService; } @PreAuthorize(value = "@permissionValidator.isSuperAdmin()") @PostMapping("/users") public void createOrUpdateUser(@RequestBody UserPO user) { if (StringUtils.isContainEmpty(user.getUsername(), user.getPassword())) { throw new BadRequestException("Username and password can not be empty."); } if (userService instanceof SpringSecurityUserService) { ((SpringSecurityUserService) userService).createOrUpdate(user); } else { throw new UnsupportedOperationException("Create or update user operation is unsupported"); } } @GetMapping("/user") public UserInfo getCurrentUserName() { return userInfoHolder.getUser(); } @GetMapping("/user/logout") public void logout(HttpServletRequest request, HttpServletResponse response) throws IOException { logoutHandler.logout(request, response); } @GetMapping("/users") public List<UserInfo> searchUsersByKeyword(@RequestParam(value = "keyword") String keyword, @RequestParam(value = "offset", defaultValue = "0") int offset, @RequestParam(value = "limit", defaultValue = "10") int limit) { return userService.searchUsers(keyword, offset, limit); } @GetMapping("/users/{userId}") public UserInfo getUserByUserId(@PathVariable String userId) { return userService.findByUserId(userId); } }
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-buildtools/style/eclipse-java-google-style.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- ~ Copyright 2021 Apollo Authors ~ ~ Licensed 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. ~ --> <profiles version="13"> <profile kind="CodeFormatterProfile" name="GoogleStyle" version="13"> <setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.disabling_tag" value="@formatter:off"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries" value="true"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_cascading_method_invocation_with_arguments.count_dependent" value="16|-1|16"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_before_field" value="0"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.use_on_off_tags" value="true"/> <setting id="org.eclipse.jdt.core.formatter.wrap_prefer_two_fragments" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.wrap_comment_inline_tags" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_local_variable_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_multiple_fields" value="16"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_parameter" value="1040"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer" value="16"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_type.count_dependent" value="1585|-1|1585"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_conditional_expression" value="80"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_multiple_fields.count_dependent" value="16|-1|16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_binary_operator" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_array_initializer" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_after_package" value="1"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression.count_dependent" value="16|4|80"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration.count_dependent" value="16|4|48"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.continuation_indentation" value="2"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration.count_dependent" value="16|4|49"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk" value="1"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_binary_operator" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_before_package" value="0"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_cascading_method_invocation_with_arguments" value="16"/> <setting id="org.eclipse.jdt.core.compiler.source" value="1.7"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration.count_dependent" value="16|4|48"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.format_line_comments" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.join_wrapped_lines" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call" value="16"/> <setting id="org.eclipse.jdt.core.formatter.wrap_non_simple_local_variable_annotation" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.align_type_members_on_columns" value="false"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_before_member_type" value="0"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_enum_constants.count_dependent" value="16|5|48"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_unary_operator" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.indent_parameter_description" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.lineSplit" value="100"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation.count_dependent" value="16|4|48"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration" value="0"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.indentation.size" value="4"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.enabling_tag" value="@formatter:on"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_package" value="1585"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_assignment" value="16"/> <setting id="org.eclipse.jdt.core.compiler.problem.assertIdentifier" value="error"/> <setting id="org.eclipse.jdt.core.formatter.tabulation.char" value="space"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.indent_statements_compare_to_body" value="true"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_before_method" value="1"/> <setting id="org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested" value="true"/> <setting id="org.eclipse.jdt.core.formatter.wrap_non_simple_type_annotation" value="true"/> <setting id="org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_field_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_method_declaration" value="0"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_switch" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments" value="do not insert"/> <setting id="org.eclipse.jdt.core.compiler.problem.enumIdentifier" value="error"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_generic_type_arguments" value="16"/> <setting id="org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch" value="true"/> <setting id="org.eclipse.jdt.core.formatter.comment_new_line_at_start_of_html_paragraph" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_ellipsis" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_block" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comment_prefix" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_method_declaration" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.compact_else_if" value="true"/> <setting id="org.eclipse.jdt.core.formatter.wrap_non_simple_parameter_annotation" value="false"/> <setting id="org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_method" value="1585"/> <setting id="org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.indent_root_tags" value="true"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_enum_constant" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.tabulation.size" value="2"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation.count_dependent" value="16|5|80"/> <setting id="org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment" value="false"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_parameter.count_dependent" value="1040|-1|1040"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_package.count_dependent" value="1585|-1|1585"/> <setting id="org.eclipse.jdt.core.formatter.indent_empty_lines" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.force_if_else_statement_brace" value="true"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_block_in_case" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve" value="3"/> <setting id="org.eclipse.jdt.core.formatter.wrap_non_simple_package_annotation" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression" value="16"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation.count_dependent" value="16|-1|16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_type" value="1585"/> <setting id="org.eclipse.jdt.core.compiler.compliance" value="1.7"/> <setting id="org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer" value="2"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_unary_operator" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_new_anonymous_class" value="20"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_local_variable.count_dependent" value="1585|-1|1585"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_field.count_dependent" value="1585|-1|1585"/> <setting id="org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration.count_dependent" value="16|5|80"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_binary_expression" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type" value="insert"/> <setting id="org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode" value="enabled"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_label" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.format_javadoc_comments" value="true"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant.count_dependent" value="16|-1|16"/> <setting id="org.eclipse.jdt.core.formatter.comment.line_length" value="100"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_between_import_groups" value="0"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body" value="0"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.wrap_before_binary_operator" value="true"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations" value="2"/> <setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.indent_statements_compare_to_block" value="true"/> <setting id="org.eclipse.jdt.core.formatter.join_lines_in_comments" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_compact_if" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_before_imports" value="0"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_field" value="1585"/> <setting id="org.eclipse.jdt.core.formatter.comment.format_html" value="true"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer.count_dependent" value="16|5|80"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.format_source_code" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer" value="do not insert"/> <setting id="org.eclipse.jdt.core.compiler.codegen.targetPlatform" value="1.7"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_resources_in_try" value="80"/> <setting id="org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations" value="false"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation" value="16"/> <setting id="org.eclipse.jdt.core.formatter.comment.format_header" value="true"/> <setting id="org.eclipse.jdt.core.formatter.comment.format_block_comments" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_enum_constants" value="0"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration.count_dependent" value="16|4|48"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_method.count_dependent" value="1585|-1|1585"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_type_declaration" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_binary_expression.count_dependent" value="16|-1|16"/> <setting id="org.eclipse.jdt.core.formatter.wrap_non_simple_member_annotation" value="true"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_local_variable" value="1585"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call.count_dependent" value="16|5|80"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_generic_type_arguments.count_dependent" value="16|-1|16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression.count_dependent" value="16|5|80"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration.count_dependent" value="16|5|80"/> <setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries" value="true"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_after_imports" value="1"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_for_statement" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column" value="false"/> <setting id="org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line" value="false"/> </profile> </profiles>
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- ~ Copyright 2021 Apollo Authors ~ ~ Licensed 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. ~ --> <profiles version="13"> <profile kind="CodeFormatterProfile" name="GoogleStyle" version="13"> <setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.disabling_tag" value="@formatter:off"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries" value="true"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_cascading_method_invocation_with_arguments.count_dependent" value="16|-1|16"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_before_field" value="0"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.use_on_off_tags" value="true"/> <setting id="org.eclipse.jdt.core.formatter.wrap_prefer_two_fragments" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.wrap_comment_inline_tags" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_local_variable_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_multiple_fields" value="16"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_parameter" value="1040"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer" value="16"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_type.count_dependent" value="1585|-1|1585"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_conditional_expression" value="80"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_multiple_fields.count_dependent" value="16|-1|16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_binary_operator" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_array_initializer" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_after_package" value="1"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression.count_dependent" value="16|4|80"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration.count_dependent" value="16|4|48"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.continuation_indentation" value="2"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration.count_dependent" value="16|4|49"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk" value="1"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_binary_operator" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_before_package" value="0"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_cascading_method_invocation_with_arguments" value="16"/> <setting id="org.eclipse.jdt.core.compiler.source" value="1.7"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration.count_dependent" value="16|4|48"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.format_line_comments" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.join_wrapped_lines" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call" value="16"/> <setting id="org.eclipse.jdt.core.formatter.wrap_non_simple_local_variable_annotation" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.align_type_members_on_columns" value="false"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_before_member_type" value="0"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_enum_constants.count_dependent" value="16|5|48"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_unary_operator" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.indent_parameter_description" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.lineSplit" value="100"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation.count_dependent" value="16|4|48"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration" value="0"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.indentation.size" value="4"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.enabling_tag" value="@formatter:on"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_package" value="1585"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_assignment" value="16"/> <setting id="org.eclipse.jdt.core.compiler.problem.assertIdentifier" value="error"/> <setting id="org.eclipse.jdt.core.formatter.tabulation.char" value="space"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.indent_statements_compare_to_body" value="true"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_before_method" value="1"/> <setting id="org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested" value="true"/> <setting id="org.eclipse.jdt.core.formatter.wrap_non_simple_type_annotation" value="true"/> <setting id="org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_field_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_method_declaration" value="0"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_switch" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments" value="do not insert"/> <setting id="org.eclipse.jdt.core.compiler.problem.enumIdentifier" value="error"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_generic_type_arguments" value="16"/> <setting id="org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch" value="true"/> <setting id="org.eclipse.jdt.core.formatter.comment_new_line_at_start_of_html_paragraph" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_ellipsis" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_block" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comment_prefix" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_method_declaration" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.compact_else_if" value="true"/> <setting id="org.eclipse.jdt.core.formatter.wrap_non_simple_parameter_annotation" value="false"/> <setting id="org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_method" value="1585"/> <setting id="org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.indent_root_tags" value="true"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_enum_constant" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.tabulation.size" value="2"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation.count_dependent" value="16|5|80"/> <setting id="org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment" value="false"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_parameter.count_dependent" value="1040|-1|1040"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_package.count_dependent" value="1585|-1|1585"/> <setting id="org.eclipse.jdt.core.formatter.indent_empty_lines" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.force_if_else_statement_brace" value="true"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_block_in_case" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve" value="3"/> <setting id="org.eclipse.jdt.core.formatter.wrap_non_simple_package_annotation" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression" value="16"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation.count_dependent" value="16|-1|16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_type" value="1585"/> <setting id="org.eclipse.jdt.core.compiler.compliance" value="1.7"/> <setting id="org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer" value="2"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_unary_operator" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_new_anonymous_class" value="20"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_local_variable.count_dependent" value="1585|-1|1585"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_field.count_dependent" value="1585|-1|1585"/> <setting id="org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration.count_dependent" value="16|5|80"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_binary_expression" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type" value="insert"/> <setting id="org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode" value="enabled"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_label" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.format_javadoc_comments" value="true"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant.count_dependent" value="16|-1|16"/> <setting id="org.eclipse.jdt.core.formatter.comment.line_length" value="100"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_between_import_groups" value="0"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body" value="0"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.wrap_before_binary_operator" value="true"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations" value="2"/> <setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.indent_statements_compare_to_block" value="true"/> <setting id="org.eclipse.jdt.core.formatter.join_lines_in_comments" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_compact_if" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_before_imports" value="0"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_field" value="1585"/> <setting id="org.eclipse.jdt.core.formatter.comment.format_html" value="true"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer.count_dependent" value="16|5|80"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.comment.format_source_code" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer" value="do not insert"/> <setting id="org.eclipse.jdt.core.compiler.codegen.targetPlatform" value="1.7"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_resources_in_try" value="80"/> <setting id="org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations" value="false"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation" value="16"/> <setting id="org.eclipse.jdt.core.formatter.comment.format_header" value="true"/> <setting id="org.eclipse.jdt.core.formatter.comment.format_block_comments" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_enum_constants" value="0"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration.count_dependent" value="16|4|48"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_method.count_dependent" value="1585|-1|1585"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.brace_position_for_type_declaration" value="end_of_line"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_binary_expression.count_dependent" value="16|-1|16"/> <setting id="org.eclipse.jdt.core.formatter.wrap_non_simple_member_annotation" value="true"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_annotations_on_local_variable" value="1585"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call.count_dependent" value="16|5|80"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_generic_type_arguments.count_dependent" value="16|-1|16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression.count_dependent" value="16|5|80"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration.count_dependent" value="16|5|80"/> <setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries" value="true"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_after_imports" value="1"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header" value="true"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column" value="false"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.alignment_for_for_statement" value="16"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments" value="do not insert"/> <setting id="org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column" value="false"/> <setting id="org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line" value="false"/> </profile> </profiles>
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/environment/DefaultPortalMetaServerProvider.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.environment; import static com.ctrip.framework.apollo.portal.environment.Env.transformToEnvMap; import com.ctrip.framework.apollo.core.utils.ResourceUtils; import com.ctrip.framework.apollo.portal.util.KeyValueUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.Map; import java.util.Properties; import java.util.concurrent.ConcurrentHashMap; /** * Only use in apollo-portal * load all meta server address from * - System Property [key ends with "_meta" (case insensitive)] * - OS environment variable [key ends with "_meta" (case insensitive)] * - user's configuration file [key ends with ".meta" (case insensitive)] * when apollo-portal start up. * @see com.ctrip.framework.apollo.core.internals.LegacyMetaServerProvider * @author wxq */ class DefaultPortalMetaServerProvider implements PortalMetaServerProvider { private static final Logger logger = LoggerFactory.getLogger(DefaultPortalMetaServerProvider.class); /** * environments and their meta server address * properties file path */ private static final String APOLLO_ENV_PROPERTIES_FILE_PATH = "apollo-env.properties"; private volatile Map<Env, String> domains; DefaultPortalMetaServerProvider() { reload(); } @Override public String getMetaServerAddress(Env targetEnv) { String metaServerAddress = domains.get(targetEnv); return metaServerAddress == null ? null : metaServerAddress.trim(); } @Override public boolean exists(Env targetEnv) { return domains.containsKey(targetEnv); } @Override public void reload() { domains = initializeDomains(); logger.info("Loaded meta server addresses from system property, os environment and properties file: {}", domains); } /** * load all environment's meta address dynamically when this class loaded by JVM */ private Map<Env, String> initializeDomains() { // add to domain Map<Env, String> map = new ConcurrentHashMap<>(); // lower priority add first map.putAll(getDomainsFromPropertiesFile()); map.putAll(getDomainsFromOSEnvironment()); map.putAll(getDomainsFromSystemProperty()); // log all return map; } private Map<Env, String> getDomainsFromSystemProperty() { // find key-value from System Property which key ends with "_meta" (case insensitive) Map<String, String> metaServerAddressesFromSystemProperty = KeyValueUtils.filterWithKeyIgnoreCaseEndsWith(System.getProperties(), "_meta"); // remove key's suffix "_meta" (case insensitive) metaServerAddressesFromSystemProperty = KeyValueUtils.removeKeySuffix(metaServerAddressesFromSystemProperty, "_meta".length()); return transformToEnvMap(metaServerAddressesFromSystemProperty); } private Map<Env, String> getDomainsFromOSEnvironment() { // find key-value from OS environment variable which key ends with "_meta" (case insensitive) Map<String, String> metaServerAddressesFromOSEnvironment = KeyValueUtils.filterWithKeyIgnoreCaseEndsWith(System.getenv(), "_meta"); // remove key's suffix "_meta" (case insensitive) metaServerAddressesFromOSEnvironment = KeyValueUtils.removeKeySuffix(metaServerAddressesFromOSEnvironment, "_meta".length()); return transformToEnvMap(metaServerAddressesFromOSEnvironment); } private Map<Env, String> getDomainsFromPropertiesFile() { // find key-value from properties file which key ends with ".meta" (case insensitive) Properties properties = new Properties(); properties = ResourceUtils.readConfigFile(APOLLO_ENV_PROPERTIES_FILE_PATH, properties); Map<String, String> metaServerAddressesFromPropertiesFile = KeyValueUtils.filterWithKeyIgnoreCaseEndsWith(properties, ".meta"); // remove key's suffix ".meta" (case insensitive) metaServerAddressesFromPropertiesFile = KeyValueUtils.removeKeySuffix(metaServerAddressesFromPropertiesFile, ".meta".length()); return transformToEnvMap(metaServerAddressesFromPropertiesFile); } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.environment; import static com.ctrip.framework.apollo.portal.environment.Env.transformToEnvMap; import com.ctrip.framework.apollo.core.utils.ResourceUtils; import com.ctrip.framework.apollo.portal.util.KeyValueUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.Map; import java.util.Properties; import java.util.concurrent.ConcurrentHashMap; /** * Only use in apollo-portal * load all meta server address from * - System Property [key ends with "_meta" (case insensitive)] * - OS environment variable [key ends with "_meta" (case insensitive)] * - user's configuration file [key ends with ".meta" (case insensitive)] * when apollo-portal start up. * @see com.ctrip.framework.apollo.core.internals.LegacyMetaServerProvider * @author wxq */ class DefaultPortalMetaServerProvider implements PortalMetaServerProvider { private static final Logger logger = LoggerFactory.getLogger(DefaultPortalMetaServerProvider.class); /** * environments and their meta server address * properties file path */ private static final String APOLLO_ENV_PROPERTIES_FILE_PATH = "apollo-env.properties"; private volatile Map<Env, String> domains; DefaultPortalMetaServerProvider() { reload(); } @Override public String getMetaServerAddress(Env targetEnv) { String metaServerAddress = domains.get(targetEnv); return metaServerAddress == null ? null : metaServerAddress.trim(); } @Override public boolean exists(Env targetEnv) { return domains.containsKey(targetEnv); } @Override public void reload() { domains = initializeDomains(); logger.info("Loaded meta server addresses from system property, os environment and properties file: {}", domains); } /** * load all environment's meta address dynamically when this class loaded by JVM */ private Map<Env, String> initializeDomains() { // add to domain Map<Env, String> map = new ConcurrentHashMap<>(); // lower priority add first map.putAll(getDomainsFromPropertiesFile()); map.putAll(getDomainsFromOSEnvironment()); map.putAll(getDomainsFromSystemProperty()); // log all return map; } private Map<Env, String> getDomainsFromSystemProperty() { // find key-value from System Property which key ends with "_meta" (case insensitive) Map<String, String> metaServerAddressesFromSystemProperty = KeyValueUtils.filterWithKeyIgnoreCaseEndsWith(System.getProperties(), "_meta"); // remove key's suffix "_meta" (case insensitive) metaServerAddressesFromSystemProperty = KeyValueUtils.removeKeySuffix(metaServerAddressesFromSystemProperty, "_meta".length()); return transformToEnvMap(metaServerAddressesFromSystemProperty); } private Map<Env, String> getDomainsFromOSEnvironment() { // find key-value from OS environment variable which key ends with "_meta" (case insensitive) Map<String, String> metaServerAddressesFromOSEnvironment = KeyValueUtils.filterWithKeyIgnoreCaseEndsWith(System.getenv(), "_meta"); // remove key's suffix "_meta" (case insensitive) metaServerAddressesFromOSEnvironment = KeyValueUtils.removeKeySuffix(metaServerAddressesFromOSEnvironment, "_meta".length()); return transformToEnvMap(metaServerAddressesFromOSEnvironment); } private Map<Env, String> getDomainsFromPropertiesFile() { // find key-value from properties file which key ends with ".meta" (case insensitive) Properties properties = new Properties(); properties = ResourceUtils.readConfigFile(APOLLO_ENV_PROPERTIES_FILE_PATH, properties); Map<String, String> metaServerAddressesFromPropertiesFile = KeyValueUtils.filterWithKeyIgnoreCaseEndsWith(properties, ".meta"); // remove key's suffix ".meta" (case insensitive) metaServerAddressesFromPropertiesFile = KeyValueUtils.removeKeySuffix(metaServerAddressesFromPropertiesFile, ".meta".length()); return transformToEnvMap(metaServerAddressesFromPropertiesFile); } }
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./doc/images/gray-release/initial-instance-list.png
PNG  IHDR,IQ IDATx|]ř+]bE.r l abc1wB R|awMvSIfCؐ[ `z3`L16ݖd+}gĈ{eI\^3gsΙޙjhhh0NO ӗPp$B.B@b^9Q*H5 " " " " " " " " ]ļ.rTLk@D@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aYgYׂ|+k;~x&[i^hO<^ZVhvevԠvϜvi'(+m^a~~۶ɽbhM^c<^t{!Tڒ%KžyBH8Rr\^\t\8 B"#"?vy煥l/+6n^1vpXaA z8p`x<g|-"DF?,C,;fٲ;C(DГkXͱgޭffʆiO}&bzuJ+*3]Vmi`3>ɞxw-]ɲ2R܂lOWL>yT*" " " " " " "*:žo.P97yÒQ  2D*<ls,gE k xi|xg}^WTTd&L\|I;S5=ѣGe쫷y}b}ݱL駟pcƌ /0bosυ:ujH˯G,޽{%9?ې~l'l]vK -se-^{m}=۠ڔqByf֥ /,m;Q " " " " " " " APUpeIENDB`
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-client/src/main/java/com/ctrip/framework/apollo/spring/property/AutoUpdateConfigChangeListener.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.spring.property; import com.ctrip.framework.apollo.ConfigChangeListener; import com.ctrip.framework.apollo.model.ConfigChangeEvent; import com.ctrip.framework.apollo.spring.util.SpringInjector; import com.google.gson.Gson; import java.lang.reflect.Field; import java.lang.reflect.Type; import java.util.Collection; import java.util.Set; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.TypeConverter; import org.springframework.beans.factory.config.ConfigurableBeanFactory; import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; import org.springframework.core.env.Environment; import org.springframework.util.CollectionUtils; /** * Create by zhangzheng on 2018/3/6 */ public class AutoUpdateConfigChangeListener implements ConfigChangeListener{ private static final Logger logger = LoggerFactory.getLogger(AutoUpdateConfigChangeListener.class); private final boolean typeConverterHasConvertIfNecessaryWithFieldParameter; private final Environment environment; private final ConfigurableBeanFactory beanFactory; private final TypeConverter typeConverter; private final PlaceholderHelper placeholderHelper; private final SpringValueRegistry springValueRegistry; private final Gson gson; public AutoUpdateConfigChangeListener(Environment environment, ConfigurableListableBeanFactory beanFactory){ this.typeConverterHasConvertIfNecessaryWithFieldParameter = testTypeConverterHasConvertIfNecessaryWithFieldParameter(); this.beanFactory = beanFactory; this.typeConverter = this.beanFactory.getTypeConverter(); this.environment = environment; this.placeholderHelper = SpringInjector.getInstance(PlaceholderHelper.class); this.springValueRegistry = SpringInjector.getInstance(SpringValueRegistry.class); this.gson = new Gson(); } @Override public void onChange(ConfigChangeEvent changeEvent) { Set<String> keys = changeEvent.changedKeys(); if (CollectionUtils.isEmpty(keys)) { return; } for (String key : keys) { // 1. check whether the changed key is relevant Collection<SpringValue> targetValues = springValueRegistry.get(beanFactory, key); if (targetValues == null || targetValues.isEmpty()) { continue; } // 2. update the value for (SpringValue val : targetValues) { updateSpringValue(val); } } } private void updateSpringValue(SpringValue springValue) { try { Object value = resolvePropertyValue(springValue); springValue.update(value); logger.info("Auto update apollo changed value successfully, new value: {}, {}", value, springValue); } catch (Throwable ex) { logger.error("Auto update apollo changed value failed, {}", springValue.toString(), ex); } } /** * Logic transplanted from DefaultListableBeanFactory * @see org.springframework.beans.factory.support.DefaultListableBeanFactory#doResolveDependency(org.springframework.beans.factory.config.DependencyDescriptor, java.lang.String, java.util.Set, org.springframework.beans.TypeConverter) */ private Object resolvePropertyValue(SpringValue springValue) { // value will never be null, as @Value and @ApolloJsonValue will not allow that Object value = placeholderHelper .resolvePropertyValue(beanFactory, springValue.getBeanName(), springValue.getPlaceholder()); if (springValue.isJson()) { value = parseJsonValue((String)value, springValue.getGenericType()); } else { if (springValue.isField()) { // org.springframework.beans.TypeConverter#convertIfNecessary(java.lang.Object, java.lang.Class, java.lang.reflect.Field) is available from Spring 3.2.0+ if (typeConverterHasConvertIfNecessaryWithFieldParameter) { value = this.typeConverter .convertIfNecessary(value, springValue.getTargetType(), springValue.getField()); } else { value = this.typeConverter.convertIfNecessary(value, springValue.getTargetType()); } } else { value = this.typeConverter.convertIfNecessary(value, springValue.getTargetType(), springValue.getMethodParameter()); } } return value; } private Object parseJsonValue(String json, Type targetType) { try { return gson.fromJson(json, targetType); } catch (Throwable ex) { logger.error("Parsing json '{}' to type {} failed!", json, targetType, ex); throw ex; } } private boolean testTypeConverterHasConvertIfNecessaryWithFieldParameter() { try { TypeConverter.class.getMethod("convertIfNecessary", Object.class, Class.class, Field.class); } catch (Throwable ex) { return false; } return true; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.spring.property; import com.ctrip.framework.apollo.ConfigChangeListener; import com.ctrip.framework.apollo.model.ConfigChangeEvent; import com.ctrip.framework.apollo.spring.util.SpringInjector; import com.google.gson.Gson; import java.lang.reflect.Field; import java.lang.reflect.Type; import java.util.Collection; import java.util.Set; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.TypeConverter; import org.springframework.beans.factory.config.ConfigurableBeanFactory; import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; import org.springframework.core.env.Environment; import org.springframework.util.CollectionUtils; /** * Create by zhangzheng on 2018/3/6 */ public class AutoUpdateConfigChangeListener implements ConfigChangeListener{ private static final Logger logger = LoggerFactory.getLogger(AutoUpdateConfigChangeListener.class); private final boolean typeConverterHasConvertIfNecessaryWithFieldParameter; private final Environment environment; private final ConfigurableBeanFactory beanFactory; private final TypeConverter typeConverter; private final PlaceholderHelper placeholderHelper; private final SpringValueRegistry springValueRegistry; private final Gson gson; public AutoUpdateConfigChangeListener(Environment environment, ConfigurableListableBeanFactory beanFactory){ this.typeConverterHasConvertIfNecessaryWithFieldParameter = testTypeConverterHasConvertIfNecessaryWithFieldParameter(); this.beanFactory = beanFactory; this.typeConverter = this.beanFactory.getTypeConverter(); this.environment = environment; this.placeholderHelper = SpringInjector.getInstance(PlaceholderHelper.class); this.springValueRegistry = SpringInjector.getInstance(SpringValueRegistry.class); this.gson = new Gson(); } @Override public void onChange(ConfigChangeEvent changeEvent) { Set<String> keys = changeEvent.changedKeys(); if (CollectionUtils.isEmpty(keys)) { return; } for (String key : keys) { // 1. check whether the changed key is relevant Collection<SpringValue> targetValues = springValueRegistry.get(beanFactory, key); if (targetValues == null || targetValues.isEmpty()) { continue; } // 2. update the value for (SpringValue val : targetValues) { updateSpringValue(val); } } } private void updateSpringValue(SpringValue springValue) { try { Object value = resolvePropertyValue(springValue); springValue.update(value); logger.info("Auto update apollo changed value successfully, new value: {}, {}", value, springValue); } catch (Throwable ex) { logger.error("Auto update apollo changed value failed, {}", springValue.toString(), ex); } } /** * Logic transplanted from DefaultListableBeanFactory * @see org.springframework.beans.factory.support.DefaultListableBeanFactory#doResolveDependency(org.springframework.beans.factory.config.DependencyDescriptor, java.lang.String, java.util.Set, org.springframework.beans.TypeConverter) */ private Object resolvePropertyValue(SpringValue springValue) { // value will never be null, as @Value and @ApolloJsonValue will not allow that Object value = placeholderHelper .resolvePropertyValue(beanFactory, springValue.getBeanName(), springValue.getPlaceholder()); if (springValue.isJson()) { value = parseJsonValue((String)value, springValue.getGenericType()); } else { if (springValue.isField()) { // org.springframework.beans.TypeConverter#convertIfNecessary(java.lang.Object, java.lang.Class, java.lang.reflect.Field) is available from Spring 3.2.0+ if (typeConverterHasConvertIfNecessaryWithFieldParameter) { value = this.typeConverter .convertIfNecessary(value, springValue.getTargetType(), springValue.getField()); } else { value = this.typeConverter.convertIfNecessary(value, springValue.getTargetType()); } } else { value = this.typeConverter.convertIfNecessary(value, springValue.getTargetType(), springValue.getMethodParameter()); } } return value; } private Object parseJsonValue(String json, Type targetType) { try { return gson.fromJson(json, targetType); } catch (Throwable ex) { logger.error("Parsing json '{}' to type {} failed!", json, targetType, ex); throw ex; } } private boolean testTypeConverterHasConvertIfNecessaryWithFieldParameter() { try { TypeConverter.class.getMethod("convertIfNecessary", Object.class, Class.class, Field.class); } catch (Throwable ex) { return false; } return true; } }
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-demo/src/main/java/com/ctrip/framework/apollo/demo/spring/xmlConfigDemo/bean/XmlBean.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.demo.spring.xmlConfigDemo.bean; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * @author Jason Song([email protected]) */ public class XmlBean { private static final Logger logger = LoggerFactory.getLogger(XmlBean.class); private int timeout; private int batch; public void setTimeout(int timeout) { logger.info("updating timeout, old value: {}, new value: {}", this.timeout, timeout); this.timeout = timeout; } public void setBatch(int batch) { logger.info("updating batch, old value: {}, new value: {}", this.batch, batch); this.batch = batch; } public int getTimeout() { return timeout; } public int getBatch() { return batch; } @Override public String toString() { return String.format("[XmlBean] timeout: %d, batch: %d", timeout, batch); } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.demo.spring.xmlConfigDemo.bean; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * @author Jason Song([email protected]) */ public class XmlBean { private static final Logger logger = LoggerFactory.getLogger(XmlBean.class); private int timeout; private int batch; public void setTimeout(int timeout) { logger.info("updating timeout, old value: {}, new value: {}", this.timeout, timeout); this.timeout = timeout; } public void setBatch(int batch) { logger.info("updating batch, old value: {}, new value: {}", this.batch, batch); this.batch = batch; } public int getTimeout() { return timeout; } public int getBatch() { return batch; } @Override public String toString() { return String.format("[XmlBean] timeout: %d, batch: %d", timeout, batch); } }
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-biz/src/test/java/com/ctrip/framework/apollo/biz/service/NamespaceBranchServiceTest.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.biz.service; import com.ctrip.framework.apollo.biz.AbstractIntegrationTest; import com.ctrip.framework.apollo.biz.entity.GrayReleaseRule; import com.ctrip.framework.apollo.biz.entity.Namespace; import com.ctrip.framework.apollo.biz.entity.ReleaseHistory; import com.ctrip.framework.apollo.common.constants.NamespaceBranchStatus; import com.ctrip.framework.apollo.common.constants.ReleaseOperation; import org.junit.Assert; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Pageable; import org.springframework.test.context.jdbc.Sql; public class NamespaceBranchServiceTest extends AbstractIntegrationTest { @Autowired private NamespaceBranchService namespaceBranchService; @Autowired private ReleaseHistoryService releaseHistoryService; private String testApp = "test"; private String testCluster = "default"; private String testNamespace = "application"; private String testBranchName = "child-cluster"; private String operator = "apollo"; private Pageable pageable = PageRequest.of(0, 10); @Test @Sql(scripts = "/sql/namespace-branch-test.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD) @Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD) public void testFindBranch() { Namespace branch = namespaceBranchService.findBranch(testApp, testCluster, testNamespace); Assert.assertNotNull(branch); Assert.assertEquals(testBranchName, branch.getClusterName()); } @Test @Sql(scripts = "/sql/namespace-branch-test.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD) @Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD) public void testUpdateBranchGrayRulesWithUpdateOnce() { GrayReleaseRule rule = instanceGrayReleaseRule(); namespaceBranchService.updateBranchGrayRules(testApp, testCluster, testNamespace, testBranchName, rule); GrayReleaseRule activeRule = namespaceBranchService.findBranchGrayRules(testApp, testCluster, testNamespace, testBranchName); Assert.assertNotNull(activeRule); Assert.assertEquals(rule.getAppId(), activeRule.getAppId()); Assert.assertEquals(rule.getRules(), activeRule.getRules()); Assert.assertEquals(Long.valueOf(0), activeRule.getReleaseId()); Page<ReleaseHistory> releaseHistories = releaseHistoryService.findReleaseHistoriesByNamespace (testApp, testCluster, testNamespace, pageable); ReleaseHistory releaseHistory = releaseHistories.getContent().get(0); Assert.assertEquals(1, releaseHistories.getTotalElements()); Assert.assertEquals(ReleaseOperation.APPLY_GRAY_RULES, releaseHistory.getOperation()); Assert.assertEquals(0, releaseHistory.getReleaseId()); Assert.assertEquals(0, releaseHistory.getPreviousReleaseId()); Assert.assertTrue(releaseHistory.getOperationContext().contains(rule.getRules())); } @Test @Sql(scripts = "/sql/namespace-branch-test.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD) @Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD) public void testUpdateBranchGrayRulesWithUpdateTwice() { GrayReleaseRule firstRule = instanceGrayReleaseRule(); namespaceBranchService.updateBranchGrayRules(testApp, testCluster, testNamespace, testBranchName, firstRule); GrayReleaseRule secondRule = instanceGrayReleaseRule(); secondRule.setRules("[{\"clientAppId\":\"branch-test\",\"clientIpList\":[\"10.38.57.112\"]}]"); namespaceBranchService.updateBranchGrayRules(testApp, testCluster, testNamespace, testBranchName, secondRule); GrayReleaseRule activeRule = namespaceBranchService.findBranchGrayRules(testApp, testCluster, testNamespace, testBranchName); Assert.assertNotNull(secondRule); Assert.assertEquals(secondRule.getAppId(), activeRule.getAppId()); Assert.assertEquals(secondRule.getRules(), activeRule.getRules()); Assert.assertEquals(Long.valueOf(0), activeRule.getReleaseId()); Page<ReleaseHistory> releaseHistories = releaseHistoryService.findReleaseHistoriesByNamespace (testApp, testCluster, testNamespace, pageable); ReleaseHistory firstReleaseHistory = releaseHistories.getContent().get(1); ReleaseHistory secondReleaseHistory = releaseHistories.getContent().get(0); Assert.assertEquals(2, releaseHistories.getTotalElements()); Assert.assertEquals(ReleaseOperation.APPLY_GRAY_RULES, firstReleaseHistory.getOperation()); Assert.assertEquals(ReleaseOperation.APPLY_GRAY_RULES, secondReleaseHistory.getOperation()); Assert.assertTrue(firstReleaseHistory.getOperationContext().contains(firstRule.getRules())); Assert.assertFalse(firstReleaseHistory.getOperationContext().contains(secondRule.getRules())); Assert.assertTrue(secondReleaseHistory.getOperationContext().contains(firstRule.getRules())); Assert.assertTrue(secondReleaseHistory.getOperationContext().contains(secondRule.getRules())); } @Test @Sql(scripts = "/sql/namespace-branch-test.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD) @Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD) public void testUpdateRulesReleaseIdWithOldRuleNotExist() { long latestReleaseId = 100; namespaceBranchService .updateRulesReleaseId(testApp, testCluster, testNamespace, testBranchName, latestReleaseId, operator); GrayReleaseRule activeRule = namespaceBranchService.findBranchGrayRules(testApp, testCluster, testNamespace, testBranchName); Assert.assertNull(activeRule); } @Test @Sql(scripts = "/sql/namespace-branch-test.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD) @Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD) public void testUpdateRulesReleaseIdWithOldRuleExist() { GrayReleaseRule rule = instanceGrayReleaseRule(); namespaceBranchService.updateBranchGrayRules(testApp, testCluster, testNamespace, testBranchName, rule); long latestReleaseId = 100; namespaceBranchService .updateRulesReleaseId(testApp, testCluster, testNamespace, testBranchName, latestReleaseId, operator); GrayReleaseRule activeRule = namespaceBranchService.findBranchGrayRules(testApp, testCluster, testNamespace, testBranchName); Assert.assertNotNull(activeRule); Assert.assertEquals(Long.valueOf(latestReleaseId), activeRule.getReleaseId()); Assert.assertEquals(rule.getRules(), activeRule.getRules()); Assert.assertEquals(NamespaceBranchStatus.ACTIVE, activeRule.getBranchStatus()); } @Test @Sql(scripts = "/sql/namespace-branch-test.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD) @Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD) public void testDeleteBranch() { GrayReleaseRule rule = instanceGrayReleaseRule(); namespaceBranchService.updateBranchGrayRules(testApp, testCluster, testNamespace, testBranchName, rule); namespaceBranchService.deleteBranch(testApp, testCluster, testNamespace, testBranchName, NamespaceBranchStatus.DELETED, operator); Namespace branch = namespaceBranchService.findBranch(testApp, testCluster, testNamespace); Assert.assertNull(branch); GrayReleaseRule latestRule = namespaceBranchService.findBranchGrayRules(testApp, testCluster, testNamespace, testBranchName); Assert.assertNotNull(latestRule); Assert.assertEquals(NamespaceBranchStatus.DELETED, latestRule.getBranchStatus()); Assert.assertEquals("[]", latestRule.getRules()); Page<ReleaseHistory> releaseHistories = releaseHistoryService.findReleaseHistoriesByNamespace (testApp, testCluster, testNamespace, pageable); ReleaseHistory firstReleaseHistory = releaseHistories.getContent().get(1); ReleaseHistory secondReleaseHistory = releaseHistories.getContent().get(0); Assert.assertEquals(2, releaseHistories.getTotalElements()); Assert.assertEquals(ReleaseOperation.APPLY_GRAY_RULES, firstReleaseHistory.getOperation()); Assert.assertEquals(ReleaseOperation.ABANDON_GRAY_RELEASE, secondReleaseHistory.getOperation()); } private GrayReleaseRule instanceGrayReleaseRule() { GrayReleaseRule rule = new GrayReleaseRule(); rule.setAppId(testApp); rule.setClusterName(testCluster); rule.setNamespaceName(testNamespace); rule.setBranchName(testBranchName); rule.setBranchStatus(NamespaceBranchStatus.ACTIVE); rule.setRules("[{\"clientAppId\":\"test\",\"clientIpList\":[\"1.0.0.4\"]}]"); return rule; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.biz.service; import com.ctrip.framework.apollo.biz.AbstractIntegrationTest; import com.ctrip.framework.apollo.biz.entity.GrayReleaseRule; import com.ctrip.framework.apollo.biz.entity.Namespace; import com.ctrip.framework.apollo.biz.entity.ReleaseHistory; import com.ctrip.framework.apollo.common.constants.NamespaceBranchStatus; import com.ctrip.framework.apollo.common.constants.ReleaseOperation; import org.junit.Assert; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Pageable; import org.springframework.test.context.jdbc.Sql; public class NamespaceBranchServiceTest extends AbstractIntegrationTest { @Autowired private NamespaceBranchService namespaceBranchService; @Autowired private ReleaseHistoryService releaseHistoryService; private String testApp = "test"; private String testCluster = "default"; private String testNamespace = "application"; private String testBranchName = "child-cluster"; private String operator = "apollo"; private Pageable pageable = PageRequest.of(0, 10); @Test @Sql(scripts = "/sql/namespace-branch-test.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD) @Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD) public void testFindBranch() { Namespace branch = namespaceBranchService.findBranch(testApp, testCluster, testNamespace); Assert.assertNotNull(branch); Assert.assertEquals(testBranchName, branch.getClusterName()); } @Test @Sql(scripts = "/sql/namespace-branch-test.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD) @Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD) public void testUpdateBranchGrayRulesWithUpdateOnce() { GrayReleaseRule rule = instanceGrayReleaseRule(); namespaceBranchService.updateBranchGrayRules(testApp, testCluster, testNamespace, testBranchName, rule); GrayReleaseRule activeRule = namespaceBranchService.findBranchGrayRules(testApp, testCluster, testNamespace, testBranchName); Assert.assertNotNull(activeRule); Assert.assertEquals(rule.getAppId(), activeRule.getAppId()); Assert.assertEquals(rule.getRules(), activeRule.getRules()); Assert.assertEquals(Long.valueOf(0), activeRule.getReleaseId()); Page<ReleaseHistory> releaseHistories = releaseHistoryService.findReleaseHistoriesByNamespace (testApp, testCluster, testNamespace, pageable); ReleaseHistory releaseHistory = releaseHistories.getContent().get(0); Assert.assertEquals(1, releaseHistories.getTotalElements()); Assert.assertEquals(ReleaseOperation.APPLY_GRAY_RULES, releaseHistory.getOperation()); Assert.assertEquals(0, releaseHistory.getReleaseId()); Assert.assertEquals(0, releaseHistory.getPreviousReleaseId()); Assert.assertTrue(releaseHistory.getOperationContext().contains(rule.getRules())); } @Test @Sql(scripts = "/sql/namespace-branch-test.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD) @Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD) public void testUpdateBranchGrayRulesWithUpdateTwice() { GrayReleaseRule firstRule = instanceGrayReleaseRule(); namespaceBranchService.updateBranchGrayRules(testApp, testCluster, testNamespace, testBranchName, firstRule); GrayReleaseRule secondRule = instanceGrayReleaseRule(); secondRule.setRules("[{\"clientAppId\":\"branch-test\",\"clientIpList\":[\"10.38.57.112\"]}]"); namespaceBranchService.updateBranchGrayRules(testApp, testCluster, testNamespace, testBranchName, secondRule); GrayReleaseRule activeRule = namespaceBranchService.findBranchGrayRules(testApp, testCluster, testNamespace, testBranchName); Assert.assertNotNull(secondRule); Assert.assertEquals(secondRule.getAppId(), activeRule.getAppId()); Assert.assertEquals(secondRule.getRules(), activeRule.getRules()); Assert.assertEquals(Long.valueOf(0), activeRule.getReleaseId()); Page<ReleaseHistory> releaseHistories = releaseHistoryService.findReleaseHistoriesByNamespace (testApp, testCluster, testNamespace, pageable); ReleaseHistory firstReleaseHistory = releaseHistories.getContent().get(1); ReleaseHistory secondReleaseHistory = releaseHistories.getContent().get(0); Assert.assertEquals(2, releaseHistories.getTotalElements()); Assert.assertEquals(ReleaseOperation.APPLY_GRAY_RULES, firstReleaseHistory.getOperation()); Assert.assertEquals(ReleaseOperation.APPLY_GRAY_RULES, secondReleaseHistory.getOperation()); Assert.assertTrue(firstReleaseHistory.getOperationContext().contains(firstRule.getRules())); Assert.assertFalse(firstReleaseHistory.getOperationContext().contains(secondRule.getRules())); Assert.assertTrue(secondReleaseHistory.getOperationContext().contains(firstRule.getRules())); Assert.assertTrue(secondReleaseHistory.getOperationContext().contains(secondRule.getRules())); } @Test @Sql(scripts = "/sql/namespace-branch-test.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD) @Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD) public void testUpdateRulesReleaseIdWithOldRuleNotExist() { long latestReleaseId = 100; namespaceBranchService .updateRulesReleaseId(testApp, testCluster, testNamespace, testBranchName, latestReleaseId, operator); GrayReleaseRule activeRule = namespaceBranchService.findBranchGrayRules(testApp, testCluster, testNamespace, testBranchName); Assert.assertNull(activeRule); } @Test @Sql(scripts = "/sql/namespace-branch-test.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD) @Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD) public void testUpdateRulesReleaseIdWithOldRuleExist() { GrayReleaseRule rule = instanceGrayReleaseRule(); namespaceBranchService.updateBranchGrayRules(testApp, testCluster, testNamespace, testBranchName, rule); long latestReleaseId = 100; namespaceBranchService .updateRulesReleaseId(testApp, testCluster, testNamespace, testBranchName, latestReleaseId, operator); GrayReleaseRule activeRule = namespaceBranchService.findBranchGrayRules(testApp, testCluster, testNamespace, testBranchName); Assert.assertNotNull(activeRule); Assert.assertEquals(Long.valueOf(latestReleaseId), activeRule.getReleaseId()); Assert.assertEquals(rule.getRules(), activeRule.getRules()); Assert.assertEquals(NamespaceBranchStatus.ACTIVE, activeRule.getBranchStatus()); } @Test @Sql(scripts = "/sql/namespace-branch-test.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD) @Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD) public void testDeleteBranch() { GrayReleaseRule rule = instanceGrayReleaseRule(); namespaceBranchService.updateBranchGrayRules(testApp, testCluster, testNamespace, testBranchName, rule); namespaceBranchService.deleteBranch(testApp, testCluster, testNamespace, testBranchName, NamespaceBranchStatus.DELETED, operator); Namespace branch = namespaceBranchService.findBranch(testApp, testCluster, testNamespace); Assert.assertNull(branch); GrayReleaseRule latestRule = namespaceBranchService.findBranchGrayRules(testApp, testCluster, testNamespace, testBranchName); Assert.assertNotNull(latestRule); Assert.assertEquals(NamespaceBranchStatus.DELETED, latestRule.getBranchStatus()); Assert.assertEquals("[]", latestRule.getRules()); Page<ReleaseHistory> releaseHistories = releaseHistoryService.findReleaseHistoriesByNamespace (testApp, testCluster, testNamespace, pageable); ReleaseHistory firstReleaseHistory = releaseHistories.getContent().get(1); ReleaseHistory secondReleaseHistory = releaseHistories.getContent().get(0); Assert.assertEquals(2, releaseHistories.getTotalElements()); Assert.assertEquals(ReleaseOperation.APPLY_GRAY_RULES, firstReleaseHistory.getOperation()); Assert.assertEquals(ReleaseOperation.ABANDON_GRAY_RELEASE, secondReleaseHistory.getOperation()); } private GrayReleaseRule instanceGrayReleaseRule() { GrayReleaseRule rule = new GrayReleaseRule(); rule.setAppId(testApp); rule.setClusterName(testCluster); rule.setNamespaceName(testNamespace); rule.setBranchName(testBranchName); rule.setBranchStatus(NamespaceBranchStatus.ACTIVE); rule.setRules("[{\"clientAppId\":\"test\",\"clientIpList\":[\"1.0.0.4\"]}]"); return rule; } }
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-configservice/src/main/java/com/ctrip/framework/apollo/configservice/controller/ConfigController.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.configservice.controller; import com.ctrip.framework.apollo.biz.entity.Release; import com.ctrip.framework.apollo.common.entity.AppNamespace; import com.ctrip.framework.apollo.configservice.service.AppNamespaceServiceWithCache; import com.ctrip.framework.apollo.configservice.service.config.ConfigService; import com.ctrip.framework.apollo.configservice.util.InstanceConfigAuditUtil; import com.ctrip.framework.apollo.configservice.util.NamespaceUtil; import com.ctrip.framework.apollo.core.ConfigConsts; import com.ctrip.framework.apollo.core.dto.ApolloConfig; import com.ctrip.framework.apollo.core.dto.ApolloNotificationMessages; import com.ctrip.framework.apollo.tracer.Tracer; import com.google.common.base.Splitter; import com.google.common.base.Strings; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.lang.reflect.Type; import java.util.List; import java.util.Map; import java.util.Objects; import java.util.stream.Collectors; /** * @author Jason Song([email protected]) */ @RestController @RequestMapping("/configs") public class ConfigController { private static final Splitter X_FORWARDED_FOR_SPLITTER = Splitter.on(",").omitEmptyStrings() .trimResults(); private final ConfigService configService; private final AppNamespaceServiceWithCache appNamespaceService; private final NamespaceUtil namespaceUtil; private final InstanceConfigAuditUtil instanceConfigAuditUtil; private final Gson gson; private static final Type configurationTypeReference = new TypeToken<Map<String, String>>() { }.getType(); public ConfigController( final ConfigService configService, final AppNamespaceServiceWithCache appNamespaceService, final NamespaceUtil namespaceUtil, final InstanceConfigAuditUtil instanceConfigAuditUtil, final Gson gson) { this.configService = configService; this.appNamespaceService = appNamespaceService; this.namespaceUtil = namespaceUtil; this.instanceConfigAuditUtil = instanceConfigAuditUtil; this.gson = gson; } @GetMapping(value = "/{appId}/{clusterName}/{namespace:.+}") public ApolloConfig queryConfig(@PathVariable String appId, @PathVariable String clusterName, @PathVariable String namespace, @RequestParam(value = "dataCenter", required = false) String dataCenter, @RequestParam(value = "releaseKey", defaultValue = "-1") String clientSideReleaseKey, @RequestParam(value = "ip", required = false) String clientIp, @RequestParam(value = "messages", required = false) String messagesAsString, HttpServletRequest request, HttpServletResponse response) throws IOException { String originalNamespace = namespace; //strip out .properties suffix namespace = namespaceUtil.filterNamespaceName(namespace); //fix the character case issue, such as FX.apollo <-> fx.apollo namespace = namespaceUtil.normalizeNamespace(appId, namespace); if (Strings.isNullOrEmpty(clientIp)) { clientIp = tryToGetClientIp(request); } ApolloNotificationMessages clientMessages = transformMessages(messagesAsString); List<Release> releases = Lists.newLinkedList(); String appClusterNameLoaded = clusterName; if (!ConfigConsts.NO_APPID_PLACEHOLDER.equalsIgnoreCase(appId)) { Release currentAppRelease = configService.loadConfig(appId, clientIp, appId, clusterName, namespace, dataCenter, clientMessages); if (currentAppRelease != null) { releases.add(currentAppRelease); //we have cluster search process, so the cluster name might be overridden appClusterNameLoaded = currentAppRelease.getClusterName(); } } //if namespace does not belong to this appId, should check if there is a public configuration if (!namespaceBelongsToAppId(appId, namespace)) { Release publicRelease = this.findPublicConfig(appId, clientIp, clusterName, namespace, dataCenter, clientMessages); if (Objects.nonNull(publicRelease)) { releases.add(publicRelease); } } if (releases.isEmpty()) { response.sendError(HttpServletResponse.SC_NOT_FOUND, String.format( "Could not load configurations with appId: %s, clusterName: %s, namespace: %s", appId, clusterName, originalNamespace)); Tracer.logEvent("Apollo.Config.NotFound", assembleKey(appId, clusterName, originalNamespace, dataCenter)); return null; } auditReleases(appId, clusterName, dataCenter, clientIp, releases); String mergedReleaseKey = releases.stream().map(Release::getReleaseKey) .collect(Collectors.joining(ConfigConsts.CLUSTER_NAMESPACE_SEPARATOR)); if (mergedReleaseKey.equals(clientSideReleaseKey)) { // Client side configuration is the same with server side, return 304 response.setStatus(HttpServletResponse.SC_NOT_MODIFIED); Tracer.logEvent("Apollo.Config.NotModified", assembleKey(appId, appClusterNameLoaded, originalNamespace, dataCenter)); return null; } ApolloConfig apolloConfig = new ApolloConfig(appId, appClusterNameLoaded, originalNamespace, mergedReleaseKey); apolloConfig.setConfigurations(mergeReleaseConfigurations(releases)); Tracer.logEvent("Apollo.Config.Found", assembleKey(appId, appClusterNameLoaded, originalNamespace, dataCenter)); return apolloConfig; } private boolean namespaceBelongsToAppId(String appId, String namespaceName) { //Every app has an 'application' namespace if (Objects.equals(ConfigConsts.NAMESPACE_APPLICATION, namespaceName)) { return true; } //if no appId is present, then no other namespace belongs to it if (ConfigConsts.NO_APPID_PLACEHOLDER.equalsIgnoreCase(appId)) { return false; } AppNamespace appNamespace = appNamespaceService.findByAppIdAndNamespace(appId, namespaceName); return appNamespace != null; } /** * @param clientAppId the application which uses public config * @param namespace the namespace * @param dataCenter the datacenter */ private Release findPublicConfig(String clientAppId, String clientIp, String clusterName, String namespace, String dataCenter, ApolloNotificationMessages clientMessages) { AppNamespace appNamespace = appNamespaceService.findPublicNamespaceByName(namespace); //check whether the namespace's appId equals to current one if (Objects.isNull(appNamespace) || Objects.equals(clientAppId, appNamespace.getAppId())) { return null; } String publicConfigAppId = appNamespace.getAppId(); return configService.loadConfig(clientAppId, clientIp, publicConfigAppId, clusterName, namespace, dataCenter, clientMessages); } /** * Merge configurations of releases. * Release in lower index override those in higher index */ Map<String, String> mergeReleaseConfigurations(List<Release> releases) { Map<String, String> result = Maps.newLinkedHashMap(); for (Release release : Lists.reverse(releases)) { result.putAll(gson.fromJson(release.getConfigurations(), configurationTypeReference)); } return result; } private String assembleKey(String appId, String cluster, String namespace, String dataCenter) { List<String> keyParts = Lists.newArrayList(appId, cluster, namespace); if (!Strings.isNullOrEmpty(dataCenter)) { keyParts.add(dataCenter); } return String.join(ConfigConsts.CLUSTER_NAMESPACE_SEPARATOR, keyParts); } private void auditReleases(String appId, String cluster, String dataCenter, String clientIp, List<Release> releases) { if (Strings.isNullOrEmpty(clientIp)) { //no need to audit instance config when there is no ip return; } for (Release release : releases) { instanceConfigAuditUtil.audit(appId, cluster, dataCenter, clientIp, release.getAppId(), release.getClusterName(), release.getNamespaceName(), release.getReleaseKey()); } } private String tryToGetClientIp(HttpServletRequest request) { String forwardedFor = request.getHeader("X-FORWARDED-FOR"); if (!Strings.isNullOrEmpty(forwardedFor)) { return X_FORWARDED_FOR_SPLITTER.splitToList(forwardedFor).get(0); } return request.getRemoteAddr(); } ApolloNotificationMessages transformMessages(String messagesAsString) { ApolloNotificationMessages notificationMessages = null; if (!Strings.isNullOrEmpty(messagesAsString)) { try { notificationMessages = gson.fromJson(messagesAsString, ApolloNotificationMessages.class); } catch (Throwable ex) { Tracer.logError(ex); } } return notificationMessages; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.configservice.controller; import com.ctrip.framework.apollo.biz.entity.Release; import com.ctrip.framework.apollo.common.entity.AppNamespace; import com.ctrip.framework.apollo.configservice.service.AppNamespaceServiceWithCache; import com.ctrip.framework.apollo.configservice.service.config.ConfigService; import com.ctrip.framework.apollo.configservice.util.InstanceConfigAuditUtil; import com.ctrip.framework.apollo.configservice.util.NamespaceUtil; import com.ctrip.framework.apollo.core.ConfigConsts; import com.ctrip.framework.apollo.core.dto.ApolloConfig; import com.ctrip.framework.apollo.core.dto.ApolloNotificationMessages; import com.ctrip.framework.apollo.tracer.Tracer; import com.google.common.base.Splitter; import com.google.common.base.Strings; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.lang.reflect.Type; import java.util.List; import java.util.Map; import java.util.Objects; import java.util.stream.Collectors; /** * @author Jason Song([email protected]) */ @RestController @RequestMapping("/configs") public class ConfigController { private static final Splitter X_FORWARDED_FOR_SPLITTER = Splitter.on(",").omitEmptyStrings() .trimResults(); private final ConfigService configService; private final AppNamespaceServiceWithCache appNamespaceService; private final NamespaceUtil namespaceUtil; private final InstanceConfigAuditUtil instanceConfigAuditUtil; private final Gson gson; private static final Type configurationTypeReference = new TypeToken<Map<String, String>>() { }.getType(); public ConfigController( final ConfigService configService, final AppNamespaceServiceWithCache appNamespaceService, final NamespaceUtil namespaceUtil, final InstanceConfigAuditUtil instanceConfigAuditUtil, final Gson gson) { this.configService = configService; this.appNamespaceService = appNamespaceService; this.namespaceUtil = namespaceUtil; this.instanceConfigAuditUtil = instanceConfigAuditUtil; this.gson = gson; } @GetMapping(value = "/{appId}/{clusterName}/{namespace:.+}") public ApolloConfig queryConfig(@PathVariable String appId, @PathVariable String clusterName, @PathVariable String namespace, @RequestParam(value = "dataCenter", required = false) String dataCenter, @RequestParam(value = "releaseKey", defaultValue = "-1") String clientSideReleaseKey, @RequestParam(value = "ip", required = false) String clientIp, @RequestParam(value = "messages", required = false) String messagesAsString, HttpServletRequest request, HttpServletResponse response) throws IOException { String originalNamespace = namespace; //strip out .properties suffix namespace = namespaceUtil.filterNamespaceName(namespace); //fix the character case issue, such as FX.apollo <-> fx.apollo namespace = namespaceUtil.normalizeNamespace(appId, namespace); if (Strings.isNullOrEmpty(clientIp)) { clientIp = tryToGetClientIp(request); } ApolloNotificationMessages clientMessages = transformMessages(messagesAsString); List<Release> releases = Lists.newLinkedList(); String appClusterNameLoaded = clusterName; if (!ConfigConsts.NO_APPID_PLACEHOLDER.equalsIgnoreCase(appId)) { Release currentAppRelease = configService.loadConfig(appId, clientIp, appId, clusterName, namespace, dataCenter, clientMessages); if (currentAppRelease != null) { releases.add(currentAppRelease); //we have cluster search process, so the cluster name might be overridden appClusterNameLoaded = currentAppRelease.getClusterName(); } } //if namespace does not belong to this appId, should check if there is a public configuration if (!namespaceBelongsToAppId(appId, namespace)) { Release publicRelease = this.findPublicConfig(appId, clientIp, clusterName, namespace, dataCenter, clientMessages); if (Objects.nonNull(publicRelease)) { releases.add(publicRelease); } } if (releases.isEmpty()) { response.sendError(HttpServletResponse.SC_NOT_FOUND, String.format( "Could not load configurations with appId: %s, clusterName: %s, namespace: %s", appId, clusterName, originalNamespace)); Tracer.logEvent("Apollo.Config.NotFound", assembleKey(appId, clusterName, originalNamespace, dataCenter)); return null; } auditReleases(appId, clusterName, dataCenter, clientIp, releases); String mergedReleaseKey = releases.stream().map(Release::getReleaseKey) .collect(Collectors.joining(ConfigConsts.CLUSTER_NAMESPACE_SEPARATOR)); if (mergedReleaseKey.equals(clientSideReleaseKey)) { // Client side configuration is the same with server side, return 304 response.setStatus(HttpServletResponse.SC_NOT_MODIFIED); Tracer.logEvent("Apollo.Config.NotModified", assembleKey(appId, appClusterNameLoaded, originalNamespace, dataCenter)); return null; } ApolloConfig apolloConfig = new ApolloConfig(appId, appClusterNameLoaded, originalNamespace, mergedReleaseKey); apolloConfig.setConfigurations(mergeReleaseConfigurations(releases)); Tracer.logEvent("Apollo.Config.Found", assembleKey(appId, appClusterNameLoaded, originalNamespace, dataCenter)); return apolloConfig; } private boolean namespaceBelongsToAppId(String appId, String namespaceName) { //Every app has an 'application' namespace if (Objects.equals(ConfigConsts.NAMESPACE_APPLICATION, namespaceName)) { return true; } //if no appId is present, then no other namespace belongs to it if (ConfigConsts.NO_APPID_PLACEHOLDER.equalsIgnoreCase(appId)) { return false; } AppNamespace appNamespace = appNamespaceService.findByAppIdAndNamespace(appId, namespaceName); return appNamespace != null; } /** * @param clientAppId the application which uses public config * @param namespace the namespace * @param dataCenter the datacenter */ private Release findPublicConfig(String clientAppId, String clientIp, String clusterName, String namespace, String dataCenter, ApolloNotificationMessages clientMessages) { AppNamespace appNamespace = appNamespaceService.findPublicNamespaceByName(namespace); //check whether the namespace's appId equals to current one if (Objects.isNull(appNamespace) || Objects.equals(clientAppId, appNamespace.getAppId())) { return null; } String publicConfigAppId = appNamespace.getAppId(); return configService.loadConfig(clientAppId, clientIp, publicConfigAppId, clusterName, namespace, dataCenter, clientMessages); } /** * Merge configurations of releases. * Release in lower index override those in higher index */ Map<String, String> mergeReleaseConfigurations(List<Release> releases) { Map<String, String> result = Maps.newLinkedHashMap(); for (Release release : Lists.reverse(releases)) { result.putAll(gson.fromJson(release.getConfigurations(), configurationTypeReference)); } return result; } private String assembleKey(String appId, String cluster, String namespace, String dataCenter) { List<String> keyParts = Lists.newArrayList(appId, cluster, namespace); if (!Strings.isNullOrEmpty(dataCenter)) { keyParts.add(dataCenter); } return String.join(ConfigConsts.CLUSTER_NAMESPACE_SEPARATOR, keyParts); } private void auditReleases(String appId, String cluster, String dataCenter, String clientIp, List<Release> releases) { if (Strings.isNullOrEmpty(clientIp)) { //no need to audit instance config when there is no ip return; } for (Release release : releases) { instanceConfigAuditUtil.audit(appId, cluster, dataCenter, clientIp, release.getAppId(), release.getClusterName(), release.getNamespaceName(), release.getReleaseKey()); } } private String tryToGetClientIp(HttpServletRequest request) { String forwardedFor = request.getHeader("X-FORWARDED-FOR"); if (!Strings.isNullOrEmpty(forwardedFor)) { return X_FORWARDED_FOR_SPLITTER.splitToList(forwardedFor).get(0); } return request.getRemoteAddr(); } ApolloNotificationMessages transformMessages(String messagesAsString) { ApolloNotificationMessages notificationMessages = null; if (!Strings.isNullOrEmpty(messagesAsString)) { try { notificationMessages = gson.fromJson(messagesAsString, ApolloNotificationMessages.class); } catch (Throwable ex) { Tracer.logError(ex); } } return notificationMessages; } }
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/service/NamespaceServiceTest.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.service; import com.ctrip.framework.apollo.common.dto.ItemDTO; import com.ctrip.framework.apollo.common.dto.NamespaceDTO; import com.ctrip.framework.apollo.common.dto.ReleaseDTO; import com.ctrip.framework.apollo.common.entity.AppNamespace; import com.ctrip.framework.apollo.common.exception.BadRequestException; import com.ctrip.framework.apollo.core.enums.ConfigFileFormat; import com.ctrip.framework.apollo.portal.environment.Env; import com.ctrip.framework.apollo.portal.AbstractUnitTest; import com.ctrip.framework.apollo.portal.api.AdminServiceAPI; import com.ctrip.framework.apollo.portal.component.txtresolver.PropertyResolver; import com.ctrip.framework.apollo.portal.entity.bo.NamespaceBO; import com.ctrip.framework.apollo.portal.entity.bo.UserInfo; import com.ctrip.framework.apollo.portal.spi.UserInfoHolder; import org.junit.Before; import org.junit.Test; import org.mockito.InjectMocks; import org.mockito.Mock; import java.util.Arrays; import java.util.Collections; import java.util.List; import static org.junit.Assert.assertEquals; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; public class NamespaceServiceTest extends AbstractUnitTest { @Mock private AdminServiceAPI.NamespaceAPI namespaceAPI; @Mock private ReleaseService releaseService; @Mock private ItemService itemService; @Mock private PropertyResolver resolver; @Mock private AppNamespaceService appNamespaceService; @Mock private InstanceService instanceService; @Mock private NamespaceBranchService branchService; @Mock private UserInfoHolder userInfoHolder; @InjectMocks private NamespaceService namespaceService; private String testAppId = "6666"; private String testClusterName = "default"; private String testNamespaceName = "application"; private Env testEnv = Env.DEV; @Before public void setup() { } @Test public void testFindNamespace() { AppNamespace applicationAppNamespace = mock(AppNamespace.class); AppNamespace hermesAppNamespace = mock(AppNamespace.class); NamespaceDTO application = new NamespaceDTO(); application.setId(1); application.setClusterName(testClusterName); application.setAppId(testAppId); application.setNamespaceName(testNamespaceName); NamespaceDTO hermes = new NamespaceDTO(); hermes.setId(2); hermes.setClusterName("default"); hermes.setAppId(testAppId); hermes.setNamespaceName("hermes"); List<NamespaceDTO> namespaces = Arrays.asList(application, hermes); ReleaseDTO someRelease = new ReleaseDTO(); someRelease.setConfigurations("{\"a\":\"123\",\"b\":\"123\"}"); ItemDTO i1 = new ItemDTO("a", "123", "", 1); ItemDTO i2 = new ItemDTO("b", "1", "", 2); ItemDTO i3 = new ItemDTO("", "", "#dddd", 3); ItemDTO i4 = new ItemDTO("c", "1", "", 4); List<ItemDTO> someItems = Arrays.asList(i1, i2, i3, i4); when(applicationAppNamespace.getFormat()).thenReturn(ConfigFileFormat.Properties.getValue()); when(hermesAppNamespace.getFormat()).thenReturn(ConfigFileFormat.XML.getValue()); when(appNamespaceService.findByAppIdAndName(testAppId, testNamespaceName)) .thenReturn(applicationAppNamespace); when(appNamespaceService.findPublicAppNamespace("hermes")).thenReturn(hermesAppNamespace); when(namespaceAPI.findNamespaceByCluster(testAppId, Env.DEV, testClusterName)).thenReturn(namespaces); when(releaseService.loadLatestRelease(testAppId, Env.DEV, testClusterName, testNamespaceName)).thenReturn(someRelease); when(releaseService.loadLatestRelease(testAppId, Env.DEV, testClusterName, "hermes")).thenReturn(someRelease); when(itemService.findItems(testAppId, Env.DEV, testClusterName, testNamespaceName)).thenReturn(someItems); List<NamespaceBO> namespaceVOs = namespaceService.findNamespaceBOs(testAppId, Env.DEV, testClusterName); assertEquals(2, namespaceVOs.size()); NamespaceBO namespaceVO = namespaceVOs.get(0); assertEquals(4, namespaceVO.getItems().size()); assertEquals("a", namespaceVO.getItems().get(0).getItem().getKey()); assertEquals(2, namespaceVO.getItemModifiedCnt()); assertEquals(testAppId, namespaceVO.getBaseInfo().getAppId()); assertEquals(testClusterName, namespaceVO.getBaseInfo().getClusterName()); assertEquals(testNamespaceName, namespaceVO.getBaseInfo().getNamespaceName()); } @Test public void testDeletePrivateNamespace() { String operator = "user"; AppNamespace privateNamespace = createAppNamespace(testAppId, testNamespaceName, false); when(appNamespaceService.findByAppIdAndName(testAppId, testNamespaceName)).thenReturn(privateNamespace); when(userInfoHolder.getUser()).thenReturn(createUser(operator)); namespaceService.deleteNamespace(testAppId, testEnv, testClusterName, testNamespaceName); verify(namespaceAPI, times(1)).deleteNamespace(testEnv, testAppId, testClusterName, testNamespaceName, operator); } @Test(expected = BadRequestException.class) public void testDeleteNamespaceHasInstance() { AppNamespace publicNamespace = createAppNamespace(testAppId, testNamespaceName, true); when(appNamespaceService.findByAppIdAndName(testAppId, testNamespaceName)).thenReturn(publicNamespace); when(instanceService.getInstanceCountByNamepsace(testAppId, testEnv, testClusterName, testNamespaceName)) .thenReturn(10); namespaceService.deleteNamespace(testAppId, testEnv, testClusterName, testNamespaceName); } @Test(expected = BadRequestException.class) public void testDeleteNamespaceBranchHasInstance() { AppNamespace publicNamespace = createAppNamespace(testAppId, testNamespaceName, true); String branchName = "branch"; NamespaceDTO branch = createNamespace(testAppId, branchName, testNamespaceName); when(appNamespaceService.findByAppIdAndName(testAppId, testNamespaceName)).thenReturn(publicNamespace); when(instanceService.getInstanceCountByNamepsace(testAppId, testEnv, testClusterName, testNamespaceName)) .thenReturn(0); when(branchService.findBranchBaseInfo(testAppId, testEnv, testClusterName, testNamespaceName)).thenReturn(branch); when(instanceService.getInstanceCountByNamepsace(testAppId, testEnv, branchName, testNamespaceName)).thenReturn(10); namespaceService.deleteNamespace(testAppId, testEnv, testClusterName, testNamespaceName); } @Test(expected = BadRequestException.class) public void testDeleteNamespaceWithAssociatedNamespace() { AppNamespace publicNamespace = createAppNamespace(testAppId, testNamespaceName, true); String branchName = "branch"; NamespaceDTO branch = createNamespace(testAppId, branchName, testNamespaceName); when(appNamespaceService.findByAppIdAndName(testAppId, testNamespaceName)).thenReturn(publicNamespace); when(instanceService.getInstanceCountByNamepsace(testAppId, testEnv, testClusterName, testNamespaceName)) .thenReturn(0); when(branchService.findBranchBaseInfo(testAppId, testEnv, testClusterName, testNamespaceName)).thenReturn(branch); when(instanceService.getInstanceCountByNamepsace(testAppId, testEnv, branchName, testNamespaceName)).thenReturn(0); when(appNamespaceService.findPublicAppNamespace(testNamespaceName)).thenReturn(publicNamespace); when(namespaceAPI.countPublicAppNamespaceAssociatedNamespaces(testEnv, testNamespaceName)).thenReturn(10); namespaceService.deleteNamespace(testAppId, testEnv, testClusterName, testNamespaceName); } @Test public void testDeleteEmptyNamespace() { String branchName = "branch"; String operator = "user"; AppNamespace publicNamespace = createAppNamespace(testAppId, testNamespaceName, true); NamespaceDTO branch = createNamespace(testAppId, branchName, testNamespaceName); when(appNamespaceService.findByAppIdAndName(testAppId, testNamespaceName)).thenReturn(publicNamespace); when(instanceService.getInstanceCountByNamepsace(testAppId, testEnv, testClusterName, testNamespaceName)) .thenReturn(0); when(branchService.findBranchBaseInfo(testAppId, testEnv, testClusterName, testNamespaceName)).thenReturn(branch); when(instanceService.getInstanceCountByNamepsace(testAppId, testEnv, branchName, testNamespaceName)).thenReturn(0); when(appNamespaceService.findPublicAppNamespace(testNamespaceName)).thenReturn(publicNamespace); NamespaceDTO namespace = createNamespace(testAppId, testClusterName, testNamespaceName); when(namespaceAPI.getPublicAppNamespaceAllNamespaces(testEnv, testNamespaceName, 0, 10)).thenReturn( Collections.singletonList(namespace)); when(userInfoHolder.getUser()).thenReturn(createUser(operator)); namespaceService.deleteNamespace(testAppId, testEnv, testClusterName, testNamespaceName); verify(namespaceAPI, times(1)).deleteNamespace(testEnv, testAppId, testClusterName, testNamespaceName, operator); } private AppNamespace createAppNamespace(String appId, String name, boolean isPublic) { AppNamespace instance = new AppNamespace(); instance.setAppId(appId); instance.setName(name); instance.setPublic(isPublic); return instance; } private NamespaceDTO createNamespace(String appId, String clusterName, String namespaceName) { NamespaceDTO instance = new NamespaceDTO(); instance.setAppId(appId); instance.setClusterName(clusterName); instance.setNamespaceName(namespaceName); return instance; } private UserInfo createUser(String userId) { UserInfo instance = new UserInfo(); instance.setUserId(userId); return instance; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.service; import com.ctrip.framework.apollo.common.dto.ItemDTO; import com.ctrip.framework.apollo.common.dto.NamespaceDTO; import com.ctrip.framework.apollo.common.dto.ReleaseDTO; import com.ctrip.framework.apollo.common.entity.AppNamespace; import com.ctrip.framework.apollo.common.exception.BadRequestException; import com.ctrip.framework.apollo.core.enums.ConfigFileFormat; import com.ctrip.framework.apollo.portal.environment.Env; import com.ctrip.framework.apollo.portal.AbstractUnitTest; import com.ctrip.framework.apollo.portal.api.AdminServiceAPI; import com.ctrip.framework.apollo.portal.component.txtresolver.PropertyResolver; import com.ctrip.framework.apollo.portal.entity.bo.NamespaceBO; import com.ctrip.framework.apollo.portal.entity.bo.UserInfo; import com.ctrip.framework.apollo.portal.spi.UserInfoHolder; import org.junit.Before; import org.junit.Test; import org.mockito.InjectMocks; import org.mockito.Mock; import java.util.Arrays; import java.util.Collections; import java.util.List; import static org.junit.Assert.assertEquals; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; public class NamespaceServiceTest extends AbstractUnitTest { @Mock private AdminServiceAPI.NamespaceAPI namespaceAPI; @Mock private ReleaseService releaseService; @Mock private ItemService itemService; @Mock private PropertyResolver resolver; @Mock private AppNamespaceService appNamespaceService; @Mock private InstanceService instanceService; @Mock private NamespaceBranchService branchService; @Mock private UserInfoHolder userInfoHolder; @InjectMocks private NamespaceService namespaceService; private String testAppId = "6666"; private String testClusterName = "default"; private String testNamespaceName = "application"; private Env testEnv = Env.DEV; @Before public void setup() { } @Test public void testFindNamespace() { AppNamespace applicationAppNamespace = mock(AppNamespace.class); AppNamespace hermesAppNamespace = mock(AppNamespace.class); NamespaceDTO application = new NamespaceDTO(); application.setId(1); application.setClusterName(testClusterName); application.setAppId(testAppId); application.setNamespaceName(testNamespaceName); NamespaceDTO hermes = new NamespaceDTO(); hermes.setId(2); hermes.setClusterName("default"); hermes.setAppId(testAppId); hermes.setNamespaceName("hermes"); List<NamespaceDTO> namespaces = Arrays.asList(application, hermes); ReleaseDTO someRelease = new ReleaseDTO(); someRelease.setConfigurations("{\"a\":\"123\",\"b\":\"123\"}"); ItemDTO i1 = new ItemDTO("a", "123", "", 1); ItemDTO i2 = new ItemDTO("b", "1", "", 2); ItemDTO i3 = new ItemDTO("", "", "#dddd", 3); ItemDTO i4 = new ItemDTO("c", "1", "", 4); List<ItemDTO> someItems = Arrays.asList(i1, i2, i3, i4); when(applicationAppNamespace.getFormat()).thenReturn(ConfigFileFormat.Properties.getValue()); when(hermesAppNamespace.getFormat()).thenReturn(ConfigFileFormat.XML.getValue()); when(appNamespaceService.findByAppIdAndName(testAppId, testNamespaceName)) .thenReturn(applicationAppNamespace); when(appNamespaceService.findPublicAppNamespace("hermes")).thenReturn(hermesAppNamespace); when(namespaceAPI.findNamespaceByCluster(testAppId, Env.DEV, testClusterName)).thenReturn(namespaces); when(releaseService.loadLatestRelease(testAppId, Env.DEV, testClusterName, testNamespaceName)).thenReturn(someRelease); when(releaseService.loadLatestRelease(testAppId, Env.DEV, testClusterName, "hermes")).thenReturn(someRelease); when(itemService.findItems(testAppId, Env.DEV, testClusterName, testNamespaceName)).thenReturn(someItems); List<NamespaceBO> namespaceVOs = namespaceService.findNamespaceBOs(testAppId, Env.DEV, testClusterName); assertEquals(2, namespaceVOs.size()); NamespaceBO namespaceVO = namespaceVOs.get(0); assertEquals(4, namespaceVO.getItems().size()); assertEquals("a", namespaceVO.getItems().get(0).getItem().getKey()); assertEquals(2, namespaceVO.getItemModifiedCnt()); assertEquals(testAppId, namespaceVO.getBaseInfo().getAppId()); assertEquals(testClusterName, namespaceVO.getBaseInfo().getClusterName()); assertEquals(testNamespaceName, namespaceVO.getBaseInfo().getNamespaceName()); } @Test public void testDeletePrivateNamespace() { String operator = "user"; AppNamespace privateNamespace = createAppNamespace(testAppId, testNamespaceName, false); when(appNamespaceService.findByAppIdAndName(testAppId, testNamespaceName)).thenReturn(privateNamespace); when(userInfoHolder.getUser()).thenReturn(createUser(operator)); namespaceService.deleteNamespace(testAppId, testEnv, testClusterName, testNamespaceName); verify(namespaceAPI, times(1)).deleteNamespace(testEnv, testAppId, testClusterName, testNamespaceName, operator); } @Test(expected = BadRequestException.class) public void testDeleteNamespaceHasInstance() { AppNamespace publicNamespace = createAppNamespace(testAppId, testNamespaceName, true); when(appNamespaceService.findByAppIdAndName(testAppId, testNamespaceName)).thenReturn(publicNamespace); when(instanceService.getInstanceCountByNamepsace(testAppId, testEnv, testClusterName, testNamespaceName)) .thenReturn(10); namespaceService.deleteNamespace(testAppId, testEnv, testClusterName, testNamespaceName); } @Test(expected = BadRequestException.class) public void testDeleteNamespaceBranchHasInstance() { AppNamespace publicNamespace = createAppNamespace(testAppId, testNamespaceName, true); String branchName = "branch"; NamespaceDTO branch = createNamespace(testAppId, branchName, testNamespaceName); when(appNamespaceService.findByAppIdAndName(testAppId, testNamespaceName)).thenReturn(publicNamespace); when(instanceService.getInstanceCountByNamepsace(testAppId, testEnv, testClusterName, testNamespaceName)) .thenReturn(0); when(branchService.findBranchBaseInfo(testAppId, testEnv, testClusterName, testNamespaceName)).thenReturn(branch); when(instanceService.getInstanceCountByNamepsace(testAppId, testEnv, branchName, testNamespaceName)).thenReturn(10); namespaceService.deleteNamespace(testAppId, testEnv, testClusterName, testNamespaceName); } @Test(expected = BadRequestException.class) public void testDeleteNamespaceWithAssociatedNamespace() { AppNamespace publicNamespace = createAppNamespace(testAppId, testNamespaceName, true); String branchName = "branch"; NamespaceDTO branch = createNamespace(testAppId, branchName, testNamespaceName); when(appNamespaceService.findByAppIdAndName(testAppId, testNamespaceName)).thenReturn(publicNamespace); when(instanceService.getInstanceCountByNamepsace(testAppId, testEnv, testClusterName, testNamespaceName)) .thenReturn(0); when(branchService.findBranchBaseInfo(testAppId, testEnv, testClusterName, testNamespaceName)).thenReturn(branch); when(instanceService.getInstanceCountByNamepsace(testAppId, testEnv, branchName, testNamespaceName)).thenReturn(0); when(appNamespaceService.findPublicAppNamespace(testNamespaceName)).thenReturn(publicNamespace); when(namespaceAPI.countPublicAppNamespaceAssociatedNamespaces(testEnv, testNamespaceName)).thenReturn(10); namespaceService.deleteNamespace(testAppId, testEnv, testClusterName, testNamespaceName); } @Test public void testDeleteEmptyNamespace() { String branchName = "branch"; String operator = "user"; AppNamespace publicNamespace = createAppNamespace(testAppId, testNamespaceName, true); NamespaceDTO branch = createNamespace(testAppId, branchName, testNamespaceName); when(appNamespaceService.findByAppIdAndName(testAppId, testNamespaceName)).thenReturn(publicNamespace); when(instanceService.getInstanceCountByNamepsace(testAppId, testEnv, testClusterName, testNamespaceName)) .thenReturn(0); when(branchService.findBranchBaseInfo(testAppId, testEnv, testClusterName, testNamespaceName)).thenReturn(branch); when(instanceService.getInstanceCountByNamepsace(testAppId, testEnv, branchName, testNamespaceName)).thenReturn(0); when(appNamespaceService.findPublicAppNamespace(testNamespaceName)).thenReturn(publicNamespace); NamespaceDTO namespace = createNamespace(testAppId, testClusterName, testNamespaceName); when(namespaceAPI.getPublicAppNamespaceAllNamespaces(testEnv, testNamespaceName, 0, 10)).thenReturn( Collections.singletonList(namespace)); when(userInfoHolder.getUser()).thenReturn(createUser(operator)); namespaceService.deleteNamespace(testAppId, testEnv, testClusterName, testNamespaceName); verify(namespaceAPI, times(1)).deleteNamespace(testEnv, testAppId, testClusterName, testNamespaceName, operator); } private AppNamespace createAppNamespace(String appId, String name, boolean isPublic) { AppNamespace instance = new AppNamespace(); instance.setAppId(appId); instance.setName(name); instance.setPublic(isPublic); return instance; } private NamespaceDTO createNamespace(String appId, String clusterName, String namespaceName) { NamespaceDTO instance = new NamespaceDTO(); instance.setAppId(appId); instance.setClusterName(clusterName); instance.setNamespaceName(namespaceName); return instance; } private UserInfo createUser(String userId) { UserInfo instance = new UserInfo(); instance.setUserId(userId); return instance; } }
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./doc/images/logo/logo-simple.png
PNG  IHDR.sRGB pHYs  YiTXtXML:com.adobe.xmp<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 5.4.0"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmlns:tiff="http://ns.adobe.com/tiff/1.0/"> <tiff:Orientation>1</tiff:Orientation> </rdf:Description> </rdf:RDF> </x:xmpmeta> L'Y@IDATxrF?HwLfʜ׹1O`eLVdfNPY$ZGUbo,?Aמ]'N-4DŒ,Q ~Ek4I>(6@`bo:3jAiwu%JG+qx-u fGo;K@ @3r/"U[V[媭'A$QqqLn mr505 @ @V,!u"Pd TZZu$g.tIr@ @a Xf`GEPHp(YQ3U<z!P#g @ @ղ[qj5jvI)RK1ḏ"Huu!F@ @%@}( Ip(N?a֑[@ @(,B5Tl|N.GZU֩st%C @hEFx+8J+QiTa@V|dL@ @@|gX|ïJV^< KZmmTM @ Ԑvj\*媗$jiW>vs%S\B6 @ C`Q8}%c( VϮȊf)A1Mt8EJj4@ @ XQgaRGA"Y~Es0K_h @ PEUPGDz&Bg$kc5h@ @r* 5."Tq(ju?۫B @ \PEo:*Q5t&X=MjGI=3% @ oyC$H Kgrq.=vЉz E , @ 0 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 ~m/{YіW~y7؏}|fCA";dy>RA:GZEY@ ,jZÓ>kN@+essɫWnpp*њցiLKไD^Cs@ @`VފE<\\v Ϫ|ŠgnO _uri g| @!Xd6ш:F{PV$ڲg+ucTo/e E=}%@ @AEaii*~ l'']~2igiip/WB8PDY@ @(@0biic~։>7?BYLZZ]igE/@ xL 8X>\Xh+¨y|r]5KI^lmy@ IsQʕ<p'e1V;,!@ * "m}xjz"x(#&$wI4Q1@ V,O((}<Gh@ledƟ2n^@@_zMtvA @Qb͡Ev-(_ܚP(9~$mE6׼u.ּ- @ %P hLlb``7AOx@mʳ=O=ĭ)2IV%QSM&ǺXY{@ @RbјeD#PyޏlvKxr݄c%Oʙ{@ JX4oՉ$L=Qc(=k[wrV$YQSHKym"v) @ !JE6a=[A4*I>7?HTٳ3REZ$}Ygi}W @'PyhhLHeNqғ/ ]oHb @*I6bxL40-=Fc0=mw(?[u4W[#/@ Gvb)zdqh2\j$:eѭ(J:b7}ju5ns3S @ @,ZEcKKK`e&v f nthuBR'Bl'ŦޓH7ۡ @ 0ĢS,E`hSP.~9jek#{#0JQPjLwTZj]j7  @@,>5(fu=Ew_lmu4pZ ~&vR^ @ ^j,A[>ذz UoN6J SѮ&.Q)NB @1u#ێ],یR^_@ WFj˰=u\%Q   @@n8:Gm+xjzJ p8$IZcQ~mu#ZGZ3qHW!` @$X`ZF5O HMuS ݨZP߄\!` ":,u/<M#_/q%C @S@,7)D/a[S)R^(e{Hkn|~wM3;aЎ,ZHƄy @B%6 <\Xh/#"4^C @ ':x oIENDB`
PNG  IHDR.sRGB pHYs  YiTXtXML:com.adobe.xmp<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 5.4.0"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmlns:tiff="http://ns.adobe.com/tiff/1.0/"> <tiff:Orientation>1</tiff:Orientation> </rdf:Description> </rdf:RDF> </x:xmpmeta> L'Y@IDAT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[>ذz UoN6J SѮ&.Q)NB @1u#ێ],یR^_@ WFj˰=u\%Q   @@n8:Gm+xjzJ p8$IZcQ~mu#ZGZ3qHW!` @$X`ZF5O HMuS ݨZP߄\!` ":,u/<M#_/q%C @S@,7)D/a[S)R^(e{Hkn|~wM3;aЎ,ZHƄy @B%6 <\Xh/#"4^C @ ':x oIENDB`
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-core/src/main/java/com/ctrip/framework/foundation/internals/NetworkInterfaceManager.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.foundation.internals; import java.net.Inet4Address; import java.net.InetAddress; import java.net.NetworkInterface; import java.net.SocketException; import java.net.UnknownHostException; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.Enumeration; import java.util.List; public enum NetworkInterfaceManager { INSTANCE; private InetAddress m_local; private InetAddress m_localHost; NetworkInterfaceManager() { load(); } public InetAddress findValidateIp(List<InetAddress> addresses) { InetAddress local = null; int maxWeight = -1; for (InetAddress address : addresses) { if (address instanceof Inet4Address) { int weight = 0; if (address.isSiteLocalAddress()) { weight += 8; } if (address.isLinkLocalAddress()) { weight += 4; } if (address.isLoopbackAddress()) { weight += 2; } /** * The following logic is removed as we will sort the network interfaces according to the index asc to determine * the priorities between network interfaces, see https://github.com/ctripcorp/apollo/pull/1986 */ // has host name /* if (!Objects.equals(address.getHostName(), address.getHostAddress())) { weight += 1; } */ if (weight > maxWeight) { maxWeight = weight; local = address; } } } return local; } public String getLocalHostAddress() { return m_local.getHostAddress(); } public String getLocalHostName() { try { if (null == m_localHost) { m_localHost = InetAddress.getLocalHost(); } return m_localHost.getHostName(); } catch (UnknownHostException e) { return m_local.getHostName(); } } private String getProperty(String name) { String value = null; value = System.getProperty(name); if (value == null) { value = System.getenv(name); } return value; } private void load() { String ip = getProperty("host.ip"); if (ip != null) { try { m_local = InetAddress.getByName(ip); return; } catch (Exception e) { System.err.println(e); // ignore } } try { Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); List<NetworkInterface> nis = interfaces == null ? Collections.<NetworkInterface>emptyList() : Collections.list(interfaces); //sort the network interfaces according to the index asc Collections.sort(nis, new Comparator<NetworkInterface>() { @Override public int compare(NetworkInterface nis1, NetworkInterface nis2) { return Integer.compare(nis1.getIndex(), nis2.getIndex()); } }); List<InetAddress> addresses = new ArrayList<>(); InetAddress local = null; try { for (NetworkInterface ni : nis) { if (ni.isUp() && !ni.isLoopback()) { addresses.addAll(Collections.list(ni.getInetAddresses())); } } local = findValidateIp(addresses); } catch (Exception e) { // ignore } if (local != null) { m_local = local; return; } } catch (SocketException e) { // ignore it } m_local = InetAddress.getLoopbackAddress(); } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.foundation.internals; import java.net.Inet4Address; import java.net.InetAddress; import java.net.NetworkInterface; import java.net.SocketException; import java.net.UnknownHostException; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.Enumeration; import java.util.List; public enum NetworkInterfaceManager { INSTANCE; private InetAddress m_local; private InetAddress m_localHost; NetworkInterfaceManager() { load(); } public InetAddress findValidateIp(List<InetAddress> addresses) { InetAddress local = null; int maxWeight = -1; for (InetAddress address : addresses) { if (address instanceof Inet4Address) { int weight = 0; if (address.isSiteLocalAddress()) { weight += 8; } if (address.isLinkLocalAddress()) { weight += 4; } if (address.isLoopbackAddress()) { weight += 2; } /** * The following logic is removed as we will sort the network interfaces according to the index asc to determine * the priorities between network interfaces, see https://github.com/ctripcorp/apollo/pull/1986 */ // has host name /* if (!Objects.equals(address.getHostName(), address.getHostAddress())) { weight += 1; } */ if (weight > maxWeight) { maxWeight = weight; local = address; } } } return local; } public String getLocalHostAddress() { return m_local.getHostAddress(); } public String getLocalHostName() { try { if (null == m_localHost) { m_localHost = InetAddress.getLocalHost(); } return m_localHost.getHostName(); } catch (UnknownHostException e) { return m_local.getHostName(); } } private String getProperty(String name) { String value = null; value = System.getProperty(name); if (value == null) { value = System.getenv(name); } return value; } private void load() { String ip = getProperty("host.ip"); if (ip != null) { try { m_local = InetAddress.getByName(ip); return; } catch (Exception e) { System.err.println(e); // ignore } } try { Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); List<NetworkInterface> nis = interfaces == null ? Collections.<NetworkInterface>emptyList() : Collections.list(interfaces); //sort the network interfaces according to the index asc Collections.sort(nis, new Comparator<NetworkInterface>() { @Override public int compare(NetworkInterface nis1, NetworkInterface nis2) { return Integer.compare(nis1.getIndex(), nis2.getIndex()); } }); List<InetAddress> addresses = new ArrayList<>(); InetAddress local = null; try { for (NetworkInterface ni : nis) { if (ni.isUp() && !ni.isLoopback()) { addresses.addAll(Collections.list(ni.getInetAddresses())); } } local = findValidateIp(addresses); } catch (Exception e) { // ignore } if (local != null) { m_local = local; return; } } catch (SocketException e) { // ignore it } m_local = InetAddress.getLoopbackAddress(); } }
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-openapi/src/main/java/com/ctrip/framework/apollo/openapi/client/service/NamespaceOpenApiService.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.openapi.client.service; import com.ctrip.framework.apollo.core.ConfigConsts; import com.ctrip.framework.apollo.core.enums.ConfigFileFormat; import com.ctrip.framework.apollo.openapi.dto.OpenAppNamespaceDTO; import com.ctrip.framework.apollo.openapi.dto.OpenNamespaceDTO; import com.ctrip.framework.apollo.openapi.dto.OpenNamespaceLockDTO; import com.google.common.base.Strings; import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; import java.lang.reflect.Type; import java.util.List; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.util.EntityUtils; public class NamespaceOpenApiService extends AbstractOpenApiService { private static final Type OPEN_NAMESPACE_DTO_LIST_TYPE = new TypeToken<List<OpenNamespaceDTO>>() { }.getType(); public NamespaceOpenApiService(CloseableHttpClient client, String baseUrl, Gson gson) { super(client, baseUrl, gson); } public OpenNamespaceDTO getNamespace(String appId, String env, String clusterName, String namespaceName) { if (Strings.isNullOrEmpty(clusterName)) { clusterName = ConfigConsts.CLUSTER_NAME_DEFAULT; } if (Strings.isNullOrEmpty(namespaceName)) { namespaceName = ConfigConsts.NAMESPACE_APPLICATION; } checkNotEmpty(appId, "App id"); checkNotEmpty(env, "Env"); String path = String.format("envs/%s/apps/%s/clusters/%s/namespaces/%s", escapePath(env), escapePath(appId), escapePath(clusterName), escapePath(namespaceName)); try (CloseableHttpResponse response = get(path)) { return gson.fromJson(EntityUtils.toString(response.getEntity()), OpenNamespaceDTO.class); } catch (Throwable ex) { throw new RuntimeException(String .format("Get namespace for appId: %s, cluster: %s, namespace: %s in env: %s failed", appId, clusterName, namespaceName, env), ex); } } public List<OpenNamespaceDTO> getNamespaces(String appId, String env, String clusterName) { if (Strings.isNullOrEmpty(clusterName)) { clusterName = ConfigConsts.CLUSTER_NAME_DEFAULT; } checkNotEmpty(appId, "App id"); checkNotEmpty(env, "Env"); String path = String.format("envs/%s/apps/%s/clusters/%s/namespaces", escapePath(env), escapePath(appId), escapePath(clusterName)); try (CloseableHttpResponse response = get(path)) { return gson.fromJson(EntityUtils.toString(response.getEntity()), OPEN_NAMESPACE_DTO_LIST_TYPE); } catch (Throwable ex) { throw new RuntimeException(String .format("Get namespaces for appId: %s, cluster: %s in env: %s failed", appId, clusterName, env), ex); } } public OpenAppNamespaceDTO createAppNamespace(OpenAppNamespaceDTO appNamespaceDTO) { checkNotEmpty(appNamespaceDTO.getAppId(), "App id"); checkNotEmpty(appNamespaceDTO.getName(), "Name"); checkNotEmpty(appNamespaceDTO.getDataChangeCreatedBy(), "Created by"); if (Strings.isNullOrEmpty(appNamespaceDTO.getFormat())) { appNamespaceDTO.setFormat(ConfigFileFormat.Properties.getValue()); } String path = String.format("apps/%s/appnamespaces", escapePath(appNamespaceDTO.getAppId())); try (CloseableHttpResponse response = post(path, appNamespaceDTO)) { return gson.fromJson(EntityUtils.toString(response.getEntity()), OpenAppNamespaceDTO.class); } catch (Throwable ex) { throw new RuntimeException(String .format("Create app namespace: %s for appId: %s, format: %s failed", appNamespaceDTO.getName(), appNamespaceDTO.getAppId(), appNamespaceDTO.getFormat()), ex); } } public OpenNamespaceLockDTO getNamespaceLock(String appId, String env, String clusterName, String namespaceName) { if (Strings.isNullOrEmpty(clusterName)) { clusterName = ConfigConsts.CLUSTER_NAME_DEFAULT; } if (Strings.isNullOrEmpty(namespaceName)) { namespaceName = ConfigConsts.NAMESPACE_APPLICATION; } checkNotEmpty(appId, "App id"); checkNotEmpty(env, "Env"); String path = String.format("envs/%s/apps/%s/clusters/%s/namespaces/%s/lock", escapePath(env), escapePath(appId), escapePath(clusterName), escapePath(namespaceName)); try (CloseableHttpResponse response = get(path)) { return gson.fromJson(EntityUtils.toString(response.getEntity()), OpenNamespaceLockDTO.class); } catch (Throwable ex) { throw new RuntimeException(String .format("Get namespace lock for appId: %s, cluster: %s, namespace: %s in env: %s failed", appId, clusterName, namespaceName, env), ex); } } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.openapi.client.service; import com.ctrip.framework.apollo.core.ConfigConsts; import com.ctrip.framework.apollo.core.enums.ConfigFileFormat; import com.ctrip.framework.apollo.openapi.dto.OpenAppNamespaceDTO; import com.ctrip.framework.apollo.openapi.dto.OpenNamespaceDTO; import com.ctrip.framework.apollo.openapi.dto.OpenNamespaceLockDTO; import com.google.common.base.Strings; import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; import java.lang.reflect.Type; import java.util.List; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.util.EntityUtils; public class NamespaceOpenApiService extends AbstractOpenApiService { private static final Type OPEN_NAMESPACE_DTO_LIST_TYPE = new TypeToken<List<OpenNamespaceDTO>>() { }.getType(); public NamespaceOpenApiService(CloseableHttpClient client, String baseUrl, Gson gson) { super(client, baseUrl, gson); } public OpenNamespaceDTO getNamespace(String appId, String env, String clusterName, String namespaceName) { if (Strings.isNullOrEmpty(clusterName)) { clusterName = ConfigConsts.CLUSTER_NAME_DEFAULT; } if (Strings.isNullOrEmpty(namespaceName)) { namespaceName = ConfigConsts.NAMESPACE_APPLICATION; } checkNotEmpty(appId, "App id"); checkNotEmpty(env, "Env"); String path = String.format("envs/%s/apps/%s/clusters/%s/namespaces/%s", escapePath(env), escapePath(appId), escapePath(clusterName), escapePath(namespaceName)); try (CloseableHttpResponse response = get(path)) { return gson.fromJson(EntityUtils.toString(response.getEntity()), OpenNamespaceDTO.class); } catch (Throwable ex) { throw new RuntimeException(String .format("Get namespace for appId: %s, cluster: %s, namespace: %s in env: %s failed", appId, clusterName, namespaceName, env), ex); } } public List<OpenNamespaceDTO> getNamespaces(String appId, String env, String clusterName) { if (Strings.isNullOrEmpty(clusterName)) { clusterName = ConfigConsts.CLUSTER_NAME_DEFAULT; } checkNotEmpty(appId, "App id"); checkNotEmpty(env, "Env"); String path = String.format("envs/%s/apps/%s/clusters/%s/namespaces", escapePath(env), escapePath(appId), escapePath(clusterName)); try (CloseableHttpResponse response = get(path)) { return gson.fromJson(EntityUtils.toString(response.getEntity()), OPEN_NAMESPACE_DTO_LIST_TYPE); } catch (Throwable ex) { throw new RuntimeException(String .format("Get namespaces for appId: %s, cluster: %s in env: %s failed", appId, clusterName, env), ex); } } public OpenAppNamespaceDTO createAppNamespace(OpenAppNamespaceDTO appNamespaceDTO) { checkNotEmpty(appNamespaceDTO.getAppId(), "App id"); checkNotEmpty(appNamespaceDTO.getName(), "Name"); checkNotEmpty(appNamespaceDTO.getDataChangeCreatedBy(), "Created by"); if (Strings.isNullOrEmpty(appNamespaceDTO.getFormat())) { appNamespaceDTO.setFormat(ConfigFileFormat.Properties.getValue()); } String path = String.format("apps/%s/appnamespaces", escapePath(appNamespaceDTO.getAppId())); try (CloseableHttpResponse response = post(path, appNamespaceDTO)) { return gson.fromJson(EntityUtils.toString(response.getEntity()), OpenAppNamespaceDTO.class); } catch (Throwable ex) { throw new RuntimeException(String .format("Create app namespace: %s for appId: %s, format: %s failed", appNamespaceDTO.getName(), appNamespaceDTO.getAppId(), appNamespaceDTO.getFormat()), ex); } } public OpenNamespaceLockDTO getNamespaceLock(String appId, String env, String clusterName, String namespaceName) { if (Strings.isNullOrEmpty(clusterName)) { clusterName = ConfigConsts.CLUSTER_NAME_DEFAULT; } if (Strings.isNullOrEmpty(namespaceName)) { namespaceName = ConfigConsts.NAMESPACE_APPLICATION; } checkNotEmpty(appId, "App id"); checkNotEmpty(env, "Env"); String path = String.format("envs/%s/apps/%s/clusters/%s/namespaces/%s/lock", escapePath(env), escapePath(appId), escapePath(clusterName), escapePath(namespaceName)); try (CloseableHttpResponse response = get(path)) { return gson.fromJson(EntityUtils.toString(response.getEntity()), OpenNamespaceLockDTO.class); } catch (Throwable ex) { throw new RuntimeException(String .format("Get namespace lock for appId: %s, cluster: %s, namespace: %s in env: %s failed", appId, clusterName, namespaceName, env), ex); } } }
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./doc/images/tech-support-qq-1.png
PNG  IHDR.."h"IDATx pTqNQ5TڋBt[࠴"Ej͵#ނ2 kQ1IbDjA y )MLSHTr'OMȞsv{?g=rvfB8E/B! B QT(PBEB (*P(DQEB! (* QT(DQPB! B QT(PBEB (*P(DQœim>a{5ڶc((((((((('C1C>V|J#QwQEQEQEQEQEQ$((9gĎF1EQEQEQ1&((cLEQE1</{N鄰֢(((((((((^/S+\cʋ(((((((((v4ac3 ۔Cb|0{(((((((((sC6c(FEQۈ(EQ6(mD1"v~Nh IQEQEQEQEQEQEQEQEQo>>|U@ EQEQEQEQEQEQEQEQEQ uN8ݣ5l}EQEQEQEQEQEQEQEQEQ/ط$Q'!i$((((((((bɌz|q+(((((((('C?l& D92tpQEQEQEQEQEQEQEQEQLɌMT9Ɍzx4EQEQEQEQE[_+++;rsQEQlgڵkכo[jU<DQ C؁(}ZZy(i-!ŐP7c<ׁEQ{x (vt3g q@5DQ;(޽{]6<J(o~Pġ+,X9"vNئj2C+((@}V~T!'J5"7((wߧlYUյn<؀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OEQEQEQEQEQEQEQEQE1CN]m >CϏ0EQEQEQEQEQEQEQEQŎL)My{l(((((((((* QT(DQPB! B QKPBEB (*P(DQEB! (* QT(DQPB! B QT(PBEB (*P(bZqIENDB`
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-biz/src/main/java/com/ctrip/framework/apollo/biz/auth/WebSecurityConfig.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.biz.auth; import com.ctrip.framework.apollo.common.condition.ConditionalOnMissingProfile; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; @ConditionalOnMissingProfile("auth") @Configuration @EnableWebSecurity @EnableGlobalMethodSecurity(prePostEnabled = true) public class WebSecurityConfig extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws Exception { http.httpBasic(); http.csrf().disable(); http.headers().frameOptions().sameOrigin(); } /** * Although the authentication below is useless, we may not remove them for backward compatibility. * Because if we remove them and the old clients(before 0.9.0) still send the authentication * information, the server will return 401, which should cause big problems. * * We may remove the following once we remove spring security from Apollo. */ @Autowired public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception { auth.inMemoryAuthentication().withUser("user").password("").roles("USER").and() .withUser("apollo").password("").roles("USER", "ADMIN"); } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.biz.auth; import com.ctrip.framework.apollo.common.condition.ConditionalOnMissingProfile; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; @ConditionalOnMissingProfile("auth") @Configuration @EnableWebSecurity @EnableGlobalMethodSecurity(prePostEnabled = true) public class WebSecurityConfig extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws Exception { http.httpBasic(); http.csrf().disable(); http.headers().frameOptions().sameOrigin(); } /** * Although the authentication below is useless, we may not remove them for backward compatibility. * Because if we remove them and the old clients(before 0.9.0) still send the authentication * information, the server will return 401, which should cause big problems. * * We may remove the following once we remove spring security from Apollo. */ @Autowired public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception { auth.inMemoryAuthentication().withUser("user").password("").roles("USER").and() .withUser("apollo").password("").roles("USER", "ADMIN"); } }
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./doc/images/tech-support-qq-2.png
PNG  IHDR.."h-IDATx pTqNcZk:Ai}EԨq+(X+FJM""y5!4@=ytQX {lΞ={><nfBh@EB! (* QT(DQPB! B QT(PBEB (*P(DQEB! (* QT(DQPB! B QT(Pn4h9 ͽ1&((((((((x*c cB:{@EQEQEQEQEQEQEQEQEQ<]v(G`v};KcLEQEQEQǘ(((1QEQxH `QEQEQEQEQEQEQEQEQEQl)10֖rEQEQEQEQEQEQEQEQEQ`_ YcLEQEQEQEQEQEQEQEQE1 Z' EQ:(ZGEQ(EQE#.݄ma tǤ(((((((((a8|``_`yQEQEQEQEQEQEQEQEQX `OJ^Nos((((((((6 bٰ=q((((((((v(% dF} ۽CEQEQEQEQEQEQEQEQE1~yuTA&i|3/((((((((v(n@?/@;#lop-{EQEQEQEQo|;7pO?oEQlC;ut7O8qٲe'ع!7g#lJEQO,:w<f̘} 6M o40mQxPb|SF=V @(Qi箻u&(iӦ(b(bʕ=zEQPC=$C||; :v;4$*oo߾9!BE1^)9BE1.)u_⍟/t((F:lhh8s=k7lYUյ{l<27\EQuС$Ʀ& ,|= 5n $b);-'ȡ\ak͞xtc#l ٰ~a~E1t/_w._WRXyW]é#66f8wq{uEQ/_uz.v*l-'kY`ӗ_5[㿧;4=EQLpT9+0ڽdm`T@rw ?(bRCCYX>'@ } Ƨ4+CzS7}q's΢X"ڽ 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66C=~uRMモ1hEEgHs\vVfXowq~~K 䬹==[=$@;T޺}w9ld/۹8{cӇ%WE1A(665Q xE,@~*+r]Jr}#nOI,=;;gۂױpffXT[cQxf(++ C!ؚkOKtIq^3@R4/M_;g U. VtNI=骺҅h,ʜF:Z:'nDDZZ(bBQN# FfI[_CpJKȬ\o5YlT\mY~ؾr߇.k/4CEEEafEQl$jTeEN9mٲ9 ʶU E#+U ~^85+}ּiAê̝Qh$=0 (A1vO::vTXty9!.pE#QӢ\Pd P(FѬ9qxӌSS]G_q ۛi^SQK-?nC ,SNx9gv!//E#+7 @Sy6TA6)Z)w{q׿]4?PFyyyDQl-/X[k(fMFҶ-'=;;[z)9LWщ~2-MEQg敜5OOOit S36-L@7"Ӓa}[i*&(ZzXG^mxًԛ|hɰDѥ(b[hQ2?dHaCkߖݬH>t+R6xп`Q;y7vr'9Ojlj^jIܕVBkޔhI<hHEQ<G1hРSZjp =ڟLKcXX$jQQ*js=U sEQ ST5DQh%PE1`D222PCJ^ءj`Z^~QEQE_EQEQ(EQl$vM؆ݻ3&77>7A?g(6%( -(bA(((( X9~៺v2LEQEQEQEQEQEQEQEQE8vy0TAk DEQEQEQEQEQEQEQEQE1"؃ωX ~n9EQEQEQEQEQEQEQEQEQ<ñɃx|kP1QEQEQEQEQEQEQEQEQ05 Co{EQEQEQEQEQEQEQEQEQLhh:v$VPo((((((((v(&ơ/vϏEiWEQEQEQEQEQEQEQEQPRs"v̂5Uv2#YEQEQEQEQEQEQEQEQE1cwb<u6%((((((((<=D<|QEQEQEQEQEQEQEQEQEQ #saOG(((((((((O16i?'3&((((((((('7vh!l~b-((((((((6)* QT(DQPB! B QT(PBEB (*P(DQEB! (* QT(DQPB! B (*P(DQEB! (*c7IENDB`
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-configservice/src/test/java/com/ctrip/framework/apollo/ConfigServiceTestConfiguration.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo; import com.ctrip.framework.apollo.biz.auth.WebSecurityConfig; import com.ctrip.framework.apollo.configservice.ConfigServiceApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan.Filter; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.FilterType; @Configuration @ComponentScan(excludeFilters = {@Filter(type = FilterType.ASSIGNABLE_TYPE, value = { LocalConfigServiceApplication.class, ConfigServiceApplication.class, WebSecurityConfig.class})}) @EnableAutoConfiguration public class ConfigServiceTestConfiguration { }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo; import com.ctrip.framework.apollo.biz.auth.WebSecurityConfig; import com.ctrip.framework.apollo.configservice.ConfigServiceApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan.Filter; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.FilterType; @Configuration @ComponentScan(excludeFilters = {@Filter(type = FilterType.ASSIGNABLE_TYPE, value = { LocalConfigServiceApplication.class, ConfigServiceApplication.class, WebSecurityConfig.class})}) @EnableAutoConfiguration public class ConfigServiceTestConfiguration { }
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-portal/src/main/resources/static/scripts/services/ConfigService.js
/* * Copyright 2021 Apollo Authors * * Licensed 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. * */ appService.service("ConfigService", ['$resource', '$q', 'AppUtil', function ($resource, $q, AppUtil) { var config_source = $resource("", {}, { load_namespace: { method: 'GET', isArray: false, url: AppUtil.prefixPath() + '/apps/:appId/envs/:env/clusters/:clusterName/namespaces/:namespaceName' }, load_public_namespace_for_associated_namespace: { method: 'GET', isArray: false, url: AppUtil.prefixPath() + '/envs/:env/apps/:appId/clusters/:clusterName/namespaces/:namespaceName/associated-public-namespace' }, load_all_namespaces: { method: 'GET', isArray: true, url: AppUtil.prefixPath() + '/apps/:appId/envs/:env/clusters/:clusterName/namespaces' }, find_items: { method: 'GET', isArray: true, url: AppUtil.prefixPath() + '/apps/:appId/envs/:env/clusters/:clusterName/namespaces/:namespaceName/items' }, modify_items: { method: 'PUT', url: AppUtil.prefixPath() + '/apps/:appId/envs/:env/clusters/:clusterName/namespaces/:namespaceName/items' }, diff: { method: 'POST', url: AppUtil.prefixPath() + '/namespaces/:namespaceName/diff', isArray: true }, sync_item: { method: 'PUT', url: AppUtil.prefixPath() + '/apps/:appId/namespaces/:namespaceName/items', isArray: false }, create_item: { method: 'POST', url: AppUtil.prefixPath() + '/apps/:appId/envs/:env/clusters/:clusterName/namespaces/:namespaceName/item' }, update_item: { method: 'PUT', url: AppUtil.prefixPath() + '/apps/:appId/envs/:env/clusters/:clusterName/namespaces/:namespaceName/item' }, delete_item: { method: 'DELETE', url: AppUtil.prefixPath() + '/apps/:appId/envs/:env/clusters/:clusterName/namespaces/:namespaceName/items/:itemId' }, syntax_check_text: { method: 'POST', url: AppUtil.prefixPath() + '/apps/:appId/envs/:env/clusters/:clusterName/namespaces/:namespaceName/syntax-check' }, revoke_item: { method: 'PUT', url: AppUtil.prefixPath() + '/apps/:appId/envs/:env/clusters/:clusterName/namespaces/:namespaceName/revoke-items' }, }); return { load_namespace: function (appId, env, clusterName, namespaceName) { var d = $q.defer(); config_source.load_namespace({ appId: appId, env: env, clusterName: clusterName, namespaceName: namespaceName }, function (result) { d.resolve(result); }, function (result) { d.reject(result); }); return d.promise; }, load_public_namespace_for_associated_namespace: function (env, appId, clusterName, namespaceName) { var d = $q.defer(); config_source.load_public_namespace_for_associated_namespace({ env: env, appId: appId, clusterName: clusterName, namespaceName: namespaceName }, function (result) { d.resolve(result); }, function (result) { d.reject(result); }); return d.promise; }, load_all_namespaces: function (appId, env, clusterName) { var d = $q.defer(); config_source.load_all_namespaces({ appId: appId, env: env, clusterName: clusterName }, function (result) { d.resolve(result); }, function (result) { d.reject(result); }); return d.promise; }, find_items: function (appId, env, clusterName, namespaceName, orderBy) { var d = $q.defer(); config_source.find_items({ appId: appId, env: env, clusterName: clusterName, namespaceName: namespaceName, orderBy: orderBy }, function (result) { d.resolve(result); }, function (result) { d.reject(result); }); return d.promise; }, modify_items: function (appId, env, clusterName, namespaceName, model) { var d = $q.defer(); config_source.modify_items({ appId: appId, env: env, clusterName: clusterName, namespaceName: namespaceName }, model, function (result) { d.resolve(result); }, function (result) { d.reject(result); }); return d.promise; }, diff: function (namespaceName, sourceData) { var d = $q.defer(); config_source.diff({ namespaceName: namespaceName }, sourceData, function (result) { d.resolve(result); }, function (result) { d.reject(result); }); return d.promise; }, sync_items: function (appId, namespaceName, sourceData) { var d = $q.defer(); config_source.sync_item({ appId: appId, namespaceName: namespaceName }, sourceData, function (result) { d.resolve(result); }, function (result) { d.reject(result); }); return d.promise; }, create_item: function (appId, env, clusterName, namespaceName, item) { var d = $q.defer(); config_source.create_item({ appId: appId, env: env, clusterName: clusterName, namespaceName: namespaceName }, item, function (result) { d.resolve(result); }, function (result) { d.reject(result); }); return d.promise; }, update_item: function (appId, env, clusterName, namespaceName, item) { var d = $q.defer(); config_source.update_item({ appId: appId, env: env, clusterName: clusterName, namespaceName: namespaceName }, item, function (result) { d.resolve(result); }, function (result) { d.reject(result); }); return d.promise; }, delete_item: function (appId, env, clusterName, namespaceName, itemId) { var d = $q.defer(); config_source.delete_item({ appId: appId, env: env, clusterName: clusterName, namespaceName: namespaceName, itemId: itemId }, function (result) { d.resolve(result); }, function (result) { d.reject(result); }); return d.promise; }, syntax_check_text: function (appId, env, clusterName, namespaceName, model) { var d = $q.defer(); config_source.syntax_check_text({ appId: appId, env: env, clusterName: clusterName, namespaceName: namespaceName }, model, function (result) { d.resolve(result); }, function (result) { d.reject(result); }); return d.promise; }, revoke_item: function (appId, env, clusterName, namespaceName) { var d = $q.defer(); config_source.revoke_item({ appId: appId, env: env, clusterName: clusterName, namespaceName: namespaceName },{}, function (result) { d.resolve(result); }, function (result) { d.reject(result); }); return d.promise; } } }]);
/* * Copyright 2021 Apollo Authors * * Licensed 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. * */ appService.service("ConfigService", ['$resource', '$q', 'AppUtil', function ($resource, $q, AppUtil) { var config_source = $resource("", {}, { load_namespace: { method: 'GET', isArray: false, url: AppUtil.prefixPath() + '/apps/:appId/envs/:env/clusters/:clusterName/namespaces/:namespaceName' }, load_public_namespace_for_associated_namespace: { method: 'GET', isArray: false, url: AppUtil.prefixPath() + '/envs/:env/apps/:appId/clusters/:clusterName/namespaces/:namespaceName/associated-public-namespace' }, load_all_namespaces: { method: 'GET', isArray: true, url: AppUtil.prefixPath() + '/apps/:appId/envs/:env/clusters/:clusterName/namespaces' }, find_items: { method: 'GET', isArray: true, url: AppUtil.prefixPath() + '/apps/:appId/envs/:env/clusters/:clusterName/namespaces/:namespaceName/items' }, modify_items: { method: 'PUT', url: AppUtil.prefixPath() + '/apps/:appId/envs/:env/clusters/:clusterName/namespaces/:namespaceName/items' }, diff: { method: 'POST', url: AppUtil.prefixPath() + '/namespaces/:namespaceName/diff', isArray: true }, sync_item: { method: 'PUT', url: AppUtil.prefixPath() + '/apps/:appId/namespaces/:namespaceName/items', isArray: false }, create_item: { method: 'POST', url: AppUtil.prefixPath() + '/apps/:appId/envs/:env/clusters/:clusterName/namespaces/:namespaceName/item' }, update_item: { method: 'PUT', url: AppUtil.prefixPath() + '/apps/:appId/envs/:env/clusters/:clusterName/namespaces/:namespaceName/item' }, delete_item: { method: 'DELETE', url: AppUtil.prefixPath() + '/apps/:appId/envs/:env/clusters/:clusterName/namespaces/:namespaceName/items/:itemId' }, syntax_check_text: { method: 'POST', url: AppUtil.prefixPath() + '/apps/:appId/envs/:env/clusters/:clusterName/namespaces/:namespaceName/syntax-check' }, revoke_item: { method: 'PUT', url: AppUtil.prefixPath() + '/apps/:appId/envs/:env/clusters/:clusterName/namespaces/:namespaceName/revoke-items' }, }); return { load_namespace: function (appId, env, clusterName, namespaceName) { var d = $q.defer(); config_source.load_namespace({ appId: appId, env: env, clusterName: clusterName, namespaceName: namespaceName }, function (result) { d.resolve(result); }, function (result) { d.reject(result); }); return d.promise; }, load_public_namespace_for_associated_namespace: function (env, appId, clusterName, namespaceName) { var d = $q.defer(); config_source.load_public_namespace_for_associated_namespace({ env: env, appId: appId, clusterName: clusterName, namespaceName: namespaceName }, function (result) { d.resolve(result); }, function (result) { d.reject(result); }); return d.promise; }, load_all_namespaces: function (appId, env, clusterName) { var d = $q.defer(); config_source.load_all_namespaces({ appId: appId, env: env, clusterName: clusterName }, function (result) { d.resolve(result); }, function (result) { d.reject(result); }); return d.promise; }, find_items: function (appId, env, clusterName, namespaceName, orderBy) { var d = $q.defer(); config_source.find_items({ appId: appId, env: env, clusterName: clusterName, namespaceName: namespaceName, orderBy: orderBy }, function (result) { d.resolve(result); }, function (result) { d.reject(result); }); return d.promise; }, modify_items: function (appId, env, clusterName, namespaceName, model) { var d = $q.defer(); config_source.modify_items({ appId: appId, env: env, clusterName: clusterName, namespaceName: namespaceName }, model, function (result) { d.resolve(result); }, function (result) { d.reject(result); }); return d.promise; }, diff: function (namespaceName, sourceData) { var d = $q.defer(); config_source.diff({ namespaceName: namespaceName }, sourceData, function (result) { d.resolve(result); }, function (result) { d.reject(result); }); return d.promise; }, sync_items: function (appId, namespaceName, sourceData) { var d = $q.defer(); config_source.sync_item({ appId: appId, namespaceName: namespaceName }, sourceData, function (result) { d.resolve(result); }, function (result) { d.reject(result); }); return d.promise; }, create_item: function (appId, env, clusterName, namespaceName, item) { var d = $q.defer(); config_source.create_item({ appId: appId, env: env, clusterName: clusterName, namespaceName: namespaceName }, item, function (result) { d.resolve(result); }, function (result) { d.reject(result); }); return d.promise; }, update_item: function (appId, env, clusterName, namespaceName, item) { var d = $q.defer(); config_source.update_item({ appId: appId, env: env, clusterName: clusterName, namespaceName: namespaceName }, item, function (result) { d.resolve(result); }, function (result) { d.reject(result); }); return d.promise; }, delete_item: function (appId, env, clusterName, namespaceName, itemId) { var d = $q.defer(); config_source.delete_item({ appId: appId, env: env, clusterName: clusterName, namespaceName: namespaceName, itemId: itemId }, function (result) { d.resolve(result); }, function (result) { d.reject(result); }); return d.promise; }, syntax_check_text: function (appId, env, clusterName, namespaceName, model) { var d = $q.defer(); config_source.syntax_check_text({ appId: appId, env: env, clusterName: clusterName, namespaceName: namespaceName }, model, function (result) { d.resolve(result); }, function (result) { d.reject(result); }); return d.promise; }, revoke_item: function (appId, env, clusterName, namespaceName) { var d = $q.defer(); config_source.revoke_item({ appId: appId, env: env, clusterName: clusterName, namespaceName: namespaceName },{}, function (result) { d.resolve(result); }, function (result) { d.reject(result); }); return d.promise; } } }]);
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-common/src/main/java/com/ctrip/framework/apollo/common/aop/RepositoryAspect.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.common.aop; import com.ctrip.framework.apollo.tracer.Tracer; import com.ctrip.framework.apollo.tracer.spi.Transaction; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Pointcut; import org.springframework.stereotype.Component; @Aspect @Component public class RepositoryAspect { @Pointcut("execution(public * org.springframework.data.repository.Repository+.*(..))") public void anyRepositoryMethod() { } @Around("anyRepositoryMethod()") public Object invokeWithCatTransaction(ProceedingJoinPoint joinPoint) throws Throwable { String name = joinPoint.getSignature().getDeclaringType().getSimpleName() + "." + joinPoint.getSignature() .getName(); Transaction catTransaction = Tracer.newTransaction("SQL", name); try { Object result = joinPoint.proceed(); catTransaction.setStatus(Transaction.SUCCESS); return result; } catch (Throwable ex) { catTransaction.setStatus(ex); throw ex; } finally { catTransaction.complete(); } } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.common.aop; import com.ctrip.framework.apollo.tracer.Tracer; import com.ctrip.framework.apollo.tracer.spi.Transaction; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Pointcut; import org.springframework.stereotype.Component; @Aspect @Component public class RepositoryAspect { @Pointcut("execution(public * org.springframework.data.repository.Repository+.*(..))") public void anyRepositoryMethod() { } @Around("anyRepositoryMethod()") public Object invokeWithCatTransaction(ProceedingJoinPoint joinPoint) throws Throwable { String name = joinPoint.getSignature().getDeclaringType().getSimpleName() + "." + joinPoint.getSignature() .getName(); Transaction catTransaction = Tracer.newTransaction("SQL", name); try { Object result = joinPoint.proceed(); catTransaction.setStatus(Transaction.SUCCESS); return result; } catch (Throwable ex) { catTransaction.setStatus(ex); throw ex; } finally { catTransaction.complete(); } } }
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/api/API.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.api; import com.ctrip.framework.apollo.portal.component.RetryableRestTemplate; import org.springframework.beans.factory.annotation.Autowired; public abstract class API { @Autowired protected RetryableRestTemplate restTemplate; }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.api; import com.ctrip.framework.apollo.portal.component.RetryableRestTemplate; import org.springframework.beans.factory.annotation.Autowired; public abstract class API { @Autowired protected RetryableRestTemplate restTemplate; }
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/ctrip/WebContextConfiguration.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.spi.ctrip; import com.ctrip.framework.apollo.portal.component.config.PortalConfig; import com.ctrip.framework.apollo.portal.spi.UserInfoHolder; import com.ctrip.framework.apollo.portal.spi.ctrip.filters.UserAccessFilter; import com.google.common.base.Strings; import org.springframework.boot.web.servlet.FilterRegistrationBean; import org.springframework.boot.web.servlet.ServletContextInitializer; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Profile; @Configuration @Profile("ctrip") public class WebContextConfiguration { private final PortalConfig portalConfig; private final UserInfoHolder userInfoHolder; public WebContextConfiguration(final PortalConfig portalConfig, final UserInfoHolder userInfoHolder) { this.portalConfig = portalConfig; this.userInfoHolder = userInfoHolder; } @Bean public ServletContextInitializer servletContextInitializer() { return servletContext -> { String loggingServerIP = portalConfig.cloggingUrl(); String loggingServerPort = portalConfig.cloggingPort(); String credisServiceUrl = portalConfig.credisServiceUrl(); servletContext.setInitParameter("loggingServerIP", Strings.isNullOrEmpty(loggingServerIP) ? "" : loggingServerIP); servletContext.setInitParameter("loggingServerPort", Strings.isNullOrEmpty(loggingServerPort) ? "" : loggingServerPort); servletContext.setInitParameter("credisServiceUrl", Strings.isNullOrEmpty(credisServiceUrl) ? "" : credisServiceUrl); }; } @Bean public FilterRegistrationBean userAccessFilter() { FilterRegistrationBean filter = new FilterRegistrationBean(); filter.setFilter(new UserAccessFilter(userInfoHolder)); filter.addUrlPatterns("/*"); return filter; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.spi.ctrip; import com.ctrip.framework.apollo.portal.component.config.PortalConfig; import com.ctrip.framework.apollo.portal.spi.UserInfoHolder; import com.ctrip.framework.apollo.portal.spi.ctrip.filters.UserAccessFilter; import com.google.common.base.Strings; import org.springframework.boot.web.servlet.FilterRegistrationBean; import org.springframework.boot.web.servlet.ServletContextInitializer; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Profile; @Configuration @Profile("ctrip") public class WebContextConfiguration { private final PortalConfig portalConfig; private final UserInfoHolder userInfoHolder; public WebContextConfiguration(final PortalConfig portalConfig, final UserInfoHolder userInfoHolder) { this.portalConfig = portalConfig; this.userInfoHolder = userInfoHolder; } @Bean public ServletContextInitializer servletContextInitializer() { return servletContext -> { String loggingServerIP = portalConfig.cloggingUrl(); String loggingServerPort = portalConfig.cloggingPort(); String credisServiceUrl = portalConfig.credisServiceUrl(); servletContext.setInitParameter("loggingServerIP", Strings.isNullOrEmpty(loggingServerIP) ? "" : loggingServerIP); servletContext.setInitParameter("loggingServerPort", Strings.isNullOrEmpty(loggingServerPort) ? "" : loggingServerPort); servletContext.setInitParameter("credisServiceUrl", Strings.isNullOrEmpty(credisServiceUrl) ? "" : credisServiceUrl); }; } @Bean public FilterRegistrationBean userAccessFilter() { FilterRegistrationBean filter = new FilterRegistrationBean(); filter.setFilter(new UserAccessFilter(userInfoHolder)); filter.addUrlPatterns("/*"); return filter; } }
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-portal/src/main/resources/static/config/diff.html
<!-- ~ Copyright 2021 Apollo Authors ~ ~ Licensed 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. ~ --> <!doctype html> <html ng-app="diff_item"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="icon" href="../img/config.png"> <!-- styles --> <link rel="stylesheet" type="text/css" href="../vendor/bootstrap/css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="../vendor/angular/angular-toastr-1.4.1.min.css"> <link rel="stylesheet" type="text/css" media='all' href="../vendor/angular/loading-bar.min.css"> <link rel="stylesheet" type="text/css" href="../styles/common-style.css"> <link rel="stylesheet" type="text/css" href="../vendor/select2/select2.min.css"> <title>{{'Config.Diff.Title' | translate }}</title> <style> .comment-toggle { margin-left: 8px !important; } .diff-content { margin-top: 12px; } </style> </head> <body> <apollonav></apollonav> <div class="container-fluid apollo-container" ng-controller="DiffItemController"> <section class="panel col-md-offset-1 col-md-10"> <header class="panel-heading"> <div class="row"> <div class="col-md-7"> <h4 class="modal-title">{{'Config.Diff.Title' | translate }} <small ng-show="syncItemStep == 1">{{'Config.Diff.FirstStep' | translate }}</small> <small ng-show="syncItemStep == 2">{{'Config.Diff.SecondStep' | translate }}</small> </h4> </div> <div class="col-md-5 text-right"> <button type="button" class="btn btn-primary" ng-show="syncItemStep > 1 && syncItemStep < 3" ng-click="syncItemNextStep(-1)">{{'Config.Diff.PreviousStep' | translate }} </button> <button type="button" class="btn btn-primary" ng-show="syncItemStep < 2" ng-click="diff()">{{'Config.Diff.NextStep' | translate }} </button> <button type="button" class="btn btn-info" data-dismiss="modal" ng-click="backToAppHomePage()">{{'Common.ReturnToIndex' | translate }} </button> </div> </div> </header> <div class="panel-body"> <div class="row" ng-show="syncItemStep == 1"> <div class="alert-info alert no-radius"> <strong>{{'Config.Diff.TipsTitle' | translate }}:</strong> <ul> <li>{{'Config.Diff.Tips' | translate }}</li> </ul> </div> <div class="form-horizontal"> <div class="form-group"> <label class="col-sm-2 control-label">{{'Config.Diff.DiffCluster' | translate }}</label> <div class="col-sm-6"> <apolloclusterselector apollo-app-id="pageContext.appId" apollo-default-all-checked="false" apollo-select="collectSelectedClusters" apollo-default-checked-env="pageContext.env" apollo-default-checked-cluster="pageContext.clusterName"></apolloclusterselector> </div> </div> </div> <hr> </div> <!--step 2--> <div class="row" ng-show="syncItemStep == 2"> <div class="row" style="margin-top: 10px;"> <div class="form-horizontal"> <div class="col-sm-12"> <label class="control-label"> <input type="checkbox" class="comment-toggle" ng-checked="showCommentDiff" ng-click="showCommentDiff=!showCommentDiff"> {{'Config.Diff.HasDiffComment' | translate }} </label> </div> <div class="col-sm-12 diff-content"> <table class="table table-bordered table-striped table-hover"> <thead> <tr> <td>Key</td> <td ng-repeat="cluster in syncData.syncToNamespaces" ng-bind="cluster.env + ':' + cluster.clusterName + ':' + cluster.namespaceName + ':Value'"> </td> <td ng-show="showCommentDiff" ng-repeat="cluster in syncData.syncToNamespaces" ng-bind="cluster.env + ':' + cluster.clusterName + ':' + cluster.namespaceName + ':Comment'"> </td> </tr> </thead> <tbody> <tr ng-repeat="(key, itemsKeyedByCluster) in itemsKeyedByKey"> <td width="15%" ng-bind="key"></td> <td ng-repeat="cluster in syncData.syncToNamespaces" ng-bind="(itemsKeyedByCluster[cluster.env + ':' + cluster.clusterName + ':' + cluster.namespaceName] || {}).value"> </td> <td ng-show="showCommentDiff" ng-repeat="cluster in syncData.syncToNamespaces" ng-bind="(itemsKeyedByCluster[cluster.env + ':' + cluster.clusterName + ':' + cluster.namespaceName] || {}).comment"> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </section> <showtextmodal text="text" /> </div> <div ng-include="'../views/common/footer.html'"></div> <!-- jquery.js --> <script src="../vendor/jquery.min.js" type="text/javascript"></script> <script src="../vendor/select2/select2.min.js" type="text/javascript"></script> <!--angular--> <script src="../vendor/angular/angular.min.js"></script> <script src="../vendor/angular/angular-resource.min.js"></script> <script src="../vendor/angular/angular-toastr-1.4.1.tpls.min.js"></script> <script src="../vendor/angular/loading-bar.min.js"></script> <script src="../vendor/angular/angular-cookies.min.js"></script> <script src="../vendor/angular/angular-translate.2.18.1/angular-translate.min.js"></script> <script src="../vendor/angular/angular-translate.2.18.1/angular-translate-loader-static-files.min.js"></script> <script src="../vendor/angular/angular-translate.2.18.1/angular-translate-storage-cookie.min.js"></script> <!-- bootstrap.js --> <script src="../vendor/bootstrap/js/bootstrap.min.js" type="text/javascript"></script> <script src="../vendor/clipboard.min.js" type="text/javascript"></script> <!--biz--> <script type="application/javascript" src="../scripts/app.js"></script> <script type="application/javascript" src="../scripts/services/AppService.js"></script> <script type="application/javascript" src="../scripts/services/EnvService.js"></script> <script type="application/javascript" src="../scripts/services/ConfigService.js"></script> <script type="application/javascript" src="../scripts/services/UserService.js"></script> <script type="application/javascript" src="../scripts/services/CommonService.js"></script> <script type="application/javascript" src="../scripts/services/PermissionService.js"></script> <script type="application/javascript" src="../scripts/AppUtils.js"></script> <script type="application/javascript" src="../scripts/controller/config/DiffConfigController.js"></script> <script type="application/javascript" src="../scripts/PageCommon.js"></script> <script type="application/javascript" src="../scripts/directive/directive.js"></script> <script type="application/javascript" src="../scripts/directive/show-text-modal-directive.js"></script> </body> </html>
<!-- ~ Copyright 2021 Apollo Authors ~ ~ Licensed 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. ~ --> <!doctype html> <html ng-app="diff_item"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="icon" href="../img/config.png"> <!-- styles --> <link rel="stylesheet" type="text/css" href="../vendor/bootstrap/css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="../vendor/angular/angular-toastr-1.4.1.min.css"> <link rel="stylesheet" type="text/css" media='all' href="../vendor/angular/loading-bar.min.css"> <link rel="stylesheet" type="text/css" href="../styles/common-style.css"> <link rel="stylesheet" type="text/css" href="../vendor/select2/select2.min.css"> <title>{{'Config.Diff.Title' | translate }}</title> <style> .comment-toggle { margin-left: 8px !important; } .diff-content { margin-top: 12px; } </style> </head> <body> <apollonav></apollonav> <div class="container-fluid apollo-container" ng-controller="DiffItemController"> <section class="panel col-md-offset-1 col-md-10"> <header class="panel-heading"> <div class="row"> <div class="col-md-7"> <h4 class="modal-title">{{'Config.Diff.Title' | translate }} <small ng-show="syncItemStep == 1">{{'Config.Diff.FirstStep' | translate }}</small> <small ng-show="syncItemStep == 2">{{'Config.Diff.SecondStep' | translate }}</small> </h4> </div> <div class="col-md-5 text-right"> <button type="button" class="btn btn-primary" ng-show="syncItemStep > 1 && syncItemStep < 3" ng-click="syncItemNextStep(-1)">{{'Config.Diff.PreviousStep' | translate }} </button> <button type="button" class="btn btn-primary" ng-show="syncItemStep < 2" ng-click="diff()">{{'Config.Diff.NextStep' | translate }} </button> <button type="button" class="btn btn-info" data-dismiss="modal" ng-click="backToAppHomePage()">{{'Common.ReturnToIndex' | translate }} </button> </div> </div> </header> <div class="panel-body"> <div class="row" ng-show="syncItemStep == 1"> <div class="alert-info alert no-radius"> <strong>{{'Config.Diff.TipsTitle' | translate }}:</strong> <ul> <li>{{'Config.Diff.Tips' | translate }}</li> </ul> </div> <div class="form-horizontal"> <div class="form-group"> <label class="col-sm-2 control-label">{{'Config.Diff.DiffCluster' | translate }}</label> <div class="col-sm-6"> <apolloclusterselector apollo-app-id="pageContext.appId" apollo-default-all-checked="false" apollo-select="collectSelectedClusters" apollo-default-checked-env="pageContext.env" apollo-default-checked-cluster="pageContext.clusterName"></apolloclusterselector> </div> </div> </div> <hr> </div> <!--step 2--> <div class="row" ng-show="syncItemStep == 2"> <div class="row" style="margin-top: 10px;"> <div class="form-horizontal"> <div class="col-sm-12"> <label class="control-label"> <input type="checkbox" class="comment-toggle" ng-checked="showCommentDiff" ng-click="showCommentDiff=!showCommentDiff"> {{'Config.Diff.HasDiffComment' | translate }} </label> </div> <div class="col-sm-12 diff-content"> <table class="table table-bordered table-striped table-hover"> <thead> <tr> <td>Key</td> <td ng-repeat="cluster in syncData.syncToNamespaces" ng-bind="cluster.env + ':' + cluster.clusterName + ':' + cluster.namespaceName + ':Value'"> </td> <td ng-show="showCommentDiff" ng-repeat="cluster in syncData.syncToNamespaces" ng-bind="cluster.env + ':' + cluster.clusterName + ':' + cluster.namespaceName + ':Comment'"> </td> </tr> </thead> <tbody> <tr ng-repeat="(key, itemsKeyedByCluster) in itemsKeyedByKey"> <td width="15%" ng-bind="key"></td> <td ng-repeat="cluster in syncData.syncToNamespaces" ng-bind="(itemsKeyedByCluster[cluster.env + ':' + cluster.clusterName + ':' + cluster.namespaceName] || {}).value"> </td> <td ng-show="showCommentDiff" ng-repeat="cluster in syncData.syncToNamespaces" ng-bind="(itemsKeyedByCluster[cluster.env + ':' + cluster.clusterName + ':' + cluster.namespaceName] || {}).comment"> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </section> <showtextmodal text="text" /> </div> <div ng-include="'../views/common/footer.html'"></div> <!-- jquery.js --> <script src="../vendor/jquery.min.js" type="text/javascript"></script> <script src="../vendor/select2/select2.min.js" type="text/javascript"></script> <!--angular--> <script src="../vendor/angular/angular.min.js"></script> <script src="../vendor/angular/angular-resource.min.js"></script> <script src="../vendor/angular/angular-toastr-1.4.1.tpls.min.js"></script> <script src="../vendor/angular/loading-bar.min.js"></script> <script src="../vendor/angular/angular-cookies.min.js"></script> <script src="../vendor/angular/angular-translate.2.18.1/angular-translate.min.js"></script> <script src="../vendor/angular/angular-translate.2.18.1/angular-translate-loader-static-files.min.js"></script> <script src="../vendor/angular/angular-translate.2.18.1/angular-translate-storage-cookie.min.js"></script> <!-- bootstrap.js --> <script src="../vendor/bootstrap/js/bootstrap.min.js" type="text/javascript"></script> <script src="../vendor/clipboard.min.js" type="text/javascript"></script> <!--biz--> <script type="application/javascript" src="../scripts/app.js"></script> <script type="application/javascript" src="../scripts/services/AppService.js"></script> <script type="application/javascript" src="../scripts/services/EnvService.js"></script> <script type="application/javascript" src="../scripts/services/ConfigService.js"></script> <script type="application/javascript" src="../scripts/services/UserService.js"></script> <script type="application/javascript" src="../scripts/services/CommonService.js"></script> <script type="application/javascript" src="../scripts/services/PermissionService.js"></script> <script type="application/javascript" src="../scripts/AppUtils.js"></script> <script type="application/javascript" src="../scripts/controller/config/DiffConfigController.js"></script> <script type="application/javascript" src="../scripts/PageCommon.js"></script> <script type="application/javascript" src="../scripts/directive/directive.js"></script> <script type="application/javascript" src="../scripts/directive/show-text-modal-directive.js"></script> </body> </html>
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./scripts/helm/apollo-portal/templates/deployment-portal.yaml
# # Copyright 2021 Apollo Authors # # Licensed 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. # --- # configmap for apollo-portal kind: ConfigMap apiVersion: v1 metadata: {{- $portalFullName := include "apollo.portal.fullName" . }} name: {{ $portalFullName }} data: application-github.properties: | spring.datasource.url = jdbc:mysql://{{include "apollo.portaldb.serviceName" .}}:{{include "apollo.portaldb.servicePort" .}}/{{ .Values.portaldb.dbName }}{{ if .Values.portaldb.connectionStringProperties }}?{{ .Values.portaldb.connectionStringProperties }}{{ end }} spring.datasource.username = {{ required "portaldb.userName is required!" .Values.portaldb.userName }} spring.datasource.password = {{ required "portaldb.password is required!" .Values.portaldb.password }} {{- if .Values.config.envs }} apollo.portal.envs = {{ .Values.config.envs }} {{- end }} {{- if .Values.config.contextPath }} server.servlet.context-path = {{ .Values.config.contextPath }} {{- end }} apollo-env.properties: | {{- range $env, $address := .Values.config.metaServers }} {{ $env }}.meta = {{ $address }} {{- end }} {{- range $fileName, $content := .Values.config.files }} {{ $fileName | indent 2 }}: | {{ $content | indent 4 }} {{- end }} --- kind: Deployment apiVersion: apps/v1 metadata: name: {{ $portalFullName }} labels: {{- include "apollo.portal.labels" . | nindent 4 }} spec: replicas: {{ .Values.replicaCount }} selector: matchLabels: app: {{ $portalFullName }} {{- with .Values.strategy }} strategy: {{- toYaml . | nindent 4 }} {{- end }} template: metadata: labels: app: {{ $portalFullName }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} volumes: - name: configmap-{{ $portalFullName }} configMap: name: {{ $portalFullName }} items: - key: application-github.properties path: application-github.properties - key: apollo-env.properties path: apollo-env.properties {{- range $fileName, $content := .Values.config.files }} - key: {{ $fileName }} path: {{ $fileName }} {{- end }} defaultMode: 420 containers: - name: {{ .Values.name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: http containerPort: {{ .Values.containerPort }} protocol: TCP env: - name: SPRING_PROFILES_ACTIVE value: {{ .Values.config.profiles | quote }} {{- range $key, $value := .Values.env }} - name: {{ $key }} value: {{ $value }} {{- end }} volumeMounts: - name: configmap-{{ $portalFullName }} mountPath: /apollo-portal/config/application-github.properties subPath: application-github.properties - name: configmap-{{ $portalFullName }} mountPath: /apollo-portal/config/apollo-env.properties subPath: apollo-env.properties {{- range $fileName, $content := .Values.config.files }} - name: configmap-{{ $portalFullName }} mountPath: /apollo-portal/config/{{ $fileName }} subPath: {{ $fileName }} {{- end }} livenessProbe: tcpSocket: port: {{ .Values.containerPort }} initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }} periodSeconds: {{ .Values.liveness.periodSeconds }} readinessProbe: httpGet: path: {{ .Values.config.contextPath }}/health port: {{ .Values.containerPort }} initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }} periodSeconds: {{ .Values.readiness.periodSeconds }} resources: {{- toYaml .Values.resources | nindent 12 }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }}
# # Copyright 2021 Apollo Authors # # Licensed 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. # --- # configmap for apollo-portal kind: ConfigMap apiVersion: v1 metadata: {{- $portalFullName := include "apollo.portal.fullName" . }} name: {{ $portalFullName }} data: application-github.properties: | spring.datasource.url = jdbc:mysql://{{include "apollo.portaldb.serviceName" .}}:{{include "apollo.portaldb.servicePort" .}}/{{ .Values.portaldb.dbName }}{{ if .Values.portaldb.connectionStringProperties }}?{{ .Values.portaldb.connectionStringProperties }}{{ end }} spring.datasource.username = {{ required "portaldb.userName is required!" .Values.portaldb.userName }} spring.datasource.password = {{ required "portaldb.password is required!" .Values.portaldb.password }} {{- if .Values.config.envs }} apollo.portal.envs = {{ .Values.config.envs }} {{- end }} {{- if .Values.config.contextPath }} server.servlet.context-path = {{ .Values.config.contextPath }} {{- end }} apollo-env.properties: | {{- range $env, $address := .Values.config.metaServers }} {{ $env }}.meta = {{ $address }} {{- end }} {{- range $fileName, $content := .Values.config.files }} {{ $fileName | indent 2 }}: | {{ $content | indent 4 }} {{- end }} --- kind: Deployment apiVersion: apps/v1 metadata: name: {{ $portalFullName }} labels: {{- include "apollo.portal.labels" . | nindent 4 }} spec: replicas: {{ .Values.replicaCount }} selector: matchLabels: app: {{ $portalFullName }} {{- with .Values.strategy }} strategy: {{- toYaml . | nindent 4 }} {{- end }} template: metadata: labels: app: {{ $portalFullName }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} volumes: - name: configmap-{{ $portalFullName }} configMap: name: {{ $portalFullName }} items: - key: application-github.properties path: application-github.properties - key: apollo-env.properties path: apollo-env.properties {{- range $fileName, $content := .Values.config.files }} - key: {{ $fileName }} path: {{ $fileName }} {{- end }} defaultMode: 420 containers: - name: {{ .Values.name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: http containerPort: {{ .Values.containerPort }} protocol: TCP env: - name: SPRING_PROFILES_ACTIVE value: {{ .Values.config.profiles | quote }} {{- range $key, $value := .Values.env }} - name: {{ $key }} value: {{ $value }} {{- end }} volumeMounts: - name: configmap-{{ $portalFullName }} mountPath: /apollo-portal/config/application-github.properties subPath: application-github.properties - name: configmap-{{ $portalFullName }} mountPath: /apollo-portal/config/apollo-env.properties subPath: apollo-env.properties {{- range $fileName, $content := .Values.config.files }} - name: configmap-{{ $portalFullName }} mountPath: /apollo-portal/config/{{ $fileName }} subPath: {{ $fileName }} {{- end }} livenessProbe: tcpSocket: port: {{ .Values.containerPort }} initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }} periodSeconds: {{ .Values.liveness.periodSeconds }} readinessProbe: httpGet: path: {{ .Values.config.contextPath }}/health port: {{ .Values.containerPort }} initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }} periodSeconds: {{ .Values.readiness.periodSeconds }} resources: {{- toYaml .Values.resources | nindent 12 }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }}
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-portal/src/test/resources/application.properties
# # Copyright 2021 Apollo Authors # # Licensed 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. # spring.datasource.url = jdbc:h2:mem:~/apolloportaldb;mode=mysql;DB_CLOSE_ON_EXIT=FALSE;DB_CLOSE_DELAY=-1 spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl spring.jpa.properties.hibernate.show_sql=false spring.h2.console.enabled = true spring.h2.console.settings.web-allow-others=true spring.main.allow-bean-definition-overriding=true
# # Copyright 2021 Apollo Authors # # Licensed 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. # spring.datasource.url = jdbc:h2:mem:~/apolloportaldb;mode=mysql;DB_CLOSE_ON_EXIT=FALSE;DB_CLOSE_DELAY=-1 spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl spring.jpa.properties.hibernate.show_sql=false spring.h2.console.enabled = true spring.h2.console.settings.web-allow-others=true spring.main.allow-bean-definition-overriding=true
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-portal/src/main/resources/static/img/delete.png
PNG  IHDRXIDATx^]Mr&e'YE7|Ћ#WN`d֑O`*dey"_UX^LXY0s'xz2~j̈%z?0~lV~3mPs  `o=Ş[D*X1O[g;z ^isKϰEEN&%I.,feMm@EN>L?>' <-G ͷD\ ^I @MQ?!‡VV,ң ܷ'X}Q~xIݦ#$G^gB/<Ajf4/4}ƳCyf RifBQVQ(MF oBV/{^ʤK%H&SM&(}Kz3mlY]^희޷J)$AjJX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w(HG)T{KQ$A.KJM*LX`>kn ӼBӳ ~.ʿ!ZӬ|tA݀H n@$@ @E@@h Ł AA*((@ TQ(QP-PD8DZ" Bq @E@@h Ł AA*((@ TQ(QP-PD8DZ" Bq @E@@h Ł AA*()A$a@iDRBQ+Bǣ~B"!P7Kn=4/(2#{qO "G^g+y@|ě Z!؟| '[]Ug-s } ypN=w5'Z\`.g$0AP9L.IBxJRu~a:Xv9 $@w7\浽,!v'Ux ^<mcM;@!<NT=X<& = :]DDa:A<]B" rx܅]׾^HcjݧR'A -j$!KNA˄ #f: 2E@>m=̠2!܋lAk1BLm)w/3MJ(_f1#1e߲H^sC)feݛeJ lAAK3NgP&d'Krdb]mtO+cSӳ,r{ W;`^vl@@eR*߈?+sRz%u{"^zىhp:8qSi%-IENDB`
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-core/src/test/resources/META-INF/services/com.ctrip.framework.foundation.internals.ServiceBootstrapTest$Interface4
com.ctrip.framework.foundation.internals.ServiceBootstrapTest$Interface1Impl
com.ctrip.framework.foundation.internals.ServiceBootstrapTest$Interface1Impl
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-adminservice/pom.xml
<?xml version="1.0" encoding="UTF-8"?> <!-- ~ Copyright 2021 Apollo Authors ~ ~ Licensed 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. ~ --> <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/maven-v4_0_0.xsd"> <parent> <groupId>com.ctrip.framework.apollo</groupId> <artifactId>apollo</artifactId> <version>${revision}</version> <relativePath>../pom.xml</relativePath> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>apollo-adminservice</artifactId> <name>Apollo AdminService</name> <properties> <github.path>${project.artifactId}</github.path> </properties> <dependencies> <!-- apollo --> <dependency> <groupId>com.ctrip.framework.apollo</groupId> <artifactId>apollo-biz</artifactId> </dependency> <!-- end of apollo --> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId> <scope>test</scope> <exclusions> <exclusion> <artifactId>spring-cloud-starter-netflix-archaius</artifactId> <groupId>org.springframework.cloud</groupId> </exclusion> <exclusion> <artifactId>spring-cloud-starter-netflix-ribbon</artifactId> <groupId>org.springframework.cloud</groupId> </exclusion> <exclusion> <artifactId>ribbon-eureka</artifactId> <groupId>com.netflix.ribbon</groupId> </exclusion> <exclusion> <artifactId>aws-java-sdk-core</artifactId> <groupId>com.amazonaws</groupId> </exclusion> <exclusion> <artifactId>aws-java-sdk-ec2</artifactId> <groupId>com.amazonaws</groupId> </exclusion> <exclusion> <artifactId>aws-java-sdk-autoscaling</artifactId> <groupId>com.amazonaws</groupId> </exclusion> <exclusion> <artifactId>aws-java-sdk-sts</artifactId> <groupId>com.amazonaws</groupId> </exclusion> <exclusion> <artifactId>aws-java-sdk-route53</artifactId> <groupId>com.amazonaws</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.sun.jersey.contribs</groupId> <artifactId>jersey-apache-client4</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> <scope>test</scope> </dependency> <!-- JDK 1.8+ --> <dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId> </dependency> <dependency> <groupId>org.glassfish.jaxb</groupId> <artifactId>jaxb-runtime</artifactId> </dependency> <dependency> <groupId>javax.activation</groupId> <artifactId>activation</artifactId> </dependency> <!-- end of JDK 1.8+ --> <!-- JDK 11+ --> <dependency> <groupId>org.javassist</groupId> <artifactId>javassist</artifactId> </dependency> <!-- end of JDK 11+ --> </dependencies> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> <plugin> <artifactId>maven-assembly-plugin</artifactId> <executions> <execution> <phase>package</phase> <goals> <goal>single</goal> </goals> <configuration> <finalName>${project.artifactId}-${project.version}-${package.environment}</finalName> <appendAssemblyId>false</appendAssemblyId> <descriptors> <descriptor>src/assembly/assembly-descriptor.xml</descriptor> </descriptors> </configuration> </execution> </executions> </plugin> <plugin> <groupId>com.spotify</groupId> <artifactId>docker-maven-plugin</artifactId> <version>1.2.2</version> <configuration> <imageName>apolloconfig/${project.artifactId}</imageName> <imageTags> <imageTag>${project.version}</imageTag> <imageTag>latest</imageTag> </imageTags> <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory> <serverId>docker-hub</serverId> <buildArgs> <VERSION>${project.version}</VERSION> </buildArgs> <resources> <resource> <targetPath>/</targetPath> <directory>${project.build.directory}</directory> <include>*.zip</include> </resource> </resources> </configuration> </plugin> </plugins> </build> <profiles> <profile> <id>nacos-discovery</id> <dependencies> <dependency> <groupId>com.alibaba.boot</groupId> <artifactId>nacos-discovery-spring-boot-starter</artifactId> </dependency> <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> </dependency> </dependencies> </profile> </profiles> </project>
<?xml version="1.0" encoding="UTF-8"?> <!-- ~ Copyright 2021 Apollo Authors ~ ~ Licensed 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. ~ --> <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/maven-v4_0_0.xsd"> <parent> <groupId>com.ctrip.framework.apollo</groupId> <artifactId>apollo</artifactId> <version>${revision}</version> <relativePath>../pom.xml</relativePath> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>apollo-adminservice</artifactId> <name>Apollo AdminService</name> <properties> <github.path>${project.artifactId}</github.path> </properties> <dependencies> <!-- apollo --> <dependency> <groupId>com.ctrip.framework.apollo</groupId> <artifactId>apollo-biz</artifactId> </dependency> <!-- end of apollo --> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId> <scope>test</scope> <exclusions> <exclusion> <artifactId>spring-cloud-starter-netflix-archaius</artifactId> <groupId>org.springframework.cloud</groupId> </exclusion> <exclusion> <artifactId>spring-cloud-starter-netflix-ribbon</artifactId> <groupId>org.springframework.cloud</groupId> </exclusion> <exclusion> <artifactId>ribbon-eureka</artifactId> <groupId>com.netflix.ribbon</groupId> </exclusion> <exclusion> <artifactId>aws-java-sdk-core</artifactId> <groupId>com.amazonaws</groupId> </exclusion> <exclusion> <artifactId>aws-java-sdk-ec2</artifactId> <groupId>com.amazonaws</groupId> </exclusion> <exclusion> <artifactId>aws-java-sdk-autoscaling</artifactId> <groupId>com.amazonaws</groupId> </exclusion> <exclusion> <artifactId>aws-java-sdk-sts</artifactId> <groupId>com.amazonaws</groupId> </exclusion> <exclusion> <artifactId>aws-java-sdk-route53</artifactId> <groupId>com.amazonaws</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.sun.jersey.contribs</groupId> <artifactId>jersey-apache-client4</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> <scope>test</scope> </dependency> <!-- JDK 1.8+ --> <dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId> </dependency> <dependency> <groupId>org.glassfish.jaxb</groupId> <artifactId>jaxb-runtime</artifactId> </dependency> <dependency> <groupId>javax.activation</groupId> <artifactId>activation</artifactId> </dependency> <!-- end of JDK 1.8+ --> <!-- JDK 11+ --> <dependency> <groupId>org.javassist</groupId> <artifactId>javassist</artifactId> </dependency> <!-- end of JDK 11+ --> </dependencies> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> <plugin> <artifactId>maven-assembly-plugin</artifactId> <executions> <execution> <phase>package</phase> <goals> <goal>single</goal> </goals> <configuration> <finalName>${project.artifactId}-${project.version}-${package.environment}</finalName> <appendAssemblyId>false</appendAssemblyId> <descriptors> <descriptor>src/assembly/assembly-descriptor.xml</descriptor> </descriptors> </configuration> </execution> </executions> </plugin> <plugin> <groupId>com.spotify</groupId> <artifactId>docker-maven-plugin</artifactId> <version>1.2.2</version> <configuration> <imageName>apolloconfig/${project.artifactId}</imageName> <imageTags> <imageTag>${project.version}</imageTag> <imageTag>latest</imageTag> </imageTags> <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory> <serverId>docker-hub</serverId> <buildArgs> <VERSION>${project.version}</VERSION> </buildArgs> <resources> <resource> <targetPath>/</targetPath> <directory>${project.build.directory}</directory> <include>*.zip</include> </resource> </resources> </configuration> </plugin> </plugins> </build> <profiles> <profile> <id>nacos-discovery</id> <dependencies> <dependency> <groupId>com.alibaba.boot</groupId> <artifactId>nacos-discovery-spring-boot-starter</artifactId> </dependency> <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> </dependency> </dependencies> </profile> </profiles> </project>
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-adminservice/src/test/java/com/ctrip/framework/apollo/adminservice/controller/AbstractControllerTest.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.adminservice.controller; import com.ctrip.framework.apollo.AdminServiceTestConfiguration; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.autoconfigure.http.HttpMessageConverters; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest.WebEnvironment; import org.springframework.boot.test.web.client.TestRestTemplate; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.web.client.DefaultResponseErrorHandler; import org.springframework.web.client.RestTemplate; import javax.annotation.PostConstruct; @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes = AdminServiceTestConfiguration.class, webEnvironment = WebEnvironment.RANDOM_PORT) public abstract class AbstractControllerTest { @Autowired private HttpMessageConverters httpMessageConverters; protected RestTemplate restTemplate = (new TestRestTemplate()).getRestTemplate(); @PostConstruct private void postConstruct() { restTemplate.setErrorHandler(new DefaultResponseErrorHandler()); restTemplate.setMessageConverters(httpMessageConverters.getConverters()); } @Value("${local.server.port}") protected int port; protected String url(String path) { return "http://localhost:" + port + path; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.adminservice.controller; import com.ctrip.framework.apollo.AdminServiceTestConfiguration; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.autoconfigure.http.HttpMessageConverters; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest.WebEnvironment; import org.springframework.boot.test.web.client.TestRestTemplate; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.web.client.DefaultResponseErrorHandler; import org.springframework.web.client.RestTemplate; import javax.annotation.PostConstruct; @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes = AdminServiceTestConfiguration.class, webEnvironment = WebEnvironment.RANDOM_PORT) public abstract class AbstractControllerTest { @Autowired private HttpMessageConverters httpMessageConverters; protected RestTemplate restTemplate = (new TestRestTemplate()).getRestTemplate(); @PostConstruct private void postConstruct() { restTemplate.setErrorHandler(new DefaultResponseErrorHandler()); restTemplate.setMessageConverters(httpMessageConverters.getConverters()); } @Value("${local.server.port}") protected int port; protected String url(String path) { return "http://localhost:" + port + path; } }
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-portal/src/main/resources/static/scripts/controller/open/OpenManageController.js
/* * Copyright 2021 Apollo Authors * * Licensed 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. * */ open_manage_module.controller('OpenManageController', ['$scope', '$translate', 'toastr', 'AppUtil', 'OrganizationService', 'ConsumerService', 'PermissionService', 'EnvService', OpenManageController]); function OpenManageController($scope, $translate, toastr, AppUtil, OrganizationService, ConsumerService, PermissionService, EnvService) { var $orgWidget = $('#organization'); $scope.consumer = {}; $scope.consumerRole = { type: 'NamespaceRole' }; $scope.submitBtnDisabled = false; $scope.userSelectWidgetId = 'toAssignMasterRoleUser'; $scope.getTokenByAppId = getTokenByAppId; $scope.createConsumer = createConsumer; $scope.assignRoleToConsumer = assignRoleToConsumer; function init() { initOrganization(); initPermission(); initEnv(); } function initOrganization() { OrganizationService.find_organizations().then(function (result) { var organizations = []; result.forEach(function (item) { var org = {}; org.id = item.orgId; org.text = item.orgName + '(' + item.orgId + ')'; org.name = item.orgName; organizations.push(org); }); $orgWidget.select2({ placeholder: $translate.instant('Common.PleaseChooseDepartment'), width: '100%', data: organizations }); }, function (result) { toastr.error(AppUtil.errorMsg(result), "load organizations error"); }); } function initPermission() { PermissionService.has_root_permission() .then(function (result) { $scope.isRootUser = result.hasPermission; }); } function initEnv() { EnvService.find_all_envs() .then(function (result) { $scope.envs = new Array(); for (var iLoop = 0; iLoop < result.length; iLoop++) { $scope.envs.push({ checked: false, env: result[iLoop] }); $scope.envsChecked = new Array(); } $scope.switchSelect = function (item) { item.checked = !item.checked; $scope.envsChecked = new Array(); for (var iLoop = 0; iLoop < $scope.envs.length; iLoop++) { var env = $scope.envs[iLoop]; if (env.checked) { $scope.envsChecked.push(env.env); } } }; }); } function getTokenByAppId() { if (!$scope.consumer.appId) { toastr.warning($translate.instant('Open.Manage.PleaseEnterAppId')); return; } ConsumerService.getConsumerTokenByAppId($scope.consumer.appId) .then(function (consumerToken) { if (consumerToken.token) { $scope.consumerToken = consumerToken; $scope.consumerRole.token = consumerToken.token; } else { $scope.consumerToken = { token: $translate.instant('Open.Manage.AppNotCreated', { appId: $scope.consumer.appId }) }; } }); } function createConsumer() { $scope.submitBtnDisabled = true; if (!$scope.consumer.appId) { toastr.warning($translate.instant('Open.Manage.PleaseEnterAppId')); return; } var selectedOrg = $orgWidget.select2('data')[0]; if (!selectedOrg.id) { toastr.warning($translate.instant('Common.PleaseChooseDepartment')); return; } $scope.consumer.orgId = selectedOrg.id; $scope.consumer.orgName = selectedOrg.name; // owner var owner = $('.ownerSelector').select2('data')[0]; if (!owner) { toastr.warning($translate.instant('Common.PleaseChooseOwner')); return; } $scope.consumer.ownerName = owner.id; ConsumerService.createConsumer($scope.consumer) .then(function (consumerToken) { toastr.success($translate.instant('Common.Created')); $scope.consumerToken = consumerToken; $scope.consumerRole.token = consumerToken.token; $scope.submitBtnDisabled = false; $scope.consumer = {}; }, function (response) { AppUtil.showErrorMsg(response, $translate.instant('Common.CreateFailed')); $scope.submitBtnDisabled = false; }) } function assignRoleToConsumer() { ConsumerService.assignRoleToConsumer($scope.consumerRole.token, $scope.consumerRole.type, $scope.consumerRole.appId, $scope.consumerRole.namespaceName, $scope.envsChecked) .then(function (consumerRoles) { toastr.success($translate.instant('Open.Manage.GrantSuccessfully')); }, function (response) { AppUtil.showErrorMsg(response, $translate.instant('Open.Manage.GrantFailed')); }) } init(); }
/* * Copyright 2021 Apollo Authors * * Licensed 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. * */ open_manage_module.controller('OpenManageController', ['$scope', '$translate', 'toastr', 'AppUtil', 'OrganizationService', 'ConsumerService', 'PermissionService', 'EnvService', OpenManageController]); function OpenManageController($scope, $translate, toastr, AppUtil, OrganizationService, ConsumerService, PermissionService, EnvService) { var $orgWidget = $('#organization'); $scope.consumer = {}; $scope.consumerRole = { type: 'NamespaceRole' }; $scope.submitBtnDisabled = false; $scope.userSelectWidgetId = 'toAssignMasterRoleUser'; $scope.getTokenByAppId = getTokenByAppId; $scope.createConsumer = createConsumer; $scope.assignRoleToConsumer = assignRoleToConsumer; function init() { initOrganization(); initPermission(); initEnv(); } function initOrganization() { OrganizationService.find_organizations().then(function (result) { var organizations = []; result.forEach(function (item) { var org = {}; org.id = item.orgId; org.text = item.orgName + '(' + item.orgId + ')'; org.name = item.orgName; organizations.push(org); }); $orgWidget.select2({ placeholder: $translate.instant('Common.PleaseChooseDepartment'), width: '100%', data: organizations }); }, function (result) { toastr.error(AppUtil.errorMsg(result), "load organizations error"); }); } function initPermission() { PermissionService.has_root_permission() .then(function (result) { $scope.isRootUser = result.hasPermission; }); } function initEnv() { EnvService.find_all_envs() .then(function (result) { $scope.envs = new Array(); for (var iLoop = 0; iLoop < result.length; iLoop++) { $scope.envs.push({ checked: false, env: result[iLoop] }); $scope.envsChecked = new Array(); } $scope.switchSelect = function (item) { item.checked = !item.checked; $scope.envsChecked = new Array(); for (var iLoop = 0; iLoop < $scope.envs.length; iLoop++) { var env = $scope.envs[iLoop]; if (env.checked) { $scope.envsChecked.push(env.env); } } }; }); } function getTokenByAppId() { if (!$scope.consumer.appId) { toastr.warning($translate.instant('Open.Manage.PleaseEnterAppId')); return; } ConsumerService.getConsumerTokenByAppId($scope.consumer.appId) .then(function (consumerToken) { if (consumerToken.token) { $scope.consumerToken = consumerToken; $scope.consumerRole.token = consumerToken.token; } else { $scope.consumerToken = { token: $translate.instant('Open.Manage.AppNotCreated', { appId: $scope.consumer.appId }) }; } }); } function createConsumer() { $scope.submitBtnDisabled = true; if (!$scope.consumer.appId) { toastr.warning($translate.instant('Open.Manage.PleaseEnterAppId')); return; } var selectedOrg = $orgWidget.select2('data')[0]; if (!selectedOrg.id) { toastr.warning($translate.instant('Common.PleaseChooseDepartment')); return; } $scope.consumer.orgId = selectedOrg.id; $scope.consumer.orgName = selectedOrg.name; // owner var owner = $('.ownerSelector').select2('data')[0]; if (!owner) { toastr.warning($translate.instant('Common.PleaseChooseOwner')); return; } $scope.consumer.ownerName = owner.id; ConsumerService.createConsumer($scope.consumer) .then(function (consumerToken) { toastr.success($translate.instant('Common.Created')); $scope.consumerToken = consumerToken; $scope.consumerRole.token = consumerToken.token; $scope.submitBtnDisabled = false; $scope.consumer = {}; }, function (response) { AppUtil.showErrorMsg(response, $translate.instant('Common.CreateFailed')); $scope.submitBtnDisabled = false; }) } function assignRoleToConsumer() { ConsumerService.assignRoleToConsumer($scope.consumerRole.token, $scope.consumerRole.type, $scope.consumerRole.appId, $scope.consumerRole.namespaceName, $scope.envsChecked) .then(function (consumerRoles) { toastr.success($translate.instant('Open.Manage.GrantSuccessfully')); }, function (response) { AppUtil.showErrorMsg(response, $translate.instant('Open.Manage.GrantFailed')); }) } init(); }
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./scripts/sql/delta/v060-v062/apolloportaldb-v060-v062.sql
-- -- Copyright 2021 Apollo Authors -- -- Licensed 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. -- # delta schema to upgrade apollo portal db from v0.6.0 to v0.6.2 Use ApolloPortalDB; ALTER TABLE `App` DROP INDEX `NAME`; CREATE INDEX `IX_NAME` ON App (`Name`(191));
-- -- Copyright 2021 Apollo Authors -- -- Licensed 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. -- # delta schema to upgrade apollo portal db from v0.6.0 to v0.6.2 Use ApolloPortalDB; ALTER TABLE `App` DROP INDEX `NAME`; CREATE INDEX `IX_NAME` ON App (`Name`(191));
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./scripts/apollo-on-kubernetes/kubernetes/apollo-env-test-beta/service-apollo-admin-server-test-beta.yaml
# # Copyright 2021 Apollo Authors # # Licensed 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. # --- # configmap for apollo-admin-server-test-beta kind: ConfigMap apiVersion: v1 metadata: namespace: sre name: configmap-apollo-admin-server-test-beta data: application-github.properties: | spring.datasource.url = jdbc:mysql://service-mysql-for-apollo-test-beta-env.sre:3306/TestBetaApolloConfigDB?characterEncoding=utf8 spring.datasource.username = FillInCorrectUser spring.datasource.password = FillInCorrectPassword eureka.service.url = http://statefulset-apollo-config-server-test-beta-0.service-apollo-meta-server-test-beta:8080/eureka/,http://statefulset-apollo-config-server-test-beta-1.service-apollo-meta-server-test-beta:8080/eureka/,http://statefulset-apollo-config-server-test-beta-2.service-apollo-meta-server-test-beta:8080/eureka/ --- kind: Service apiVersion: v1 metadata: namespace: sre name: service-apollo-admin-server-test-beta labels: app: service-apollo-admin-server-test-beta spec: ports: - protocol: TCP port: 8090 targetPort: 8090 selector: app: pod-apollo-admin-server-test-beta type: ClusterIP sessionAffinity: ClientIP --- kind: Deployment apiVersion: apps/v1 metadata: namespace: sre name: deployment-apollo-admin-server-test-beta labels: app: deployment-apollo-admin-server-test-beta spec: replicas: 3 selector: matchLabels: app: pod-apollo-admin-server-test-beta strategy: rollingUpdate: maxSurge: 1 maxUnavailable: 1 type: RollingUpdate template: metadata: labels: app: pod-apollo-admin-server-test-beta spec: affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - weight: 100 podAffinityTerm: labelSelector: matchExpressions: - key: app operator: In values: - pod-apollo-admin-server-test-beta topologyKey: kubernetes.io/hostname volumes: - name: volume-configmap-apollo-admin-server-test-beta configMap: name: configmap-apollo-admin-server-test-beta items: - key: application-github.properties path: application-github.properties initContainers: - image: alpine-bash:3.8 name: check-service-apollo-config-server-test-beta command: ['bash', '-c', "curl --connect-timeout 2 --max-time 5 --retry 60 --retry-delay 1 --retry-max-time 120 service-apollo-config-server-test-beta.sre:8080"] containers: - image: apollo-admin-server:v1.0.0 imagePullPolicy: IfNotPresent name: container-apollo-admin-server-test-beta ports: - protocol: TCP containerPort: 8090 volumeMounts: - name: volume-configmap-apollo-admin-server-test-beta mountPath: /apollo-admin-server/config/application-github.properties subPath: application-github.properties env: - name: APOLLO_ADMIN_SERVICE_NAME value: "service-apollo-admin-server-test-beta.sre" readinessProbe: tcpSocket: port: 8090 initialDelaySeconds: 10 periodSeconds: 5 livenessProbe: tcpSocket: port: 8090 initialDelaySeconds: 120 periodSeconds: 10 dnsPolicy: ClusterFirst restartPolicy: Always
# # Copyright 2021 Apollo Authors # # Licensed 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. # --- # configmap for apollo-admin-server-test-beta kind: ConfigMap apiVersion: v1 metadata: namespace: sre name: configmap-apollo-admin-server-test-beta data: application-github.properties: | spring.datasource.url = jdbc:mysql://service-mysql-for-apollo-test-beta-env.sre:3306/TestBetaApolloConfigDB?characterEncoding=utf8 spring.datasource.username = FillInCorrectUser spring.datasource.password = FillInCorrectPassword eureka.service.url = http://statefulset-apollo-config-server-test-beta-0.service-apollo-meta-server-test-beta:8080/eureka/,http://statefulset-apollo-config-server-test-beta-1.service-apollo-meta-server-test-beta:8080/eureka/,http://statefulset-apollo-config-server-test-beta-2.service-apollo-meta-server-test-beta:8080/eureka/ --- kind: Service apiVersion: v1 metadata: namespace: sre name: service-apollo-admin-server-test-beta labels: app: service-apollo-admin-server-test-beta spec: ports: - protocol: TCP port: 8090 targetPort: 8090 selector: app: pod-apollo-admin-server-test-beta type: ClusterIP sessionAffinity: ClientIP --- kind: Deployment apiVersion: apps/v1 metadata: namespace: sre name: deployment-apollo-admin-server-test-beta labels: app: deployment-apollo-admin-server-test-beta spec: replicas: 3 selector: matchLabels: app: pod-apollo-admin-server-test-beta strategy: rollingUpdate: maxSurge: 1 maxUnavailable: 1 type: RollingUpdate template: metadata: labels: app: pod-apollo-admin-server-test-beta spec: affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - weight: 100 podAffinityTerm: labelSelector: matchExpressions: - key: app operator: In values: - pod-apollo-admin-server-test-beta topologyKey: kubernetes.io/hostname volumes: - name: volume-configmap-apollo-admin-server-test-beta configMap: name: configmap-apollo-admin-server-test-beta items: - key: application-github.properties path: application-github.properties initContainers: - image: alpine-bash:3.8 name: check-service-apollo-config-server-test-beta command: ['bash', '-c', "curl --connect-timeout 2 --max-time 5 --retry 60 --retry-delay 1 --retry-max-time 120 service-apollo-config-server-test-beta.sre:8080"] containers: - image: apollo-admin-server:v1.0.0 imagePullPolicy: IfNotPresent name: container-apollo-admin-server-test-beta ports: - protocol: TCP containerPort: 8090 volumeMounts: - name: volume-configmap-apollo-admin-server-test-beta mountPath: /apollo-admin-server/config/application-github.properties subPath: application-github.properties env: - name: APOLLO_ADMIN_SERVICE_NAME value: "service-apollo-admin-server-test-beta.sre" readinessProbe: tcpSocket: port: 8090 initialDelaySeconds: 10 periodSeconds: 5 livenessProbe: tcpSocket: port: 8090 initialDelaySeconds: 120 periodSeconds: 10 dnsPolicy: ClusterFirst restartPolicy: Always
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./scripts/apollo-on-kubernetes/kubernetes/apollo-env-test-alpha/service-apollo-admin-server-test-alpha.yaml
# # Copyright 2021 Apollo Authors # # Licensed 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. # --- # configmap for apollo-admin-server-test-alpha kind: ConfigMap apiVersion: v1 metadata: namespace: sre name: configmap-apollo-admin-server-test-alpha data: application-github.properties: | spring.datasource.url = jdbc:mysql://service-mysql-for-apollo-test-alpha-env.sre:3306/TestAlphaApolloConfigDB?characterEncoding=utf8 spring.datasource.username = FillInCorrectUser spring.datasource.password = FillInCorrectPassword eureka.service.url = http://statefulset-apollo-config-server-test-alpha-0.service-apollo-meta-server-test-alpha:8080/eureka/,http://statefulset-apollo-config-server-test-alpha-1.service-apollo-meta-server-test-alpha:8080/eureka/,http://statefulset-apollo-config-server-test-alpha-2.service-apollo-meta-server-test-alpha:8080/eureka/ --- kind: Service apiVersion: v1 metadata: namespace: sre name: service-apollo-admin-server-test-alpha labels: app: service-apollo-admin-server-test-alpha spec: ports: - protocol: TCP port: 8090 targetPort: 8090 selector: app: pod-apollo-admin-server-test-alpha type: ClusterIP sessionAffinity: ClientIP --- kind: Deployment apiVersion: apps/v1 metadata: namespace: sre name: deployment-apollo-admin-server-test-alpha labels: app: deployment-apollo-admin-server-test-alpha spec: replicas: 3 selector: matchLabels: app: pod-apollo-admin-server-test-alpha strategy: rollingUpdate: maxSurge: 1 maxUnavailable: 1 type: RollingUpdate template: metadata: labels: app: pod-apollo-admin-server-test-alpha spec: affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - weight: 100 podAffinityTerm: labelSelector: matchExpressions: - key: app operator: In values: - pod-apollo-admin-server-test-alpha topologyKey: kubernetes.io/hostname volumes: - name: volume-configmap-apollo-admin-server-test-alpha configMap: name: configmap-apollo-admin-server-test-alpha items: - key: application-github.properties path: application-github.properties initContainers: - image: alpine-bash:3.8 name: check-service-apollo-config-server-test-alpha command: ['bash', '-c', "curl --connect-timeout 2 --max-time 5 --retry 60 --retry-delay 1 --retry-max-time 120 service-apollo-config-server-test-alpha.sre:8080"] containers: - image: apollo-admin-server:v1.0.0 securityContext: privileged: true imagePullPolicy: IfNotPresent name: container-apollo-admin-server-test-alpha ports: - protocol: TCP containerPort: 8090 volumeMounts: - name: volume-configmap-apollo-admin-server-test-alpha mountPath: /apollo-admin-server/config/application-github.properties subPath: application-github.properties env: - name: APOLLO_ADMIN_SERVICE_NAME value: "service-apollo-admin-server-test-alpha.sre" readinessProbe: tcpSocket: port: 8090 initialDelaySeconds: 10 periodSeconds: 5 livenessProbe: tcpSocket: port: 8090 initialDelaySeconds: 120 periodSeconds: 10 dnsPolicy: ClusterFirst restartPolicy: Always
# # Copyright 2021 Apollo Authors # # Licensed 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. # --- # configmap for apollo-admin-server-test-alpha kind: ConfigMap apiVersion: v1 metadata: namespace: sre name: configmap-apollo-admin-server-test-alpha data: application-github.properties: | spring.datasource.url = jdbc:mysql://service-mysql-for-apollo-test-alpha-env.sre:3306/TestAlphaApolloConfigDB?characterEncoding=utf8 spring.datasource.username = FillInCorrectUser spring.datasource.password = FillInCorrectPassword eureka.service.url = http://statefulset-apollo-config-server-test-alpha-0.service-apollo-meta-server-test-alpha:8080/eureka/,http://statefulset-apollo-config-server-test-alpha-1.service-apollo-meta-server-test-alpha:8080/eureka/,http://statefulset-apollo-config-server-test-alpha-2.service-apollo-meta-server-test-alpha:8080/eureka/ --- kind: Service apiVersion: v1 metadata: namespace: sre name: service-apollo-admin-server-test-alpha labels: app: service-apollo-admin-server-test-alpha spec: ports: - protocol: TCP port: 8090 targetPort: 8090 selector: app: pod-apollo-admin-server-test-alpha type: ClusterIP sessionAffinity: ClientIP --- kind: Deployment apiVersion: apps/v1 metadata: namespace: sre name: deployment-apollo-admin-server-test-alpha labels: app: deployment-apollo-admin-server-test-alpha spec: replicas: 3 selector: matchLabels: app: pod-apollo-admin-server-test-alpha strategy: rollingUpdate: maxSurge: 1 maxUnavailable: 1 type: RollingUpdate template: metadata: labels: app: pod-apollo-admin-server-test-alpha spec: affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - weight: 100 podAffinityTerm: labelSelector: matchExpressions: - key: app operator: In values: - pod-apollo-admin-server-test-alpha topologyKey: kubernetes.io/hostname volumes: - name: volume-configmap-apollo-admin-server-test-alpha configMap: name: configmap-apollo-admin-server-test-alpha items: - key: application-github.properties path: application-github.properties initContainers: - image: alpine-bash:3.8 name: check-service-apollo-config-server-test-alpha command: ['bash', '-c', "curl --connect-timeout 2 --max-time 5 --retry 60 --retry-delay 1 --retry-max-time 120 service-apollo-config-server-test-alpha.sre:8080"] containers: - image: apollo-admin-server:v1.0.0 securityContext: privileged: true imagePullPolicy: IfNotPresent name: container-apollo-admin-server-test-alpha ports: - protocol: TCP containerPort: 8090 volumeMounts: - name: volume-configmap-apollo-admin-server-test-alpha mountPath: /apollo-admin-server/config/application-github.properties subPath: application-github.properties env: - name: APOLLO_ADMIN_SERVICE_NAME value: "service-apollo-admin-server-test-alpha.sre" readinessProbe: tcpSocket: port: 8090 initialDelaySeconds: 10 periodSeconds: 5 livenessProbe: tcpSocket: port: 8090 initialDelaySeconds: 120 periodSeconds: 10 dnsPolicy: ClusterFirst restartPolicy: Always
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./doc/images/gray-release/prepare-to-full-release.png
PNG  IHDR{ IDATxřNؼ9H"H9crt>پw'DEI"g*9RCk4 ߂tWWW=]ַߪ )dpFBp$B " /*SE ~D@D@D@D@D@D@D@D@D D3,* X,f۶mM|)#" " gϞ֫W/ BP$AZ@H*O%&" " " " N[jYn,]" "Кx{n+,,aÆIkMJ+#/#QH'6lpO:HDtED #Buۭo߾Q.BZ"tD@D@D@D@D[ZZjC ݧf4D@Du qʲ>}Ν;%.^$e@%v"`ϙ3gӯ_?;s-mKq˖-{ԩS[H:>'X;v trtr]v?neeeMciӦȑvYg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Dk(PT!8"'@ F笡ŷ#Tk(-7yh' +Bg04U>^* 5tP7D@D S0uzB)M.G?DU <5xʃC?/ư 7s<{a<yOa 5bhx`14y&AE u(l|ɮ7k֬9yJ^xSѦ$ Ur /^;Fqᘼ~DQޏ?C}z~Fyod8!XV#<.䒄idcr6:n0PO]@&c #b҃}50ⵘ%P.D@Dah:ɺNñ3gO?͝cB|K56(!7Q-}cFX)eq.7> qx0 @)%?ls8L 3S0! 1 sB?q%&c4~?m?jI&3xW@Mw;&':+4Wׁd ~ =Jg .DxByxg޼p#l!z}HLh,s1l%r7Zgk凴X 9% Ku3 ~iR;LB_Co̙{fnD6縶{p~:"tD@D@D@D@D@D@D@:#b8(+o%}#С e\xn%_C+L[t?VAD@Dm &OԶgT"9tΆKؓ0ŞlKD@Z]Uz" /鋡@zӄ,[l;w/=E0X̵~a +#M XD@D@D@D@D b͛7@+zȐ!k%J&HˬTiD@D@D@D@҈(bu " " G i4_1UJE@_fէJ#" " " " " " " " h.~" " " " " " " " E@_fէJ#" " " " " " " " H/" " " " " " " "Y$eV}4" " " " " " " " ].~" " " " " " " " C 7O(9RID@D@D@D@D@D@D@D@D@bVUhYyuk@ xD/?2*tIïKV -" " " " " " " "$ejͪ\" " " " " " " " ].Y*@5rtId" " " " " " " " J@_֬%" " " " " " " "% HծBd* ~Z*@$ KV -" " " " " " " "$ejͪ\" " " " " " " " ].Y*@5rtId" " " " " " " " J@_֬%" " " " " " " "% HծBd* ~Z*@$ KV -" " " " " " " "ZP(d8G5'J:k8kեk֔/$,UTYUe%$1NB-mD-^`{Kw_=mYjp3nF5B~ N}zpID@D@D@D@D@D@Ҍ> ~%B1իeeeYh:+++ݻ[a^X٪b6$bx¡C DǫY46< бU51 5tCi@hG<b6h 7$Nt@AtJyyyv{x{UX4( _Qg4 |~-<zr8!!"R"Ϝq{!?=iE&΁h^;ci*йD@D@D@D@D@D@D HC`oϞ%eܥu ԭ{w]Rji鱊gO.;N<@+vr{{ZC6a`L>lkp8ל4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nuqt{gw$Zߕ'@WzLw^n.ECkz{޸"biFَ'\Pĭ޺6vء|.sNAq ' 9:",='{׻U|)8ʛP:0KPXkO~;\N|OD HD HD HF وC=sK|:HdMYS+OXB"0 hlPq{[y{CCxYAyYUO<! {~k Gƻ>~>Bx!,(}w}w:|2ZgsP_!&l@$<(MFKuǣ71ӟ. V&hKD HD HD HFޜIpiVH>sD`f"U62 eo;}^(~'ܵ^[?Xq6T7\~`C!АW\qE%4@X"<+owσ.3}S34 ?6==?w)! mj8{~arXKD HD HD H>@$É@W~@vCYnO=1cfPXj;^W㽆$GqYk#]wݵŖ?^_̵y{8DX;'-E!Uh5\S <$ }Pn4ݏۥ[1lyUy)@"$@"$@"$@"$#ٞ}nJiӦg~L4ydk?矯H1n>`IxYC" De &yy47ע=^_?zJ/v_w-qev{tjj:w_ a9~yo,7u''i^/-xk94Fk1G@ݚ<yrܹ?:},y5HD`f!Mvr=ޕκ[ƌV-b.]sec H(k4}sAY1n3ne&MW?u~G(UI9a„[YbC0 JŽ`}O@ahiI'T=-EYMd3N1ɳ:&D HD HD HD  t7@<X{/r\uU˺[?! yғID HD HD HD ~2L4 0%HD HD HD HD !HD HD HD HD HFI̜$@"$@"$@"$@"$u HD HD HD HD Mh*K"$@"$@"$@"$,@~|HD HD HD HD HFtH9IENDB`
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-portal/src/main/resources/static/styles/common-style.css
/* * Copyright 2021 Apollo Authors * * Licensed 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. * */ html, body { height: 100% } body { min-width: 960px; color: #797979; padding: 0 !important; margin: 0 !important; font-size: 13px; background: #f1f2f7; font-family: 'Open Sans', sans-serif; } body.modal-open { overflow: visible; } a { cursor: pointer; } p, td, span { word-wrap: break-word; word-break: break-all; } .modal { overflow-y: scroll } .no-radius { border-radius: 0; } .no-border { border: 0; } .no-margin { margin: 0; } .cursor-pointer { cursor: pointer; } .word-break { word-wrap: break-word; word-break: break-all; } .border { border: solid 1px #c3c3c3; } .padding-top-5 { padding-top: 5px; } .border-top { border-top: 1px solid #ddd; } .bg-info, .bg-primary, .bg-warning, .bg-danger, .bg-success { padding: 10px; } .active { background: #f5f5f5; } .label-default-light { background: #A4A4A4 } .panel-default .panel-heading { color: #797979; } pre, .pre { white-space: pre-wrap; /* Since CSS 2.1 */ white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ white-space: -pre-wrap; /* Opera 4-6 */ white-space: -o-pre-wrap; /* Opera 7 */ word-wrap: break-word; /* Internet Explorer 5.5+ */ } .hover:hover { background: #f5f5f5; cursor: pointer } .highlight { background: #ffa; } .hide-border-top { border-top: 0; } .logo { font-size: 25px; } .i-20 { height: 20px; width: 20px; } .i-25-20 { height: 20px; width: 25px; } .i-15 { height: 15px; width: 15px; } .badge { padding: 1px 4px; } .badge-grey { background: #777; color: #fff; } .badge-white { background: #ffffff; color: #6c6c6c; } .modal-dialog { width: 960px; } .apollo-container { min-height: 90%; } .navbar-default { background-color: #ffffff; border: none; } .footer { width: 100%; height: 75px; margin-top: 50px; padding-top: 25px; } /*panel*/ .panel { border: 1px solid #ddd; } table th { text-align: center; } /*首页*/ .site-notice { padding: 5px 0; text-align: center; background-color: #208d4e; } .site-notice { color: #eee; } .site-notice a { color: #ffffff; } .site-notice a:hover { text-underline: none; } .site-notice .selected { color: #000000; } .site-header { position: relative; text-align: center; background-color: #27AE60; color: #fff; margin-bottom: 0; } .site-header .search { border: 2px solid #27AE60; -webkit-box-shadow: none; box-shadow: none; font-size: 16px; padding: 13px 30px; border-radius: 0; height: auto; text-align: center; } .site-header h1 { font-size: 56px; text-shadow: -5px 5px 0 rgba(0, 0, 0, 0.1); } .site-header span { font-size: 14px; } .list-group { margin-top: 20px; } .side-bar { position: absolute; width: 195px; top: 85px; left: 15px; margin-bottom: 25px; background: #f1f2f7; z-index: 2; } .position-absolute { position: absolute; } .position-fix { position: fixed; } .view-mode-1 { margin-left: 235px; padding-right: 15px; } .view-mode-2 { padding: 0 15px; } .side-bar-switch { padding: 10px 10px; margin-right: 30px; } .node-treeview { color: #797979; } .apps .apps-description { color: gray; font-size: 16px; } .app { padding-bottom: 75px; overflow: hidden; } .app td, th { display: table-cell; vertical-align: inherit; } .project-info { width: 100%; } .panel-heading { border-color: #eff2f7; font-size: 16px; font-weight: 300; } .panel-heading .header-namespace { min-width: 415px; } .panel-heading .header-buttons { min-width: 405px; } #treeview .list-group { margin: 0; } #treeview .list-group .list-group-item { border: 0; border-top: 1px solid #eff2f7; } .project-info th { text-align: right; padding: 4px 2px; width: 5em; } .project-info td { border-bottom: 1px dotted gray; padding: 4px 6px; } .project-info td span { margin-right: 5px; } #config-info { min-height: 500px; } #config-edit { border: 1px solid #ddd; border-radius: 3px; } #config-edit .panel-heading { border-bottom: 1px solid #ddd; } .tocify-header { font-size: 14px; } .tocify-subheader { font-size: 13px; } .config-item-container .panel { border-radius: 0; } .config-item-container .panel-heading b { font-size: 18px; } .config-item-container .form-control[disabled] { background: #ffffff; border: 0; } .config-item-container .second-panel-heading .ns_btn { width: 25px; height: 25px; border-top: solid 1px #ffffff; } .config-item-container .second-panel-heading .nav-tabs .node_active { border-bottom: 3px #1b6d85 solid; } .config-item-container .config-items { height: 500px; overflow: scroll; } .config-item-container .panel-heading button img { width: 12px; height: 12px; } .config-item-container .panel-heading a img { width: 12px; height: 12px; } .config-item-container .panel-heading li img { width: 12px; height: 12px; } .config-item-container .second-panel-heading { height: 45px; } .config-item-container .second-panel-heading a { height: 35px; color: #555; font-size: 13px; margin-bottom: 2px; } .namespace-panel { border-top: 0; border-bottom: 0; } .namespace-panel .namespace-name { font-size: 20px; } .namespace-panel .namespace-label { margin-left: 5px; } .namespace-panel .namespace-attribute-panel { margin-left: 0; color: #fff; border-top: 0; background: #f1f2f7; } .namespace-panel .namespace-attribute-public { margin-right:5px; } .namespace-panel .second-panel-heading .nav-tabs { border-bottom: 0; } .namespace-panel .namespace-view-table td img { cursor: pointer; width: 23px; height: 23px; } .namespace-panel .namespace-view-table table { table-layout: inherit; } .namespace-panel .namespace-view-table td { word-wrap: break-word; } .namespace-panel .namespace-view-table .glyphicon { cursor: pointer; } .namespace-panel .namespace-view-table .search-input { padding: 15px 0 15px 10px; } .namespace-panel .namespace-view-table .search-input input { width: 350px; } .namespace-panel .no-config-panel { padding: 15px 0; } .namespace-panel .history-view { padding: 10px 20px; } .namespace-panel .instance-view .btn-primary .badge { color: #337ab7; background-color: #fff; } .namespace-panel .instance-view .btn-default .badge { background: #777; color: #fff; } .namespace-panel .rules-manage-view { padding: 45px 20px; } .line { width: 20px; border: 1px solid #ddd; } .editable-table > tbody > tr > td { padding: 4px } .editable-text { padding-left: 4px; padding-top: 4px; padding-bottom: 4px; display: inline-block; } .editable-table tbody > tr > td > .controls { / / width: 100 % } .editable-input { padding-left: 3px; } .editable-input.input-sm { height: 30px; font-size: 14px; padding-top: 4px; padding-bottom: 4px; } .list-group-item .btn-title { color: gray; font-size: 14px; margin: 0; } .list-group-item .icon-project-manage { background: url(../img/manage.png) no-repeat; } .list-group-item .icon-accesskey-manage { background: url(../img/secret.png) no-repeat; } .list-group-item .icon-plus-orange { background: url(../img/add.png) no-repeat; } .list-group-item .icon-text { background-size: 20px; background-position: 5% 50%; padding: 5px 0 5px 50px; } /*搜索框*/ ::-webkit-scrollbar { width: 0; height: 0; background: rgba(255, 255, 255, 0); } ::-webkit-scrollbar-thumb:vertical { background: rgba(255, 255, 255, 0); border-radius: 10px; } ::-webkit-scrollbar-thumb:vertical:hover { background: rgba(255, 255, 255, 0); } .app-list { width: 350px; height: 200px; position: absolute; margin-left: 0; cursor: pointer; background: #ffffff; border: 1px solid #ddd; overflow-y: scroll; z-index: 1000; } .app-list .app-item { font-size: medium; padding: 5px 10px; } .app-list .app-item:hover { color: #ffffff; background: #C3C3C3; } .app-list .app-selected { color: #ffffff; background: #c3c3c3; } .item-container { border: solid 1px #f1f2f7; margin-top: 15px; padding: 20px 15px } .item-container .item-info { margin-left: 5px; } .change-type-mark { width: 5px; height: 5px; } .release-history .media-body { padding-left: 20px; } .release-history .panel-body .load-more { margin-top: 20px; } .release-history .media-body textarea { margin-top: 10px; } .release-history .release-history-container { padding: 0; } .release-history .release-history-list { max-height: 750px; padding: 0; border-right: solid 1px #eff2f7; overflow: scroll; } .release-history .release-history-list .media { position: relative; margin: 0; padding: 10px; border-bottom: solid 1px #eff2f7; } .release-history .release-history-list .release-operation { position: absolute; right: 0; top: 0; width: 5px; height: 100%; } .release-history .release-history-list .media .media-left { padding-top: 10px; } .release-history .release-history-list .media .media-body .release-title { padding: 0; } .release-history .release-history-list .emergency-publish { position: absolute; left: 0; top: 0; } .release-history .release-history-list .load-more { height: 45px; background: #f5f5f5; } .release-history .release-operation-normal { background: #316510; } .release-history .release-operation-rollback { background: #997f1c; } .release-history .release-operation-gray { background: #999999; } .release-history .operation-caption-container { position: relative; } .release-history .section-title { padding: 15px 10px 0 10px; } .release-history .operation-caption { position: absolute; top: 45px; width: 100px; height: 18px; color: #fff; font-size: 12px; } .release-history .panel-heading .back-btn { position: absolute; top: 45px; right: 10px; } .release-history .release-info { padding: 0; border: 0; } .release-history .panel-heading { padding: 15px; } .release-history .panel-heading button img { width: 12px; height: 12px; } .empty-container { padding: 15px; } .valdr-message { display: none; } .valdr-message.ng-dirty.ng-invalid.ng-touched { display: inline; color: #a94442; } .form-group .form-control.ng-invalid.ng-dirty.ng-touched { border-color: #a94442; } .app-not-found { padding-top: 50px; font-size: 18px; } /*index page*/ #app-list h5 { word-wrap: break-word; word-break: break-all; } #app-list .media-body { padding-top: 15px; } #app-list .media { background: #fff; display: table; } #app-list .media-left { width: 1000px; color: #fff; display: table-cell; vertical-align: middle; } #app-list .more-img { width: 30px; height: 30px; } #app-list .app-panel { position: relative; height: 100px; } #app-list .operate-panel { position: absolute; top: 5px; right: 20px; } .create-app-list .media-left { background: #a9d96c; } .create-app-list .create-btn { background: #a9d96c; color: #fff } .create-app-list .create-btn:hover { background: #81AB56; } .create-app-list .create-btn img { width: 26px; height: 26px } .favorites-app-list .media-left { background: #57c8f2; } .favorites-app-list .no-favorites { padding-bottom: 15px; } .visit-app-list .media-left { background: #41cac0; } #rulesModal .rules-ip-selector { width: 500px; height: 50px; } #rulesModal textarea { width: 500px; margin-bottom: 5px; } #rulesModal .rule-edit-panel { padding: 15px 0; } #rulesModal .add-rule { margin-left: 15px; } #rulesModal .select2-container .select2-search__field:not([placeholder='']) { width: auto !important; } .search-onblur { width: 165px; background: #f5f5f5; } .search-focus { width: 165px; background: #fff; } .project-setting .panel-body { padding-top: 35px } .project-setting .panel-body .context { padding-left: 30px; padding-right: 30px; } .app-search-list .select2-container, .app-search-list .select2-container .select2-selection { height: 34px; } .app-search-list .select2-container .select2-selection .select2-selection__rendered { line-height: 34px; font-size: 14px; }
/* * Copyright 2021 Apollo Authors * * Licensed 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. * */ html, body { height: 100% } body { min-width: 960px; color: #797979; padding: 0 !important; margin: 0 !important; font-size: 13px; background: #f1f2f7; font-family: 'Open Sans', sans-serif; } body.modal-open { overflow: visible; } a { cursor: pointer; } p, td, span { word-wrap: break-word; word-break: break-all; } .modal { overflow-y: scroll } .no-radius { border-radius: 0; } .no-border { border: 0; } .no-margin { margin: 0; } .cursor-pointer { cursor: pointer; } .word-break { word-wrap: break-word; word-break: break-all; } .border { border: solid 1px #c3c3c3; } .padding-top-5 { padding-top: 5px; } .border-top { border-top: 1px solid #ddd; } .bg-info, .bg-primary, .bg-warning, .bg-danger, .bg-success { padding: 10px; } .active { background: #f5f5f5; } .label-default-light { background: #A4A4A4 } .panel-default .panel-heading { color: #797979; } pre, .pre { white-space: pre-wrap; /* Since CSS 2.1 */ white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ white-space: -pre-wrap; /* Opera 4-6 */ white-space: -o-pre-wrap; /* Opera 7 */ word-wrap: break-word; /* Internet Explorer 5.5+ */ } .hover:hover { background: #f5f5f5; cursor: pointer } .highlight { background: #ffa; } .hide-border-top { border-top: 0; } .logo { font-size: 25px; } .i-20 { height: 20px; width: 20px; } .i-25-20 { height: 20px; width: 25px; } .i-15 { height: 15px; width: 15px; } .badge { padding: 1px 4px; } .badge-grey { background: #777; color: #fff; } .badge-white { background: #ffffff; color: #6c6c6c; } .modal-dialog { width: 960px; } .apollo-container { min-height: 90%; } .navbar-default { background-color: #ffffff; border: none; } .footer { width: 100%; height: 75px; margin-top: 50px; padding-top: 25px; } /*panel*/ .panel { border: 1px solid #ddd; } table th { text-align: center; } /*首页*/ .site-notice { padding: 5px 0; text-align: center; background-color: #208d4e; } .site-notice { color: #eee; } .site-notice a { color: #ffffff; } .site-notice a:hover { text-underline: none; } .site-notice .selected { color: #000000; } .site-header { position: relative; text-align: center; background-color: #27AE60; color: #fff; margin-bottom: 0; } .site-header .search { border: 2px solid #27AE60; -webkit-box-shadow: none; box-shadow: none; font-size: 16px; padding: 13px 30px; border-radius: 0; height: auto; text-align: center; } .site-header h1 { font-size: 56px; text-shadow: -5px 5px 0 rgba(0, 0, 0, 0.1); } .site-header span { font-size: 14px; } .list-group { margin-top: 20px; } .side-bar { position: absolute; width: 195px; top: 85px; left: 15px; margin-bottom: 25px; background: #f1f2f7; z-index: 2; } .position-absolute { position: absolute; } .position-fix { position: fixed; } .view-mode-1 { margin-left: 235px; padding-right: 15px; } .view-mode-2 { padding: 0 15px; } .side-bar-switch { padding: 10px 10px; margin-right: 30px; } .node-treeview { color: #797979; } .apps .apps-description { color: gray; font-size: 16px; } .app { padding-bottom: 75px; overflow: hidden; } .app td, th { display: table-cell; vertical-align: inherit; } .project-info { width: 100%; } .panel-heading { border-color: #eff2f7; font-size: 16px; font-weight: 300; } .panel-heading .header-namespace { min-width: 415px; } .panel-heading .header-buttons { min-width: 405px; } #treeview .list-group { margin: 0; } #treeview .list-group .list-group-item { border: 0; border-top: 1px solid #eff2f7; } .project-info th { text-align: right; padding: 4px 2px; width: 5em; } .project-info td { border-bottom: 1px dotted gray; padding: 4px 6px; } .project-info td span { margin-right: 5px; } #config-info { min-height: 500px; } #config-edit { border: 1px solid #ddd; border-radius: 3px; } #config-edit .panel-heading { border-bottom: 1px solid #ddd; } .tocify-header { font-size: 14px; } .tocify-subheader { font-size: 13px; } .config-item-container .panel { border-radius: 0; } .config-item-container .panel-heading b { font-size: 18px; } .config-item-container .form-control[disabled] { background: #ffffff; border: 0; } .config-item-container .second-panel-heading .ns_btn { width: 25px; height: 25px; border-top: solid 1px #ffffff; } .config-item-container .second-panel-heading .nav-tabs .node_active { border-bottom: 3px #1b6d85 solid; } .config-item-container .config-items { height: 500px; overflow: scroll; } .config-item-container .panel-heading button img { width: 12px; height: 12px; } .config-item-container .panel-heading a img { width: 12px; height: 12px; } .config-item-container .panel-heading li img { width: 12px; height: 12px; } .config-item-container .second-panel-heading { height: 45px; } .config-item-container .second-panel-heading a { height: 35px; color: #555; font-size: 13px; margin-bottom: 2px; } .namespace-panel { border-top: 0; border-bottom: 0; } .namespace-panel .namespace-name { font-size: 20px; } .namespace-panel .namespace-label { margin-left: 5px; } .namespace-panel .namespace-attribute-panel { margin-left: 0; color: #fff; border-top: 0; background: #f1f2f7; } .namespace-panel .namespace-attribute-public { margin-right:5px; } .namespace-panel .second-panel-heading .nav-tabs { border-bottom: 0; } .namespace-panel .namespace-view-table td img { cursor: pointer; width: 23px; height: 23px; } .namespace-panel .namespace-view-table table { table-layout: inherit; } .namespace-panel .namespace-view-table td { word-wrap: break-word; } .namespace-panel .namespace-view-table .glyphicon { cursor: pointer; } .namespace-panel .namespace-view-table .search-input { padding: 15px 0 15px 10px; } .namespace-panel .namespace-view-table .search-input input { width: 350px; } .namespace-panel .no-config-panel { padding: 15px 0; } .namespace-panel .history-view { padding: 10px 20px; } .namespace-panel .instance-view .btn-primary .badge { color: #337ab7; background-color: #fff; } .namespace-panel .instance-view .btn-default .badge { background: #777; color: #fff; } .namespace-panel .rules-manage-view { padding: 45px 20px; } .line { width: 20px; border: 1px solid #ddd; } .editable-table > tbody > tr > td { padding: 4px } .editable-text { padding-left: 4px; padding-top: 4px; padding-bottom: 4px; display: inline-block; } .editable-table tbody > tr > td > .controls { / / width: 100 % } .editable-input { padding-left: 3px; } .editable-input.input-sm { height: 30px; font-size: 14px; padding-top: 4px; padding-bottom: 4px; } .list-group-item .btn-title { color: gray; font-size: 14px; margin: 0; } .list-group-item .icon-project-manage { background: url(../img/manage.png) no-repeat; } .list-group-item .icon-accesskey-manage { background: url(../img/secret.png) no-repeat; } .list-group-item .icon-plus-orange { background: url(../img/add.png) no-repeat; } .list-group-item .icon-text { background-size: 20px; background-position: 5% 50%; padding: 5px 0 5px 50px; } /*搜索框*/ ::-webkit-scrollbar { width: 0; height: 0; background: rgba(255, 255, 255, 0); } ::-webkit-scrollbar-thumb:vertical { background: rgba(255, 255, 255, 0); border-radius: 10px; } ::-webkit-scrollbar-thumb:vertical:hover { background: rgba(255, 255, 255, 0); } .app-list { width: 350px; height: 200px; position: absolute; margin-left: 0; cursor: pointer; background: #ffffff; border: 1px solid #ddd; overflow-y: scroll; z-index: 1000; } .app-list .app-item { font-size: medium; padding: 5px 10px; } .app-list .app-item:hover { color: #ffffff; background: #C3C3C3; } .app-list .app-selected { color: #ffffff; background: #c3c3c3; } .item-container { border: solid 1px #f1f2f7; margin-top: 15px; padding: 20px 15px } .item-container .item-info { margin-left: 5px; } .change-type-mark { width: 5px; height: 5px; } .release-history .media-body { padding-left: 20px; } .release-history .panel-body .load-more { margin-top: 20px; } .release-history .media-body textarea { margin-top: 10px; } .release-history .release-history-container { padding: 0; } .release-history .release-history-list { max-height: 750px; padding: 0; border-right: solid 1px #eff2f7; overflow: scroll; } .release-history .release-history-list .media { position: relative; margin: 0; padding: 10px; border-bottom: solid 1px #eff2f7; } .release-history .release-history-list .release-operation { position: absolute; right: 0; top: 0; width: 5px; height: 100%; } .release-history .release-history-list .media .media-left { padding-top: 10px; } .release-history .release-history-list .media .media-body .release-title { padding: 0; } .release-history .release-history-list .emergency-publish { position: absolute; left: 0; top: 0; } .release-history .release-history-list .load-more { height: 45px; background: #f5f5f5; } .release-history .release-operation-normal { background: #316510; } .release-history .release-operation-rollback { background: #997f1c; } .release-history .release-operation-gray { background: #999999; } .release-history .operation-caption-container { position: relative; } .release-history .section-title { padding: 15px 10px 0 10px; } .release-history .operation-caption { position: absolute; top: 45px; width: 100px; height: 18px; color: #fff; font-size: 12px; } .release-history .panel-heading .back-btn { position: absolute; top: 45px; right: 10px; } .release-history .release-info { padding: 0; border: 0; } .release-history .panel-heading { padding: 15px; } .release-history .panel-heading button img { width: 12px; height: 12px; } .empty-container { padding: 15px; } .valdr-message { display: none; } .valdr-message.ng-dirty.ng-invalid.ng-touched { display: inline; color: #a94442; } .form-group .form-control.ng-invalid.ng-dirty.ng-touched { border-color: #a94442; } .app-not-found { padding-top: 50px; font-size: 18px; } /*index page*/ #app-list h5 { word-wrap: break-word; word-break: break-all; } #app-list .media-body { padding-top: 15px; } #app-list .media { background: #fff; display: table; } #app-list .media-left { width: 1000px; color: #fff; display: table-cell; vertical-align: middle; } #app-list .more-img { width: 30px; height: 30px; } #app-list .app-panel { position: relative; height: 100px; } #app-list .operate-panel { position: absolute; top: 5px; right: 20px; } .create-app-list .media-left { background: #a9d96c; } .create-app-list .create-btn { background: #a9d96c; color: #fff } .create-app-list .create-btn:hover { background: #81AB56; } .create-app-list .create-btn img { width: 26px; height: 26px } .favorites-app-list .media-left { background: #57c8f2; } .favorites-app-list .no-favorites { padding-bottom: 15px; } .visit-app-list .media-left { background: #41cac0; } #rulesModal .rules-ip-selector { width: 500px; height: 50px; } #rulesModal textarea { width: 500px; margin-bottom: 5px; } #rulesModal .rule-edit-panel { padding: 15px 0; } #rulesModal .add-rule { margin-left: 15px; } #rulesModal .select2-container .select2-search__field:not([placeholder='']) { width: auto !important; } .search-onblur { width: 165px; background: #f5f5f5; } .search-focus { width: 165px; background: #fff; } .project-setting .panel-body { padding-top: 35px } .project-setting .panel-body .context { padding-left: 30px; padding-right: 30px; } .app-search-list .select2-container, .app-search-list .select2-container .select2-selection { height: 34px; } .app-search-list .select2-container .select2-selection .select2-selection__rendered { line-height: 34px; font-size: 14px; }
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-configservice/src/main/java/com/ctrip/framework/apollo/configservice/util/NamespaceUtil.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.configservice.util; import com.ctrip.framework.apollo.common.entity.AppNamespace; import com.ctrip.framework.apollo.configservice.service.AppNamespaceServiceWithCache; import org.springframework.stereotype.Component; /** * @author Jason Song([email protected]) */ @Component public class NamespaceUtil { private final AppNamespaceServiceWithCache appNamespaceServiceWithCache; public NamespaceUtil(final AppNamespaceServiceWithCache appNamespaceServiceWithCache) { this.appNamespaceServiceWithCache = appNamespaceServiceWithCache; } public String filterNamespaceName(String namespaceName) { if (namespaceName.toLowerCase().endsWith(".properties")) { int dotIndex = namespaceName.lastIndexOf("."); return namespaceName.substring(0, dotIndex); } return namespaceName; } public String normalizeNamespace(String appId, String namespaceName) { AppNamespace appNamespace = appNamespaceServiceWithCache.findByAppIdAndNamespace(appId, namespaceName); if (appNamespace != null) { return appNamespace.getName(); } appNamespace = appNamespaceServiceWithCache.findPublicNamespaceByName(namespaceName); if (appNamespace != null) { return appNamespace.getName(); } return namespaceName; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.configservice.util; import com.ctrip.framework.apollo.common.entity.AppNamespace; import com.ctrip.framework.apollo.configservice.service.AppNamespaceServiceWithCache; import org.springframework.stereotype.Component; /** * @author Jason Song([email protected]) */ @Component public class NamespaceUtil { private final AppNamespaceServiceWithCache appNamespaceServiceWithCache; public NamespaceUtil(final AppNamespaceServiceWithCache appNamespaceServiceWithCache) { this.appNamespaceServiceWithCache = appNamespaceServiceWithCache; } public String filterNamespaceName(String namespaceName) { if (namespaceName.toLowerCase().endsWith(".properties")) { int dotIndex = namespaceName.lastIndexOf("."); return namespaceName.substring(0, dotIndex); } return namespaceName; } public String normalizeNamespace(String appId, String namespaceName) { AppNamespace appNamespace = appNamespaceServiceWithCache.findByAppIdAndNamespace(appId, namespaceName); if (appNamespace != null) { return appNamespace.getName(); } appNamespace = appNamespaceServiceWithCache.findPublicNamespaceByName(namespaceName); if (appNamespace != null) { return appNamespace.getName(); } return namespaceName; } }
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-portal/src/main/resources/static/login.html
<!-- ~ Copyright 2021 Apollo Authors ~ ~ Licensed 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. ~ --> <!DOCTYPE html> <html lang="en" ng-app="login"> <head> <meta charset="UTF-8"> <title>{{ 'Common.Title' | translate }}</title> <link rel="icon" href="./img/config.png"> <link rel="stylesheet" type="text/css" href="vendor/bootstrap/css/bootstrap.min.css"> <link rel="stylesheet" href="vendor/font-awesome.min.css"> <style type="text/css"> body { padding-top: 90px; background: #F7F7F7; color: #666666; font-family: 'Roboto', sans-serif; font-weight: 100; } body { width: 100%; background: -webkit-linear-gradient(left, #22d686, #24d3d3, #22d686, #24d3d3); background: linear-gradient(to right, #22d686, #24d3d3, #22d686, #24d3d3); background-size: 600% 100%; } .panel { border-radius: 5px; } label { font-weight: 300; } .panel-login { border: none; -webkit-box-shadow: 0px 0px 49px 14px rgba(188, 190, 194, 0.39); -moz-box-shadow: 0px 0px 49px 14px rgba(188, 190, 194, 0.39); box-shadow: 0px 0px 49px 14px rgba(188, 190, 194, 0.39); } .panel-login .checkbox input[type=checkbox] { margin-left: 0px; } .panel-login .checkbox label { padding-left: 25px; font-weight: 300; display: inline-block; position: relative; } .panel-login .checkbox { padding-left: 20px; } .panel-login .checkbox label::before { content: ""; display: inline-block; position: absolute; width: 17px; height: 17px; left: 0; margin-left: 0px; border: 1px solid #cccccc; border-radius: 3px; background-color: #fff; -webkit-transition: border 0.15s ease-in-out, color 0.15s ease-in-out; -o-transition: border 0.15s ease-in-out, color 0.15s ease-in-out; transition: border 0.15s ease-in-out, color 0.15s ease-in-out; } .panel-login .checkbox label::after { display: inline-block; position: absolute; width: 16px; height: 16px; left: 0; top: 0; margin-left: 0px; padding-left: 3px; padding-top: 1px; font-size: 11px; color: #555555; } .panel-login .checkbox input[type="checkbox"] { opacity: 0; } .panel-login .checkbox input[type="checkbox"]:focus + label::before { outline: thin dotted; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .panel-login .checkbox input[type="checkbox"]:checked + label::after { font-family: 'FontAwesome'; content: "\f00c"; } .panel-login > .panel-heading .tabs { padding: 0; } .panel-login h2 { font-size: 20px; font-weight: 300; margin: 30px; } .panel-login > .panel-heading { color: #848c9d; background-color: #e8e9ec; border-color: #fff; text-align: center; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom: 0px; padding: 0px 15px; } .panel-login .form-group { padding: 0 30px; } .panel-login > .panel-heading .login { padding: 20px 30px; border-bottom-leftt-radius: 5px; } .panel-login > .panel-heading .register { padding: 20px 30px; background: #2d3b55; border-bottom-right-radius: 5px; } .panel-login > .panel-heading a { text-decoration: none; color: #666; font-weight: 300; font-size: 16px; -webkit-transition: all 0.1s linear; -moz-transition: all 0.1s linear; transition: all 0.1s linear; } .panel-login > .panel-heading a#register-form-link { color: #fff; width: 100%; text-align: right; } .panel-login > .panel-heading a#login-form-link { width: 100%; text-align: left; } .panel-login input[type="text"], .panel-login input[type="email"], .panel-login input[type="password"] { height: 45px; border: 0; font-size: 16px; -webkit-transition: all 0.1s linear; -moz-transition: all 0.1s linear; transition: all 0.1s linear; -webkit-box-shadow: none; box-shadow: none; border-bottom: 1px solid #e7e7e7; border-radius: 0px; padding: 6px 0px; } .panel-login input:hover, .panel-login input:focus { outline: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; border-color: #ccc; } .btn-login { background-color: #E8E9EC; outline: none; color: #2D3B55; font-size: 14px; height: auto; font-weight: normal; padding: 14px 0; text-transform: uppercase; border: none; border-radius: 0px; box-shadow: none; } .btn-login:hover, .btn-login:focus { color: #fff; background-color: #2D3B55; } .forgot-password { text-decoration: underline; color: #888; } .forgot-password:hover, .forgot-password:focus { text-decoration: underline; color: #666; } .btn-register { background-color: #E8E9EC; outline: none; color: #2D3B55; font-size: 14px; height: auto; font-weight: normal; padding: 14px 0; text-transform: uppercase; border: none; border-radius: 0px; box-shadow: none; } .btn-register:hover, .btn-register:focus { color: #fff; background-color: #2D3B55; } </style> </head> <body> <div class="container" ng-controller="LoginController"> <div class="row"> <div class="col-md-6 col-md-offset-3"> <div class="panel panel-login"> <div class="panel-body"> <div class="row"> <div class="col-lg-12"> <form id="login-form" action="signin" method="post" role="form" style="display: block;"> <p class="text-center"><img src="img/logo-detail.png" style="width: 500px;"></p> <div class="form-group"> <input type="text" name="username" tabindex="1" class="form-control" placeholder="Username" value=""> </div> <div class="form-group"> <input type="password" name="password" tabindex="2" class="form-control" placeholder="Password"> </div> <div class="form-group" style="color: red"> <small ng-bind="info"></small> </div> <div class="col-xs-12 form-group pull-right"> <input type="submit" name="login-submit" id="login-submit" tabindex="4" class="form-control btn btn-login" value="{{'Login.Login' | translate }}"> </div> </form> </div> </div> </div> </div> </div> </div> </div> <!-- jquery.js --> <script src="vendor/jquery.min.js" type="text/javascript"></script> <!-- bootstrap.js --> <script src="vendor/bootstrap/js/bootstrap.min.js" type="text/javascript"></script> <!--angular--> <script src="vendor/angular/angular.min.js"></script> <script src="vendor/angular/angular-resource.min.js"></script> <script src="vendor/angular/angular-toastr-1.4.1.tpls.min.js"></script> <script src="vendor/angular/loading-bar.min.js"></script> <script src="vendor/angular/angular-cookies.min.js"></script> <script src="vendor/angular/angular-translate.2.18.1/angular-translate.min.js"></script> <script src="vendor/angular/angular-translate.2.18.1/angular-translate-loader-static-files.min.js"></script> <script src="vendor/angular/angular-translate.2.18.1/angular-translate-storage-cookie.min.js"></script> <script type="application/javascript"> function getPrefixPath() { $.ajax({ method: 'get', async: false, url: 'prefix-path', success: function (res) { window.localStorage.setItem("prefixPath", res); } }) } getPrefixPath(); </script> <script type="application/javascript" src="scripts/app.js"></script> <script type="application/javascript" src="scripts/AppUtils.js"></script> <script type="application/javascript" src="scripts/directive/directive.js"></script> <script type="application/javascript" src="scripts/controller/LoginController.js"></script> <script type="application/javascript"> $(function () { $('#login-form-link').click(function (e) { $("#login-form").delay(100).fadeIn(100); $("#register-form").fadeOut(100); $('#register-form-link').removeClass('active'); $(this).addClass('active'); e.preventDefault(); }); $('#register-form-link').click(function (e) { $("#register-form").delay(100).fadeIn(100); $("#login-form").fadeOut(100); $('#login-form-link').removeClass('active'); $(this).addClass('active'); e.preventDefault(); }); }); </script> </body> </html>
<!-- ~ Copyright 2021 Apollo Authors ~ ~ Licensed 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. ~ --> <!DOCTYPE html> <html lang="en" ng-app="login"> <head> <meta charset="UTF-8"> <title>{{ 'Common.Title' | translate }}</title> <link rel="icon" href="./img/config.png"> <link rel="stylesheet" type="text/css" href="vendor/bootstrap/css/bootstrap.min.css"> <link rel="stylesheet" href="vendor/font-awesome.min.css"> <style type="text/css"> body { padding-top: 90px; background: #F7F7F7; color: #666666; font-family: 'Roboto', sans-serif; font-weight: 100; } body { width: 100%; background: -webkit-linear-gradient(left, #22d686, #24d3d3, #22d686, #24d3d3); background: linear-gradient(to right, #22d686, #24d3d3, #22d686, #24d3d3); background-size: 600% 100%; } .panel { border-radius: 5px; } label { font-weight: 300; } .panel-login { border: none; -webkit-box-shadow: 0px 0px 49px 14px rgba(188, 190, 194, 0.39); -moz-box-shadow: 0px 0px 49px 14px rgba(188, 190, 194, 0.39); box-shadow: 0px 0px 49px 14px rgba(188, 190, 194, 0.39); } .panel-login .checkbox input[type=checkbox] { margin-left: 0px; } .panel-login .checkbox label { padding-left: 25px; font-weight: 300; display: inline-block; position: relative; } .panel-login .checkbox { padding-left: 20px; } .panel-login .checkbox label::before { content: ""; display: inline-block; position: absolute; width: 17px; height: 17px; left: 0; margin-left: 0px; border: 1px solid #cccccc; border-radius: 3px; background-color: #fff; -webkit-transition: border 0.15s ease-in-out, color 0.15s ease-in-out; -o-transition: border 0.15s ease-in-out, color 0.15s ease-in-out; transition: border 0.15s ease-in-out, color 0.15s ease-in-out; } .panel-login .checkbox label::after { display: inline-block; position: absolute; width: 16px; height: 16px; left: 0; top: 0; margin-left: 0px; padding-left: 3px; padding-top: 1px; font-size: 11px; color: #555555; } .panel-login .checkbox input[type="checkbox"] { opacity: 0; } .panel-login .checkbox input[type="checkbox"]:focus + label::before { outline: thin dotted; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .panel-login .checkbox input[type="checkbox"]:checked + label::after { font-family: 'FontAwesome'; content: "\f00c"; } .panel-login > .panel-heading .tabs { padding: 0; } .panel-login h2 { font-size: 20px; font-weight: 300; margin: 30px; } .panel-login > .panel-heading { color: #848c9d; background-color: #e8e9ec; border-color: #fff; text-align: center; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom: 0px; padding: 0px 15px; } .panel-login .form-group { padding: 0 30px; } .panel-login > .panel-heading .login { padding: 20px 30px; border-bottom-leftt-radius: 5px; } .panel-login > .panel-heading .register { padding: 20px 30px; background: #2d3b55; border-bottom-right-radius: 5px; } .panel-login > .panel-heading a { text-decoration: none; color: #666; font-weight: 300; font-size: 16px; -webkit-transition: all 0.1s linear; -moz-transition: all 0.1s linear; transition: all 0.1s linear; } .panel-login > .panel-heading a#register-form-link { color: #fff; width: 100%; text-align: right; } .panel-login > .panel-heading a#login-form-link { width: 100%; text-align: left; } .panel-login input[type="text"], .panel-login input[type="email"], .panel-login input[type="password"] { height: 45px; border: 0; font-size: 16px; -webkit-transition: all 0.1s linear; -moz-transition: all 0.1s linear; transition: all 0.1s linear; -webkit-box-shadow: none; box-shadow: none; border-bottom: 1px solid #e7e7e7; border-radius: 0px; padding: 6px 0px; } .panel-login input:hover, .panel-login input:focus { outline: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; border-color: #ccc; } .btn-login { background-color: #E8E9EC; outline: none; color: #2D3B55; font-size: 14px; height: auto; font-weight: normal; padding: 14px 0; text-transform: uppercase; border: none; border-radius: 0px; box-shadow: none; } .btn-login:hover, .btn-login:focus { color: #fff; background-color: #2D3B55; } .forgot-password { text-decoration: underline; color: #888; } .forgot-password:hover, .forgot-password:focus { text-decoration: underline; color: #666; } .btn-register { background-color: #E8E9EC; outline: none; color: #2D3B55; font-size: 14px; height: auto; font-weight: normal; padding: 14px 0; text-transform: uppercase; border: none; border-radius: 0px; box-shadow: none; } .btn-register:hover, .btn-register:focus { color: #fff; background-color: #2D3B55; } </style> </head> <body> <div class="container" ng-controller="LoginController"> <div class="row"> <div class="col-md-6 col-md-offset-3"> <div class="panel panel-login"> <div class="panel-body"> <div class="row"> <div class="col-lg-12"> <form id="login-form" action="signin" method="post" role="form" style="display: block;"> <p class="text-center"><img src="img/logo-detail.png" style="width: 500px;"></p> <div class="form-group"> <input type="text" name="username" tabindex="1" class="form-control" placeholder="Username" value=""> </div> <div class="form-group"> <input type="password" name="password" tabindex="2" class="form-control" placeholder="Password"> </div> <div class="form-group" style="color: red"> <small ng-bind="info"></small> </div> <div class="col-xs-12 form-group pull-right"> <input type="submit" name="login-submit" id="login-submit" tabindex="4" class="form-control btn btn-login" value="{{'Login.Login' | translate }}"> </div> </form> </div> </div> </div> </div> </div> </div> </div> <!-- jquery.js --> <script src="vendor/jquery.min.js" type="text/javascript"></script> <!-- bootstrap.js --> <script src="vendor/bootstrap/js/bootstrap.min.js" type="text/javascript"></script> <!--angular--> <script src="vendor/angular/angular.min.js"></script> <script src="vendor/angular/angular-resource.min.js"></script> <script src="vendor/angular/angular-toastr-1.4.1.tpls.min.js"></script> <script src="vendor/angular/loading-bar.min.js"></script> <script src="vendor/angular/angular-cookies.min.js"></script> <script src="vendor/angular/angular-translate.2.18.1/angular-translate.min.js"></script> <script src="vendor/angular/angular-translate.2.18.1/angular-translate-loader-static-files.min.js"></script> <script src="vendor/angular/angular-translate.2.18.1/angular-translate-storage-cookie.min.js"></script> <script type="application/javascript"> function getPrefixPath() { $.ajax({ method: 'get', async: false, url: 'prefix-path', success: function (res) { window.localStorage.setItem("prefixPath", res); } }) } getPrefixPath(); </script> <script type="application/javascript" src="scripts/app.js"></script> <script type="application/javascript" src="scripts/AppUtils.js"></script> <script type="application/javascript" src="scripts/directive/directive.js"></script> <script type="application/javascript" src="scripts/controller/LoginController.js"></script> <script type="application/javascript"> $(function () { $('#login-form-link').click(function (e) { $("#login-form").delay(100).fadeIn(100); $("#register-form").fadeOut(100); $('#register-form-link').removeClass('active'); $(this).addClass('active'); e.preventDefault(); }); $('#register-form-link').click(function (e) { $("#register-form").delay(100).fadeIn(100); $("#login-form").fadeOut(100); $('#login-form-link').removeClass('active'); $(this).addClass('active'); e.preventDefault(); }); }); </script> </body> </html>
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-portal/src/main/resources/static/img/manage.png
PNG  IHDRX vIDATx^AoJ6mSSOBF"lXB87 X>O H@=>(8%;m|ݙy1}ޏ.!$pil<@l$ H`Af g5$iB2gK@f˭g-l,\)1] "G|2t0P$UU?v%=ҵ Ep{'ZDv[wb]HNt-)8^ (m\-#G$NVYp@6VCa7W| U TW%H]5pDG nCi∌@"n#*,|RڄF^w,qDD KjW8GBrptFѐ$xo>/F *9";։#$ >/+WܡEdF[*p$?2_,nMѭʄ"x۝MW/T|3@k / q"t8~qnT5sJ"I9`Fj,S:F GH.j{ @R6g 8rF )?@p@6!X c GnH$a H8rB )?/@I@ dŭ\r p@.PWёH@㈌@#* $H$(8!@㈄@G$Hn8"  @r ;H9@iH)@i:OHxsA-q8.X " 8v @8D 54u!G1u ,mn׳m^=WˌJ޸}9u'> @jr@+¬8*$ǭ&=@jBLOc~=l'ck粙H @<s+Dawk|{?LG&]<Fo㙮@ǦqoE-cWzbڇL4O# 8~"ޤ4AiY?*87o28^ynOZ=f $G꓉F H 1 H}XK=ۥI&C8Nr9p3 @ԉ@_nP?3L(I:ޤ_4Ŧq9^>u1$MC nbZSx A4=GHH`@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@ҳ2=@L㾴Xwf >@|8]q0 >@|:u {^wMhL*8 >VVhts-~B{[+[\Xxo5k0v/TSC&z?5Wn>eDw6\@ŖV7WIsKvsE OBvH06 X6YGğL;9_>?~^5q~@^'e!Zhy,4ރú2wu!Z!u͡|@4:MTH`H6Ղ%  ӵM@lF` HtmۼQ-Xl0]6oT } N>IENDB`
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-client/src/test/java/com/ctrip/framework/apollo/spring/BootstrapConfigTest.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.spring; import com.ctrip.framework.apollo.Config; import com.ctrip.framework.apollo.core.ConfigConsts; import com.ctrip.framework.apollo.spring.annotation.ApolloConfig; import com.ctrip.framework.apollo.spring.boot.ApolloApplicationContextInitializer; import com.ctrip.framework.apollo.spring.config.PropertySourcesConstants; import com.google.common.collect.Sets; import org.junit.AfterClass; import org.junit.Assert; import org.junit.BeforeClass; import org.junit.Test; import org.junit.experimental.runners.Enclosed; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.boot.env.EnvironmentPostProcessor; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.io.support.SpringFactoriesLoader; import org.springframework.test.annotation.DirtiesContext; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import java.util.List; import static org.mockito.Matchers.anyString; import static org.mockito.Matchers.eq; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; /** * @author Jason Song([email protected]) */ @RunWith(Enclosed.class) public class BootstrapConfigTest { private static final String TEST_BEAN_CONDITIONAL_ON_KEY = "apollo.test.testBean"; private static final String FX_APOLLO_NAMESPACE = "FX.apollo"; @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes = ConfigurationWithConditionalOnProperty.class) @DirtiesContext public static class TestWithBootstrapEnabledAndDefaultNamespacesAndConditionalOn extends AbstractSpringIntegrationTest { private static final String someProperty = "someProperty"; private static final String someValue = "someValue"; @Autowired(required = false) private TestBean testBean; @ApolloConfig private Config config; @Value("${" + someProperty + "}") private String someInjectedValue; private static Config mockedConfig; @BeforeClass public static void beforeClass() throws Exception { doSetUp(); System.setProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED, "true"); mockedConfig = mock(Config.class); when(mockedConfig.getPropertyNames()).thenReturn(Sets.newHashSet(TEST_BEAN_CONDITIONAL_ON_KEY, someProperty)); when(mockedConfig.getProperty(eq(TEST_BEAN_CONDITIONAL_ON_KEY), anyString())).thenReturn(Boolean.TRUE.toString()); when(mockedConfig.getProperty(eq(someProperty), anyString())).thenReturn(someValue); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, mockedConfig); } @AfterClass public static void afterClass() throws Exception { System.clearProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED); doTearDown(); } @Test public void test() throws Exception { Assert.assertNotNull(testBean); Assert.assertTrue(testBean.execute()); Assert.assertEquals(mockedConfig, config); Assert.assertEquals(someValue, someInjectedValue); } } @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes = ConfigurationWithConditionalOnProperty.class) @DirtiesContext public static class TestWithBootstrapEnabledAndNamespacesAndConditionalOn extends AbstractSpringIntegrationTest { @Autowired(required = false) private TestBean testBean; @BeforeClass public static void beforeClass() throws Exception { doSetUp(); System.setProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED, "true"); System.setProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_NAMESPACES, String.format("%s, %s", ConfigConsts.NAMESPACE_APPLICATION, FX_APOLLO_NAMESPACE)); Config config = mock(Config.class); Config anotherConfig = mock(Config.class); when(config.getPropertyNames()).thenReturn(Sets.newHashSet(TEST_BEAN_CONDITIONAL_ON_KEY)); when(config.getProperty(eq(TEST_BEAN_CONDITIONAL_ON_KEY), anyString())).thenReturn(Boolean.TRUE.toString()); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, anotherConfig); mockConfig(FX_APOLLO_NAMESPACE, config); } @AfterClass public static void afterClass() throws Exception { System.clearProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED); System.clearProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_NAMESPACES); doTearDown(); } @Test public void test() throws Exception { Assert.assertNotNull(testBean); Assert.assertTrue(testBean.execute()); } } @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes = ConfigurationWithConditionalOnProperty.class) @DirtiesContext public static class TestWithBootstrapEnabledAndNamespacesAndConditionalOnWithYamlFile extends AbstractSpringIntegrationTest { @Autowired(required = false) private TestBean testBean; @BeforeClass public static void beforeClass() throws Exception { doSetUp(); System.setProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED, "true"); System.setProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_NAMESPACES, String.format("%s, %s", "application.yml", FX_APOLLO_NAMESPACE)); prepareYamlConfigFile("application.yml", readYamlContentAsConfigFileProperties("case6.yml")); Config anotherConfig = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, anotherConfig); mockConfig(FX_APOLLO_NAMESPACE, anotherConfig); } @AfterClass public static void afterClass() throws Exception { System.clearProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED); System.clearProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_NAMESPACES); doTearDown(); } @Test public void test() throws Exception { Assert.assertNotNull(testBean); Assert.assertTrue(testBean.execute()); } } @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes = ConfigurationWithConditionalOnProperty.class) @DirtiesContext public static class TestWithBootstrapEnabledAndDefaultNamespacesAndConditionalOnFailed extends AbstractSpringIntegrationTest { @Autowired(required = false) private TestBean testBean; @BeforeClass public static void beforeClass() throws Exception { doSetUp(); System.setProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED, "true"); Config config = mock(Config.class); when(config.getPropertyNames()).thenReturn(Sets.newHashSet(TEST_BEAN_CONDITIONAL_ON_KEY)); when(config.getProperty(eq(TEST_BEAN_CONDITIONAL_ON_KEY), anyString())).thenReturn(Boolean.FALSE.toString()); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, config); } @AfterClass public static void afterClass() throws Exception { System.clearProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED); doTearDown(); } @Test public void test() throws Exception { Assert.assertNull(testBean); } } @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes = ConfigurationWithConditionalOnProperty.class) @DirtiesContext public static class TestWithBootstrapEnabledAndDefaultNamespacesAndConditionalOnFailedWithYamlFile extends AbstractSpringIntegrationTest { @Autowired(required = false) private TestBean testBean; @BeforeClass public static void beforeClass() throws Exception { doSetUp(); System.setProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED, "true"); System.setProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_NAMESPACES, "application.yml"); prepareYamlConfigFile("application.yml", readYamlContentAsConfigFileProperties("case7.yml")); } @AfterClass public static void afterClass() throws Exception { System.clearProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED); System.clearProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_NAMESPACES); doTearDown(); } @Test public void test() throws Exception { Assert.assertNull(testBean); } } @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes = ConfigurationWithoutConditionalOnProperty.class) @DirtiesContext public static class TestWithBootstrapEnabledAndDefaultNamespacesAndConditionalOff extends AbstractSpringIntegrationTest { @Autowired(required = false) private TestBean testBean; @BeforeClass public static void beforeClass() throws Exception { doSetUp(); System.setProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED, "true"); Config config = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, config); } @AfterClass public static void afterClass() throws Exception { System.clearProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED); doTearDown(); } @Test public void test() throws Exception { Assert.assertNotNull(testBean); Assert.assertTrue(testBean.execute()); } } @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes = ConfigurationWithoutConditionalOnProperty.class) @DirtiesContext public static class TestWithBootstrapEnabledAndDefaultNamespacesAndConditionalOffWithYamlFile extends AbstractSpringIntegrationTest { @Autowired(required = false) private TestBean testBean; @BeforeClass public static void beforeClass() throws Exception { doSetUp(); System.setProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED, "true"); System.setProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_NAMESPACES, "application.yml"); prepareYamlConfigFile("application.yml", readYamlContentAsConfigFileProperties("case8.yml")); } @AfterClass public static void afterClass() throws Exception { System.clearProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED); System.clearProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_NAMESPACES); doTearDown(); } @Test public void test() throws Exception { Assert.assertNotNull(testBean); Assert.assertTrue(testBean.execute()); } } @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes = ConfigurationWithConditionalOnProperty.class) @DirtiesContext public static class TestWithBootstrapDisabledAndDefaultNamespacesAndConditionalOn extends AbstractSpringIntegrationTest { @Autowired(required = false) private TestBean testBean; @BeforeClass public static void beforeClass() throws Exception { doSetUp(); Config config = mock(Config.class); when(config.getPropertyNames()).thenReturn(Sets.newHashSet(TEST_BEAN_CONDITIONAL_ON_KEY)); when(config.getProperty(eq(TEST_BEAN_CONDITIONAL_ON_KEY), anyString())).thenReturn(Boolean.FALSE.toString()); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, config); } @AfterClass public static void afterClass() throws Exception { doTearDown(); } @Test public void test() throws Exception { Assert.assertNull(testBean); } } @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes = ConfigurationWithoutConditionalOnProperty.class) @DirtiesContext public static class TestWithBootstrapDisabledAndDefaultNamespacesAndConditionalOff extends AbstractSpringIntegrationTest { @Autowired(required = false) private TestBean testBean; @BeforeClass public static void beforeClass() throws Exception { doSetUp(); Config config = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, config); } @AfterClass public static void afterClass() throws Exception { System.clearProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED); doTearDown(); } @Test public void test() throws Exception { Assert.assertNotNull(testBean); Assert.assertTrue(testBean.execute()); } } @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes = ConfigurationWithoutConditionalOnProperty.class) @DirtiesContext public static class TestWithBootstrapEnabledAndEagerLoadEnabled extends AbstractSpringIntegrationTest { @BeforeClass public static void beforeClass() { doSetUp(); System.setProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED, "true"); System.setProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_EAGER_LOAD_ENABLED, "true"); Config config = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, config); } @AfterClass public static void afterClass() { System.clearProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED); System.clearProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_EAGER_LOAD_ENABLED); doTearDown(); } @Test public void test() { List<EnvironmentPostProcessor> processorList = SpringFactoriesLoader.loadFactories(EnvironmentPostProcessor.class, getClass().getClassLoader()); boolean containsApollo = false; for (EnvironmentPostProcessor postProcessor : processorList) { if (postProcessor instanceof ApolloApplicationContextInitializer) { containsApollo = true; break; } } Assert.assertTrue(containsApollo); } } @EnableAutoConfiguration @Configuration static class ConfigurationWithoutConditionalOnProperty { @Bean public TestBean testBean() { return new TestBean(); } } @ConditionalOnProperty(TEST_BEAN_CONDITIONAL_ON_KEY) @EnableAutoConfiguration @Configuration static class ConfigurationWithConditionalOnProperty { @Bean public TestBean testBean() { return new TestBean(); } } static class TestBean { public boolean execute() { return true; } } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.spring; import com.ctrip.framework.apollo.Config; import com.ctrip.framework.apollo.core.ConfigConsts; import com.ctrip.framework.apollo.spring.annotation.ApolloConfig; import com.ctrip.framework.apollo.spring.boot.ApolloApplicationContextInitializer; import com.ctrip.framework.apollo.spring.config.PropertySourcesConstants; import com.google.common.collect.Sets; import org.junit.AfterClass; import org.junit.Assert; import org.junit.BeforeClass; import org.junit.Test; import org.junit.experimental.runners.Enclosed; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.boot.env.EnvironmentPostProcessor; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.io.support.SpringFactoriesLoader; import org.springframework.test.annotation.DirtiesContext; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import java.util.List; import static org.mockito.Matchers.anyString; import static org.mockito.Matchers.eq; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; /** * @author Jason Song([email protected]) */ @RunWith(Enclosed.class) public class BootstrapConfigTest { private static final String TEST_BEAN_CONDITIONAL_ON_KEY = "apollo.test.testBean"; private static final String FX_APOLLO_NAMESPACE = "FX.apollo"; @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes = ConfigurationWithConditionalOnProperty.class) @DirtiesContext public static class TestWithBootstrapEnabledAndDefaultNamespacesAndConditionalOn extends AbstractSpringIntegrationTest { private static final String someProperty = "someProperty"; private static final String someValue = "someValue"; @Autowired(required = false) private TestBean testBean; @ApolloConfig private Config config; @Value("${" + someProperty + "}") private String someInjectedValue; private static Config mockedConfig; @BeforeClass public static void beforeClass() throws Exception { doSetUp(); System.setProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED, "true"); mockedConfig = mock(Config.class); when(mockedConfig.getPropertyNames()).thenReturn(Sets.newHashSet(TEST_BEAN_CONDITIONAL_ON_KEY, someProperty)); when(mockedConfig.getProperty(eq(TEST_BEAN_CONDITIONAL_ON_KEY), anyString())).thenReturn(Boolean.TRUE.toString()); when(mockedConfig.getProperty(eq(someProperty), anyString())).thenReturn(someValue); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, mockedConfig); } @AfterClass public static void afterClass() throws Exception { System.clearProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED); doTearDown(); } @Test public void test() throws Exception { Assert.assertNotNull(testBean); Assert.assertTrue(testBean.execute()); Assert.assertEquals(mockedConfig, config); Assert.assertEquals(someValue, someInjectedValue); } } @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes = ConfigurationWithConditionalOnProperty.class) @DirtiesContext public static class TestWithBootstrapEnabledAndNamespacesAndConditionalOn extends AbstractSpringIntegrationTest { @Autowired(required = false) private TestBean testBean; @BeforeClass public static void beforeClass() throws Exception { doSetUp(); System.setProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED, "true"); System.setProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_NAMESPACES, String.format("%s, %s", ConfigConsts.NAMESPACE_APPLICATION, FX_APOLLO_NAMESPACE)); Config config = mock(Config.class); Config anotherConfig = mock(Config.class); when(config.getPropertyNames()).thenReturn(Sets.newHashSet(TEST_BEAN_CONDITIONAL_ON_KEY)); when(config.getProperty(eq(TEST_BEAN_CONDITIONAL_ON_KEY), anyString())).thenReturn(Boolean.TRUE.toString()); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, anotherConfig); mockConfig(FX_APOLLO_NAMESPACE, config); } @AfterClass public static void afterClass() throws Exception { System.clearProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED); System.clearProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_NAMESPACES); doTearDown(); } @Test public void test() throws Exception { Assert.assertNotNull(testBean); Assert.assertTrue(testBean.execute()); } } @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes = ConfigurationWithConditionalOnProperty.class) @DirtiesContext public static class TestWithBootstrapEnabledAndNamespacesAndConditionalOnWithYamlFile extends AbstractSpringIntegrationTest { @Autowired(required = false) private TestBean testBean; @BeforeClass public static void beforeClass() throws Exception { doSetUp(); System.setProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED, "true"); System.setProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_NAMESPACES, String.format("%s, %s", "application.yml", FX_APOLLO_NAMESPACE)); prepareYamlConfigFile("application.yml", readYamlContentAsConfigFileProperties("case6.yml")); Config anotherConfig = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, anotherConfig); mockConfig(FX_APOLLO_NAMESPACE, anotherConfig); } @AfterClass public static void afterClass() throws Exception { System.clearProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED); System.clearProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_NAMESPACES); doTearDown(); } @Test public void test() throws Exception { Assert.assertNotNull(testBean); Assert.assertTrue(testBean.execute()); } } @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes = ConfigurationWithConditionalOnProperty.class) @DirtiesContext public static class TestWithBootstrapEnabledAndDefaultNamespacesAndConditionalOnFailed extends AbstractSpringIntegrationTest { @Autowired(required = false) private TestBean testBean; @BeforeClass public static void beforeClass() throws Exception { doSetUp(); System.setProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED, "true"); Config config = mock(Config.class); when(config.getPropertyNames()).thenReturn(Sets.newHashSet(TEST_BEAN_CONDITIONAL_ON_KEY)); when(config.getProperty(eq(TEST_BEAN_CONDITIONAL_ON_KEY), anyString())).thenReturn(Boolean.FALSE.toString()); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, config); } @AfterClass public static void afterClass() throws Exception { System.clearProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED); doTearDown(); } @Test public void test() throws Exception { Assert.assertNull(testBean); } } @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes = ConfigurationWithConditionalOnProperty.class) @DirtiesContext public static class TestWithBootstrapEnabledAndDefaultNamespacesAndConditionalOnFailedWithYamlFile extends AbstractSpringIntegrationTest { @Autowired(required = false) private TestBean testBean; @BeforeClass public static void beforeClass() throws Exception { doSetUp(); System.setProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED, "true"); System.setProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_NAMESPACES, "application.yml"); prepareYamlConfigFile("application.yml", readYamlContentAsConfigFileProperties("case7.yml")); } @AfterClass public static void afterClass() throws Exception { System.clearProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED); System.clearProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_NAMESPACES); doTearDown(); } @Test public void test() throws Exception { Assert.assertNull(testBean); } } @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes = ConfigurationWithoutConditionalOnProperty.class) @DirtiesContext public static class TestWithBootstrapEnabledAndDefaultNamespacesAndConditionalOff extends AbstractSpringIntegrationTest { @Autowired(required = false) private TestBean testBean; @BeforeClass public static void beforeClass() throws Exception { doSetUp(); System.setProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED, "true"); Config config = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, config); } @AfterClass public static void afterClass() throws Exception { System.clearProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED); doTearDown(); } @Test public void test() throws Exception { Assert.assertNotNull(testBean); Assert.assertTrue(testBean.execute()); } } @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes = ConfigurationWithoutConditionalOnProperty.class) @DirtiesContext public static class TestWithBootstrapEnabledAndDefaultNamespacesAndConditionalOffWithYamlFile extends AbstractSpringIntegrationTest { @Autowired(required = false) private TestBean testBean; @BeforeClass public static void beforeClass() throws Exception { doSetUp(); System.setProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED, "true"); System.setProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_NAMESPACES, "application.yml"); prepareYamlConfigFile("application.yml", readYamlContentAsConfigFileProperties("case8.yml")); } @AfterClass public static void afterClass() throws Exception { System.clearProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED); System.clearProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_NAMESPACES); doTearDown(); } @Test public void test() throws Exception { Assert.assertNotNull(testBean); Assert.assertTrue(testBean.execute()); } } @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes = ConfigurationWithConditionalOnProperty.class) @DirtiesContext public static class TestWithBootstrapDisabledAndDefaultNamespacesAndConditionalOn extends AbstractSpringIntegrationTest { @Autowired(required = false) private TestBean testBean; @BeforeClass public static void beforeClass() throws Exception { doSetUp(); Config config = mock(Config.class); when(config.getPropertyNames()).thenReturn(Sets.newHashSet(TEST_BEAN_CONDITIONAL_ON_KEY)); when(config.getProperty(eq(TEST_BEAN_CONDITIONAL_ON_KEY), anyString())).thenReturn(Boolean.FALSE.toString()); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, config); } @AfterClass public static void afterClass() throws Exception { doTearDown(); } @Test public void test() throws Exception { Assert.assertNull(testBean); } } @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes = ConfigurationWithoutConditionalOnProperty.class) @DirtiesContext public static class TestWithBootstrapDisabledAndDefaultNamespacesAndConditionalOff extends AbstractSpringIntegrationTest { @Autowired(required = false) private TestBean testBean; @BeforeClass public static void beforeClass() throws Exception { doSetUp(); Config config = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, config); } @AfterClass public static void afterClass() throws Exception { System.clearProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED); doTearDown(); } @Test public void test() throws Exception { Assert.assertNotNull(testBean); Assert.assertTrue(testBean.execute()); } } @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes = ConfigurationWithoutConditionalOnProperty.class) @DirtiesContext public static class TestWithBootstrapEnabledAndEagerLoadEnabled extends AbstractSpringIntegrationTest { @BeforeClass public static void beforeClass() { doSetUp(); System.setProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED, "true"); System.setProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_EAGER_LOAD_ENABLED, "true"); Config config = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, config); } @AfterClass public static void afterClass() { System.clearProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED); System.clearProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_EAGER_LOAD_ENABLED); doTearDown(); } @Test public void test() { List<EnvironmentPostProcessor> processorList = SpringFactoriesLoader.loadFactories(EnvironmentPostProcessor.class, getClass().getClassLoader()); boolean containsApollo = false; for (EnvironmentPostProcessor postProcessor : processorList) { if (postProcessor instanceof ApolloApplicationContextInitializer) { containsApollo = true; break; } } Assert.assertTrue(containsApollo); } } @EnableAutoConfiguration @Configuration static class ConfigurationWithoutConditionalOnProperty { @Bean public TestBean testBean() { return new TestBean(); } } @ConditionalOnProperty(TEST_BEAN_CONDITIONAL_ON_KEY) @EnableAutoConfiguration @Configuration static class ConfigurationWithConditionalOnProperty { @Bean public TestBean testBean() { return new TestBean(); } } static class TestBean { public boolean execute() { return true; } } }
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/entity/vo/ReleaseCompareResult.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.entity.vo; import com.ctrip.framework.apollo.common.entity.EntityPair; import com.ctrip.framework.apollo.portal.entity.bo.KVEntity; import com.ctrip.framework.apollo.portal.enums.ChangeType; import java.util.LinkedList; import java.util.List; public class ReleaseCompareResult { private List<Change> changes = new LinkedList<>(); public void addEntityPair(ChangeType type, KVEntity firstEntity, KVEntity secondEntity) { changes.add(new Change(type, new EntityPair<>(firstEntity, secondEntity))); } public boolean hasContent(){ return !changes.isEmpty(); } public List<Change> getChanges() { return changes; } public void setChanges(List<Change> changes) { this.changes = changes; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.entity.vo; import com.ctrip.framework.apollo.common.entity.EntityPair; import com.ctrip.framework.apollo.portal.entity.bo.KVEntity; import com.ctrip.framework.apollo.portal.enums.ChangeType; import java.util.LinkedList; import java.util.List; public class ReleaseCompareResult { private List<Change> changes = new LinkedList<>(); public void addEntityPair(ChangeType type, KVEntity firstEntity, KVEntity secondEntity) { changes.add(new Change(type, new EntityPair<>(firstEntity, secondEntity))); } public boolean hasContent(){ return !changes.isEmpty(); } public List<Change> getChanges() { return changes; } public void setChanges(List<Change> changes) { this.changes = changes; } }
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/ClusterService.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.service; import com.ctrip.framework.apollo.common.dto.ClusterDTO; import com.ctrip.framework.apollo.common.exception.BadRequestException; import com.ctrip.framework.apollo.portal.environment.Env; import com.ctrip.framework.apollo.portal.api.AdminServiceAPI; import com.ctrip.framework.apollo.portal.constant.TracerEventType; import com.ctrip.framework.apollo.portal.spi.UserInfoHolder; import com.ctrip.framework.apollo.tracer.Tracer; import org.springframework.stereotype.Service; import java.util.List; @Service public class ClusterService { private final UserInfoHolder userInfoHolder; private final AdminServiceAPI.ClusterAPI clusterAPI; public ClusterService(final UserInfoHolder userInfoHolder, final AdminServiceAPI.ClusterAPI clusterAPI) { this.userInfoHolder = userInfoHolder; this.clusterAPI = clusterAPI; } public List<ClusterDTO> findClusters(Env env, String appId) { return clusterAPI.findClustersByApp(appId, env); } public ClusterDTO createCluster(Env env, ClusterDTO cluster) { if (!clusterAPI.isClusterUnique(cluster.getAppId(), env, cluster.getName())) { throw new BadRequestException(String.format("cluster %s already exists.", cluster.getName())); } ClusterDTO clusterDTO = clusterAPI.create(env, cluster); Tracer.logEvent(TracerEventType.CREATE_CLUSTER, cluster.getAppId(), "0", cluster.getName()); return clusterDTO; } public void deleteCluster(Env env, String appId, String clusterName){ clusterAPI.delete(env, appId, clusterName, userInfoHolder.getUser().getUserId()); } public ClusterDTO loadCluster(String appId, Env env, String clusterName){ return clusterAPI.loadCluster(appId, env, clusterName); } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.service; import com.ctrip.framework.apollo.common.dto.ClusterDTO; import com.ctrip.framework.apollo.common.exception.BadRequestException; import com.ctrip.framework.apollo.portal.environment.Env; import com.ctrip.framework.apollo.portal.api.AdminServiceAPI; import com.ctrip.framework.apollo.portal.constant.TracerEventType; import com.ctrip.framework.apollo.portal.spi.UserInfoHolder; import com.ctrip.framework.apollo.tracer.Tracer; import org.springframework.stereotype.Service; import java.util.List; @Service public class ClusterService { private final UserInfoHolder userInfoHolder; private final AdminServiceAPI.ClusterAPI clusterAPI; public ClusterService(final UserInfoHolder userInfoHolder, final AdminServiceAPI.ClusterAPI clusterAPI) { this.userInfoHolder = userInfoHolder; this.clusterAPI = clusterAPI; } public List<ClusterDTO> findClusters(Env env, String appId) { return clusterAPI.findClustersByApp(appId, env); } public ClusterDTO createCluster(Env env, ClusterDTO cluster) { if (!clusterAPI.isClusterUnique(cluster.getAppId(), env, cluster.getName())) { throw new BadRequestException(String.format("cluster %s already exists.", cluster.getName())); } ClusterDTO clusterDTO = clusterAPI.create(env, cluster); Tracer.logEvent(TracerEventType.CREATE_CLUSTER, cluster.getAppId(), "0", cluster.getName()); return clusterDTO; } public void deleteCluster(Env env, String appId, String clusterName){ clusterAPI.delete(env, appId, clusterName, userInfoHolder.getUser().getUserId()); } public ClusterDTO loadCluster(String appId, Env env, String clusterName){ return clusterAPI.loadCluster(appId, env, clusterName); } }
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./scripts/flyway/portaldb/V1.1.2__extend_username.sql
-- -- Copyright 2021 Apollo Authors -- -- Licensed 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. -- # delta schema to upgrade apollo config db from v1.7.0 to v1.8.0 Use ApolloPortalDB; ALTER TABLE `App` MODIFY COLUMN `DataChange_CreatedBy` VARCHAR(64) NOT NULL DEFAULT 'default' COMMENT '创建人邮箱前缀', MODIFY COLUMN `DataChange_LastModifiedBy` VARCHAR(64) DEFAULT '' COMMENT '最后修改人邮箱前缀'; ALTER TABLE `AppNamespace` MODIFY COLUMN `DataChange_CreatedBy` VARCHAR(64) NOT NULL DEFAULT 'default' COMMENT '创建人邮箱前缀', MODIFY COLUMN `DataChange_LastModifiedBy` VARCHAR(64) DEFAULT '' COMMENT '最后修改人邮箱前缀'; ALTER TABLE `Consumer` MODIFY COLUMN `DataChange_CreatedBy` VARCHAR(64) NOT NULL DEFAULT 'default' COMMENT '创建人邮箱前缀', MODIFY COLUMN `DataChange_LastModifiedBy` VARCHAR(64) DEFAULT '' COMMENT '最后修改人邮箱前缀'; ALTER TABLE `ConsumerRole` MODIFY COLUMN `DataChange_CreatedBy` VARCHAR(64) NOT NULL DEFAULT 'default' COMMENT '创建人邮箱前缀', MODIFY COLUMN `DataChange_LastModifiedBy` VARCHAR(64) DEFAULT '' COMMENT '最后修改人邮箱前缀'; ALTER TABLE `ConsumerToken` MODIFY COLUMN `DataChange_CreatedBy` VARCHAR(64) NOT NULL DEFAULT 'default' COMMENT '创建人邮箱前缀', MODIFY COLUMN `DataChange_LastModifiedBy` VARCHAR(64) DEFAULT '' COMMENT '最后修改人邮箱前缀'; ALTER TABLE `Favorite` MODIFY COLUMN `DataChange_CreatedBy` VARCHAR(64) NOT NULL DEFAULT 'default' COMMENT '创建人邮箱前缀', MODIFY COLUMN `DataChange_LastModifiedBy` VARCHAR(64) DEFAULT '' COMMENT '最后修改人邮箱前缀'; ALTER TABLE `Permission` MODIFY COLUMN `DataChange_CreatedBy` VARCHAR(64) NOT NULL DEFAULT 'default' COMMENT '创建人邮箱前缀', MODIFY COLUMN `DataChange_LastModifiedBy` VARCHAR(64) DEFAULT '' COMMENT '最后修改人邮箱前缀'; ALTER TABLE `Role` MODIFY COLUMN `DataChange_CreatedBy` VARCHAR(64) NOT NULL DEFAULT 'default' COMMENT '创建人邮箱前缀', MODIFY COLUMN `DataChange_LastModifiedBy` VARCHAR(64) DEFAULT '' COMMENT '最后修改人邮箱前缀'; ALTER TABLE `RolePermission` MODIFY COLUMN `DataChange_CreatedBy` VARCHAR(64) NOT NULL DEFAULT 'default' COMMENT '创建人邮箱前缀', MODIFY COLUMN `DataChange_LastModifiedBy` VARCHAR(64) DEFAULT '' COMMENT '最后修改人邮箱前缀'; ALTER TABLE `ServerConfig` MODIFY COLUMN `DataChange_CreatedBy` VARCHAR(64) NOT NULL DEFAULT 'default' COMMENT '创建人邮箱前缀', MODIFY COLUMN `DataChange_LastModifiedBy` VARCHAR(64) DEFAULT '' COMMENT '最后修改人邮箱前缀'; ALTER TABLE `UserRole` MODIFY COLUMN `DataChange_CreatedBy` VARCHAR(64) NOT NULL DEFAULT 'default' COMMENT '创建人邮箱前缀', MODIFY COLUMN `DataChange_LastModifiedBy` VARCHAR(64) DEFAULT '' COMMENT '最后修改人邮箱前缀';
-- -- Copyright 2021 Apollo Authors -- -- Licensed 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. -- # delta schema to upgrade apollo config db from v1.7.0 to v1.8.0 Use ApolloPortalDB; ALTER TABLE `App` MODIFY COLUMN `DataChange_CreatedBy` VARCHAR(64) NOT NULL DEFAULT 'default' COMMENT '创建人邮箱前缀', MODIFY COLUMN `DataChange_LastModifiedBy` VARCHAR(64) DEFAULT '' COMMENT '最后修改人邮箱前缀'; ALTER TABLE `AppNamespace` MODIFY COLUMN `DataChange_CreatedBy` VARCHAR(64) NOT NULL DEFAULT 'default' COMMENT '创建人邮箱前缀', MODIFY COLUMN `DataChange_LastModifiedBy` VARCHAR(64) DEFAULT '' COMMENT '最后修改人邮箱前缀'; ALTER TABLE `Consumer` MODIFY COLUMN `DataChange_CreatedBy` VARCHAR(64) NOT NULL DEFAULT 'default' COMMENT '创建人邮箱前缀', MODIFY COLUMN `DataChange_LastModifiedBy` VARCHAR(64) DEFAULT '' COMMENT '最后修改人邮箱前缀'; ALTER TABLE `ConsumerRole` MODIFY COLUMN `DataChange_CreatedBy` VARCHAR(64) NOT NULL DEFAULT 'default' COMMENT '创建人邮箱前缀', MODIFY COLUMN `DataChange_LastModifiedBy` VARCHAR(64) DEFAULT '' COMMENT '最后修改人邮箱前缀'; ALTER TABLE `ConsumerToken` MODIFY COLUMN `DataChange_CreatedBy` VARCHAR(64) NOT NULL DEFAULT 'default' COMMENT '创建人邮箱前缀', MODIFY COLUMN `DataChange_LastModifiedBy` VARCHAR(64) DEFAULT '' COMMENT '最后修改人邮箱前缀'; ALTER TABLE `Favorite` MODIFY COLUMN `DataChange_CreatedBy` VARCHAR(64) NOT NULL DEFAULT 'default' COMMENT '创建人邮箱前缀', MODIFY COLUMN `DataChange_LastModifiedBy` VARCHAR(64) DEFAULT '' COMMENT '最后修改人邮箱前缀'; ALTER TABLE `Permission` MODIFY COLUMN `DataChange_CreatedBy` VARCHAR(64) NOT NULL DEFAULT 'default' COMMENT '创建人邮箱前缀', MODIFY COLUMN `DataChange_LastModifiedBy` VARCHAR(64) DEFAULT '' COMMENT '最后修改人邮箱前缀'; ALTER TABLE `Role` MODIFY COLUMN `DataChange_CreatedBy` VARCHAR(64) NOT NULL DEFAULT 'default' COMMENT '创建人邮箱前缀', MODIFY COLUMN `DataChange_LastModifiedBy` VARCHAR(64) DEFAULT '' COMMENT '最后修改人邮箱前缀'; ALTER TABLE `RolePermission` MODIFY COLUMN `DataChange_CreatedBy` VARCHAR(64) NOT NULL DEFAULT 'default' COMMENT '创建人邮箱前缀', MODIFY COLUMN `DataChange_LastModifiedBy` VARCHAR(64) DEFAULT '' COMMENT '最后修改人邮箱前缀'; ALTER TABLE `ServerConfig` MODIFY COLUMN `DataChange_CreatedBy` VARCHAR(64) NOT NULL DEFAULT 'default' COMMENT '创建人邮箱前缀', MODIFY COLUMN `DataChange_LastModifiedBy` VARCHAR(64) DEFAULT '' COMMENT '最后修改人邮箱前缀'; ALTER TABLE `UserRole` MODIFY COLUMN `DataChange_CreatedBy` VARCHAR(64) NOT NULL DEFAULT 'default' COMMENT '创建人邮箱前缀', MODIFY COLUMN `DataChange_LastModifiedBy` VARCHAR(64) DEFAULT '' COMMENT '最后修改人邮箱前缀';
-1
apolloconfig/apollo
3,677
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题
## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
klboke
2021-05-11T09:35:40Z
2021-05-23T11:44:16Z
f41a73b92d19383bbb542c51b0f6d062e9e80e3b
dc41c934349af28631cc5b2d9b2bdf75eac9d1f3
解决日志系统未初始化完成时,apollo 的加载日志没法输出问题. ## What's the purpose of this PR > 解决问题: 解决 spring boot 方式集成时,配置 `apollo.bootstrap.eagerLoad.enabled` 情况下,apollo 的加载日志没法输出问题。 > 设计原理: 封装一个基于 guava-cache 的日志输出内容存储容器 `DeferredLogUtil`,将 apollo 初始化时的日志信息,添加到延迟输出的日志容器。在日志系统加载完成也就是 EnvironmentPostProcessor 事件立刻回放,最终实现的效果和不开启 `apollo.bootstrap.eagerLoad.enabled` 是一样的,设计过程参考了 [spring-boot#DeferredLog](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLog.java)
./apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/PortalApplication.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal; import com.ctrip.framework.apollo.common.ApolloCommonConfig; import com.ctrip.framework.apollo.openapi.PortalOpenApiConfig; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.ldap.LdapAutoConfiguration; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.EnableAspectJAutoProxy; import org.springframework.transaction.annotation.EnableTransactionManagement; @EnableAspectJAutoProxy @Configuration @EnableAutoConfiguration(exclude = {LdapAutoConfiguration.class}) @EnableTransactionManagement @ComponentScan(basePackageClasses = {ApolloCommonConfig.class, PortalApplication.class, PortalOpenApiConfig.class}) public class PortalApplication { public static void main(String[] args) throws Exception { SpringApplication.run(PortalApplication.class, args); } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal; import com.ctrip.framework.apollo.common.ApolloCommonConfig; import com.ctrip.framework.apollo.openapi.PortalOpenApiConfig; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.ldap.LdapAutoConfiguration; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.EnableAspectJAutoProxy; import org.springframework.transaction.annotation.EnableTransactionManagement; @EnableAspectJAutoProxy @Configuration @EnableAutoConfiguration(exclude = {LdapAutoConfiguration.class}) @EnableTransactionManagement @ComponentScan(basePackageClasses = {ApolloCommonConfig.class, PortalApplication.class, PortalOpenApiConfig.class}) public class PortalApplication { public static void main(String[] args) throws Exception { SpringApplication.run(PortalApplication.class, args); } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./CHANGES.md
Changes by Version ================== Release Notes. Apollo 1.9.0 ------------------ * [extend DataChange_CreatedBy, DataChange_LastModifiedBy from 32 to 64.](https://github.com/ctripcorp/apollo/pull/3552) * [add spring configuration metadata](https://github.com/ctripcorp/apollo/pull/3553) * [fix #3551 and optimize ldap samples ](https://github.com/ctripcorp/apollo/pull/3561) * [update wiki url and refine documentation](https://github.com/ctripcorp/apollo/pull/3563) * [slim docker images](https://github.com/ctripcorp/apollo/pull/3572) * [add network strategy guideline to docker quick start](https://github.com/ctripcorp/apollo/pull/3574) * [Added support for consul service discovery](https://github.com/ctripcorp/apollo/pull/3575) * [disable consul in apollo-assembly by default ](https://github.com/ctripcorp/apollo/pull/3585) * [ServiceBootstrap unit test fix](https://github.com/ctripcorp/apollo/pull/3593) * [replace http client implementation with interface ](https://github.com/ctripcorp/apollo/pull/3594) * [Allow users to inject customized instance via ApolloInjectorCustomizer](https://github.com/ctripcorp/apollo/pull/3602) * [Fixes #3606](https://github.com/ctripcorp/apollo/pull/3609) * [Bump xstream from 1.4.15 to 1.4.16](https://github.com/ctripcorp/apollo/pull/3611) * [docs: user practices. Alibaba Sentinel Dashboard Push Rules to apollo](https://github.com/ctripcorp/apollo/pull/3617) * [update known users](https://github.com/ctripcorp/apollo/pull/3619) * [add maven deploy action](https://github.com/ctripcorp/apollo/pull/3620) * [fix the issue that access key doesn't work if appid passed is in different case](https://github.com/ctripcorp/apollo/pull/3627) * [fix oidc logout](https://github.com/ctripcorp/apollo/pull/3628) * [docs: third party sdk nodejs client](https://github.com/ctripcorp/apollo/pull/3632) * [update known users](https://github.com/ctripcorp/apollo/pull/3633) * [docs: use docsify pagination plugin](https://github.com/ctripcorp/apollo/pull/3634) * [apollo client to support jdk16](https://github.com/ctripcorp/apollo/pull/3646) * [add English version of readme](https://github.com/ctripcorp/apollo/pull/3656) * [update known users](https://github.com/ctripcorp/apollo/pull/3657) * [update apolloconfig.com domain](https://github.com/ctripcorp/apollo/pull/3658) * [localize css to speed up the loading of google fonts](https://github.com/ctripcorp/apollo/pull/3660) * [test(apollo-client): use assertEquals instead of assertThat](https://github.com/ctripcorp/apollo/pull/3667) * [test(apollo-client): make timeout more longer when long poll](https://github.com/ctripcorp/apollo/pull/3668) * [fix unit test](https://github.com/ctripcorp/apollo/pull/3669) * [解决日志系统未初始化完成时,apollo 的加载日志没法输出问题](https://github.com/ctripcorp/apollo/pull/3677) * [fix[apollo-configService]: Solve configService startup exception](https://github.com/ctripcorp/apollo/pull/3679) * [Community Governance Proposal](https://github.com/ctripcorp/apollo/pull/3670) * [增加阿波罗client的php库](https://github.com/ctripcorp/apollo/pull/3682) * [Bump xstream from 1.4.16 to 1.4.17](https://github.com/ctripcorp/apollo/pull/3692) * [Improve the nacos registry configuration document](https://github.com/ctripcorp/apollo/pull/3695) * [Remove redundant invoke of trySyncFromUpstream](https://github.com/ctripcorp/apollo/pull/3699) * [add apollo team introduction and community releated contents](https://github.com/ctripcorp/apollo/pull/3713) * [fix oidc sql](https://github.com/ctripcorp/apollo/pull/3720) ------------------ All issues and pull requests are [here](https://github.com/ctripcorp/apollo/milestone/6?closed=1)
Changes by Version ================== Release Notes. Apollo 1.9.0 ------------------ * [extend DataChange_CreatedBy, DataChange_LastModifiedBy from 32 to 64.](https://github.com/ctripcorp/apollo/pull/3552) * [add spring configuration metadata](https://github.com/ctripcorp/apollo/pull/3553) * [fix #3551 and optimize ldap samples ](https://github.com/ctripcorp/apollo/pull/3561) * [update wiki url and refine documentation](https://github.com/ctripcorp/apollo/pull/3563) * [slim docker images](https://github.com/ctripcorp/apollo/pull/3572) * [add network strategy guideline to docker quick start](https://github.com/ctripcorp/apollo/pull/3574) * [Added support for consul service discovery](https://github.com/ctripcorp/apollo/pull/3575) * [disable consul in apollo-assembly by default ](https://github.com/ctripcorp/apollo/pull/3585) * [ServiceBootstrap unit test fix](https://github.com/ctripcorp/apollo/pull/3593) * [replace http client implementation with interface ](https://github.com/ctripcorp/apollo/pull/3594) * [Allow users to inject customized instance via ApolloInjectorCustomizer](https://github.com/ctripcorp/apollo/pull/3602) * [Fixes #3606](https://github.com/ctripcorp/apollo/pull/3609) * [Bump xstream from 1.4.15 to 1.4.16](https://github.com/ctripcorp/apollo/pull/3611) * [docs: user practices. Alibaba Sentinel Dashboard Push Rules to apollo](https://github.com/ctripcorp/apollo/pull/3617) * [update known users](https://github.com/ctripcorp/apollo/pull/3619) * [add maven deploy action](https://github.com/ctripcorp/apollo/pull/3620) * [fix the issue that access key doesn't work if appid passed is in different case](https://github.com/ctripcorp/apollo/pull/3627) * [fix oidc logout](https://github.com/ctripcorp/apollo/pull/3628) * [docs: third party sdk nodejs client](https://github.com/ctripcorp/apollo/pull/3632) * [update known users](https://github.com/ctripcorp/apollo/pull/3633) * [docs: use docsify pagination plugin](https://github.com/ctripcorp/apollo/pull/3634) * [apollo client to support jdk16](https://github.com/ctripcorp/apollo/pull/3646) * [add English version of readme](https://github.com/ctripcorp/apollo/pull/3656) * [update known users](https://github.com/ctripcorp/apollo/pull/3657) * [update apolloconfig.com domain](https://github.com/ctripcorp/apollo/pull/3658) * [localize css to speed up the loading of google fonts](https://github.com/ctripcorp/apollo/pull/3660) * [test(apollo-client): use assertEquals instead of assertThat](https://github.com/ctripcorp/apollo/pull/3667) * [test(apollo-client): make timeout more longer when long poll](https://github.com/ctripcorp/apollo/pull/3668) * [fix unit test](https://github.com/ctripcorp/apollo/pull/3669) * [解决日志系统未初始化完成时,apollo 的加载日志没法输出问题](https://github.com/ctripcorp/apollo/pull/3677) * [fix[apollo-configService]: Solve configService startup exception](https://github.com/ctripcorp/apollo/pull/3679) * [Community Governance Proposal](https://github.com/ctripcorp/apollo/pull/3670) * [增加阿波罗client的php库](https://github.com/ctripcorp/apollo/pull/3682) * [Bump xstream from 1.4.16 to 1.4.17](https://github.com/ctripcorp/apollo/pull/3692) * [Improve the nacos registry configuration document](https://github.com/ctripcorp/apollo/pull/3695) * [Remove redundant invoke of trySyncFromUpstream](https://github.com/ctripcorp/apollo/pull/3699) * [add apollo team introduction and community releated contents](https://github.com/ctripcorp/apollo/pull/3713) * [fix oidc sql](https://github.com/ctripcorp/apollo/pull/3720) * [feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent](https://github.com/ctripcorp/apollo/pull/3666) ------------------ All issues and pull requests are [here](https://github.com/ctripcorp/apollo/milestone/6?closed=1)
1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-client/src/main/java/com/ctrip/framework/apollo/internals/AbstractConfig.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.internals; import com.ctrip.framework.apollo.Config; import com.ctrip.framework.apollo.ConfigChangeListener; import com.ctrip.framework.apollo.build.ApolloInjector; import com.ctrip.framework.apollo.core.utils.ApolloThreadFactory; import com.ctrip.framework.apollo.enums.PropertyChangeType; import com.ctrip.framework.apollo.exceptions.ApolloConfigException; import com.ctrip.framework.apollo.model.ConfigChange; import com.ctrip.framework.apollo.model.ConfigChangeEvent; import com.ctrip.framework.apollo.tracer.Tracer; import com.ctrip.framework.apollo.tracer.spi.Transaction; import com.ctrip.framework.apollo.util.ConfigUtil; import com.ctrip.framework.apollo.util.factory.PropertiesFactory; import com.ctrip.framework.apollo.util.function.Functions; import com.ctrip.framework.apollo.util.parser.Parsers; import com.google.common.base.Function; import com.google.common.base.Objects; import com.google.common.cache.Cache; import com.google.common.cache.CacheBuilder; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import com.google.common.collect.Sets; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.Date; import java.util.List; import java.util.Locale; import java.util.Map; import java.util.Properties; import java.util.Set; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.atomic.AtomicLong; /** * @author Jason Song([email protected]) */ public abstract class AbstractConfig implements Config { private static final Logger logger = LoggerFactory.getLogger(AbstractConfig.class); private static final ExecutorService m_executorService; private final List<ConfigChangeListener> m_listeners = Lists.newCopyOnWriteArrayList(); private final Map<ConfigChangeListener, Set<String>> m_interestedKeys = Maps.newConcurrentMap(); private final Map<ConfigChangeListener, Set<String>> m_interestedKeyPrefixes = Maps.newConcurrentMap(); private final ConfigUtil m_configUtil; private volatile Cache<String, Integer> m_integerCache; private volatile Cache<String, Long> m_longCache; private volatile Cache<String, Short> m_shortCache; private volatile Cache<String, Float> m_floatCache; private volatile Cache<String, Double> m_doubleCache; private volatile Cache<String, Byte> m_byteCache; private volatile Cache<String, Boolean> m_booleanCache; private volatile Cache<String, Date> m_dateCache; private volatile Cache<String, Long> m_durationCache; private final Map<String, Cache<String, String[]>> m_arrayCache; private final List<Cache> allCaches; private final AtomicLong m_configVersion; //indicate config version protected PropertiesFactory propertiesFactory; static { m_executorService = Executors.newCachedThreadPool(ApolloThreadFactory .create("Config", true)); } public AbstractConfig() { m_configUtil = ApolloInjector.getInstance(ConfigUtil.class); m_configVersion = new AtomicLong(); m_arrayCache = Maps.newConcurrentMap(); allCaches = Lists.newArrayList(); propertiesFactory = ApolloInjector.getInstance(PropertiesFactory.class); } @Override public void addChangeListener(ConfigChangeListener listener) { addChangeListener(listener, null); } @Override public void addChangeListener(ConfigChangeListener listener, Set<String> interestedKeys) { addChangeListener(listener, interestedKeys, null); } @Override public void addChangeListener(ConfigChangeListener listener, Set<String> interestedKeys, Set<String> interestedKeyPrefixes) { if (!m_listeners.contains(listener)) { m_listeners.add(listener); if (interestedKeys != null && !interestedKeys.isEmpty()) { m_interestedKeys.put(listener, Sets.newHashSet(interestedKeys)); } if (interestedKeyPrefixes != null && !interestedKeyPrefixes.isEmpty()) { m_interestedKeyPrefixes.put(listener, Sets.newHashSet(interestedKeyPrefixes)); } } } @Override public boolean removeChangeListener(ConfigChangeListener listener) { m_interestedKeys.remove(listener); m_interestedKeyPrefixes.remove(listener); return m_listeners.remove(listener); } @Override public Integer getIntProperty(String key, Integer defaultValue) { try { if (m_integerCache == null) { synchronized (this) { if (m_integerCache == null) { m_integerCache = newCache(); } } } return getValueFromCache(key, Functions.TO_INT_FUNCTION, m_integerCache, defaultValue); } catch (Throwable ex) { Tracer.logError(new ApolloConfigException( String.format("getIntProperty for %s failed, return default value %d", key, defaultValue), ex)); } return defaultValue; } @Override public Long getLongProperty(String key, Long defaultValue) { try { if (m_longCache == null) { synchronized (this) { if (m_longCache == null) { m_longCache = newCache(); } } } return getValueFromCache(key, Functions.TO_LONG_FUNCTION, m_longCache, defaultValue); } catch (Throwable ex) { Tracer.logError(new ApolloConfigException( String.format("getLongProperty for %s failed, return default value %d", key, defaultValue), ex)); } return defaultValue; } @Override public Short getShortProperty(String key, Short defaultValue) { try { if (m_shortCache == null) { synchronized (this) { if (m_shortCache == null) { m_shortCache = newCache(); } } } return getValueFromCache(key, Functions.TO_SHORT_FUNCTION, m_shortCache, defaultValue); } catch (Throwable ex) { Tracer.logError(new ApolloConfigException( String.format("getShortProperty for %s failed, return default value %d", key, defaultValue), ex)); } return defaultValue; } @Override public Float getFloatProperty(String key, Float defaultValue) { try { if (m_floatCache == null) { synchronized (this) { if (m_floatCache == null) { m_floatCache = newCache(); } } } return getValueFromCache(key, Functions.TO_FLOAT_FUNCTION, m_floatCache, defaultValue); } catch (Throwable ex) { Tracer.logError(new ApolloConfigException( String.format("getFloatProperty for %s failed, return default value %f", key, defaultValue), ex)); } return defaultValue; } @Override public Double getDoubleProperty(String key, Double defaultValue) { try { if (m_doubleCache == null) { synchronized (this) { if (m_doubleCache == null) { m_doubleCache = newCache(); } } } return getValueFromCache(key, Functions.TO_DOUBLE_FUNCTION, m_doubleCache, defaultValue); } catch (Throwable ex) { Tracer.logError(new ApolloConfigException( String.format("getDoubleProperty for %s failed, return default value %f", key, defaultValue), ex)); } return defaultValue; } @Override public Byte getByteProperty(String key, Byte defaultValue) { try { if (m_byteCache == null) { synchronized (this) { if (m_byteCache == null) { m_byteCache = newCache(); } } } return getValueFromCache(key, Functions.TO_BYTE_FUNCTION, m_byteCache, defaultValue); } catch (Throwable ex) { Tracer.logError(new ApolloConfigException( String.format("getByteProperty for %s failed, return default value %d", key, defaultValue), ex)); } return defaultValue; } @Override public Boolean getBooleanProperty(String key, Boolean defaultValue) { try { if (m_booleanCache == null) { synchronized (this) { if (m_booleanCache == null) { m_booleanCache = newCache(); } } } return getValueFromCache(key, Functions.TO_BOOLEAN_FUNCTION, m_booleanCache, defaultValue); } catch (Throwable ex) { Tracer.logError(new ApolloConfigException( String.format("getBooleanProperty for %s failed, return default value %b", key, defaultValue), ex)); } return defaultValue; } @Override public String[] getArrayProperty(String key, final String delimiter, String[] defaultValue) { try { if (!m_arrayCache.containsKey(delimiter)) { synchronized (this) { if (!m_arrayCache.containsKey(delimiter)) { m_arrayCache.put(delimiter, this.<String[]>newCache()); } } } Cache<String, String[]> cache = m_arrayCache.get(delimiter); String[] result = cache.getIfPresent(key); if (result != null) { return result; } return getValueAndStoreToCache(key, new Function<String, String[]>() { @Override public String[] apply(String input) { return input.split(delimiter); } }, cache, defaultValue); } catch (Throwable ex) { Tracer.logError(new ApolloConfigException( String.format("getArrayProperty for %s failed, return default value", key), ex)); } return defaultValue; } @Override public <T extends Enum<T>> T getEnumProperty(String key, Class<T> enumType, T defaultValue) { try { String value = getProperty(key, null); if (value != null) { return Enum.valueOf(enumType, value); } } catch (Throwable ex) { Tracer.logError(new ApolloConfigException( String.format("getEnumProperty for %s failed, return default value %s", key, defaultValue), ex)); } return defaultValue; } @Override public Date getDateProperty(String key, Date defaultValue) { try { if (m_dateCache == null) { synchronized (this) { if (m_dateCache == null) { m_dateCache = newCache(); } } } return getValueFromCache(key, Functions.TO_DATE_FUNCTION, m_dateCache, defaultValue); } catch (Throwable ex) { Tracer.logError(new ApolloConfigException( String.format("getDateProperty for %s failed, return default value %s", key, defaultValue), ex)); } return defaultValue; } @Override public Date getDateProperty(String key, String format, Date defaultValue) { try { String value = getProperty(key, null); if (value != null) { return Parsers.forDate().parse(value, format); } } catch (Throwable ex) { Tracer.logError(new ApolloConfigException( String.format("getDateProperty for %s failed, return default value %s", key, defaultValue), ex)); } return defaultValue; } @Override public Date getDateProperty(String key, String format, Locale locale, Date defaultValue) { try { String value = getProperty(key, null); if (value != null) { return Parsers.forDate().parse(value, format, locale); } } catch (Throwable ex) { Tracer.logError(new ApolloConfigException( String.format("getDateProperty for %s failed, return default value %s", key, defaultValue), ex)); } return defaultValue; } @Override public long getDurationProperty(String key, long defaultValue) { try { if (m_durationCache == null) { synchronized (this) { if (m_durationCache == null) { m_durationCache = newCache(); } } } return getValueFromCache(key, Functions.TO_DURATION_FUNCTION, m_durationCache, defaultValue); } catch (Throwable ex) { Tracer.logError(new ApolloConfigException( String.format("getDurationProperty for %s failed, return default value %d", key, defaultValue), ex)); } return defaultValue; } @Override public <T> T getProperty(String key, Function<String, T> function, T defaultValue) { try { String value = getProperty(key, null); if (value != null) { return function.apply(value); } } catch (Throwable ex) { Tracer.logError(new ApolloConfigException( String.format("getProperty for %s failed, return default value %s", key, defaultValue), ex)); } return defaultValue; } private <T> T getValueFromCache(String key, Function<String, T> parser, Cache<String, T> cache, T defaultValue) { T result = cache.getIfPresent(key); if (result != null) { return result; } return getValueAndStoreToCache(key, parser, cache, defaultValue); } private <T> T getValueAndStoreToCache(String key, Function<String, T> parser, Cache<String, T> cache, T defaultValue) { long currentConfigVersion = m_configVersion.get(); String value = getProperty(key, null); if (value != null) { T result = parser.apply(value); if (result != null) { synchronized (this) { if (m_configVersion.get() == currentConfigVersion) { cache.put(key, result); } } return result; } } return defaultValue; } private <T> Cache<String, T> newCache() { Cache<String, T> cache = CacheBuilder.newBuilder() .maximumSize(m_configUtil.getMaxConfigCacheSize()) .expireAfterAccess(m_configUtil.getConfigCacheExpireTime(), m_configUtil.getConfigCacheExpireTimeUnit()) .build(); allCaches.add(cache); return cache; } /** * Clear config cache */ protected void clearConfigCache() { synchronized (this) { for (Cache c : allCaches) { if (c != null) { c.invalidateAll(); } } m_configVersion.incrementAndGet(); } } protected void fireConfigChange(final ConfigChangeEvent changeEvent) { for (final ConfigChangeListener listener : m_listeners) { // check whether the listener is interested in this change event if (!isConfigChangeListenerInterested(listener, changeEvent)) { continue; } m_executorService.submit(new Runnable() { @Override public void run() { String listenerName = listener.getClass().getName(); Transaction transaction = Tracer.newTransaction("Apollo.ConfigChangeListener", listenerName); try { listener.onChange(changeEvent); transaction.setStatus(Transaction.SUCCESS); } catch (Throwable ex) { transaction.setStatus(ex); Tracer.logError(ex); logger.error("Failed to invoke config change listener {}", listenerName, ex); } finally { transaction.complete(); } } }); } } private boolean isConfigChangeListenerInterested(ConfigChangeListener configChangeListener, ConfigChangeEvent configChangeEvent) { Set<String> interestedKeys = m_interestedKeys.get(configChangeListener); Set<String> interestedKeyPrefixes = m_interestedKeyPrefixes.get(configChangeListener); if ((interestedKeys == null || interestedKeys.isEmpty()) && (interestedKeyPrefixes == null || interestedKeyPrefixes.isEmpty())) { return true; // no interested keys means interested in all keys } if (interestedKeys != null) { for (String interestedKey : interestedKeys) { if (configChangeEvent.isChanged(interestedKey)) { return true; } } } if (interestedKeyPrefixes != null) { for (String prefix : interestedKeyPrefixes) { for (final String changedKey : configChangeEvent.changedKeys()) { if (changedKey.startsWith(prefix)) { return true; } } } } return false; } List<ConfigChange> calcPropertyChanges(String namespace, Properties previous, Properties current) { if (previous == null) { previous = propertiesFactory.getPropertiesInstance(); } if (current == null) { current = propertiesFactory.getPropertiesInstance(); } Set<String> previousKeys = previous.stringPropertyNames(); Set<String> currentKeys = current.stringPropertyNames(); Set<String> commonKeys = Sets.intersection(previousKeys, currentKeys); Set<String> newKeys = Sets.difference(currentKeys, commonKeys); Set<String> removedKeys = Sets.difference(previousKeys, commonKeys); List<ConfigChange> changes = Lists.newArrayList(); for (String newKey : newKeys) { changes.add(new ConfigChange(namespace, newKey, null, current.getProperty(newKey), PropertyChangeType.ADDED)); } for (String removedKey : removedKeys) { changes.add(new ConfigChange(namespace, removedKey, previous.getProperty(removedKey), null, PropertyChangeType.DELETED)); } for (String commonKey : commonKeys) { String previousValue = previous.getProperty(commonKey); String currentValue = current.getProperty(commonKey); if (Objects.equal(previousValue, currentValue)) { continue; } changes.add(new ConfigChange(namespace, commonKey, previousValue, currentValue, PropertyChangeType.MODIFIED)); } return changes; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.internals; import com.ctrip.framework.apollo.Config; import com.ctrip.framework.apollo.ConfigChangeListener; import com.ctrip.framework.apollo.build.ApolloInjector; import com.ctrip.framework.apollo.core.utils.ApolloThreadFactory; import com.ctrip.framework.apollo.enums.PropertyChangeType; import com.ctrip.framework.apollo.exceptions.ApolloConfigException; import com.ctrip.framework.apollo.model.ConfigChange; import com.ctrip.framework.apollo.model.ConfigChangeEvent; import com.ctrip.framework.apollo.tracer.Tracer; import com.ctrip.framework.apollo.tracer.spi.Transaction; import com.ctrip.framework.apollo.util.ConfigUtil; import com.ctrip.framework.apollo.util.factory.PropertiesFactory; import com.ctrip.framework.apollo.util.function.Functions; import com.ctrip.framework.apollo.util.parser.Parsers; import com.google.common.base.Function; import com.google.common.base.Objects; import com.google.common.cache.Cache; import com.google.common.cache.CacheBuilder; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import com.google.common.collect.Sets; import java.util.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.atomic.AtomicLong; /** * @author Jason Song([email protected]) */ public abstract class AbstractConfig implements Config { private static final Logger logger = LoggerFactory.getLogger(AbstractConfig.class); private static final ExecutorService m_executorService; private final List<ConfigChangeListener> m_listeners = Lists.newCopyOnWriteArrayList(); private final Map<ConfigChangeListener, Set<String>> m_interestedKeys = Maps.newConcurrentMap(); private final Map<ConfigChangeListener, Set<String>> m_interestedKeyPrefixes = Maps.newConcurrentMap(); private final ConfigUtil m_configUtil; private volatile Cache<String, Integer> m_integerCache; private volatile Cache<String, Long> m_longCache; private volatile Cache<String, Short> m_shortCache; private volatile Cache<String, Float> m_floatCache; private volatile Cache<String, Double> m_doubleCache; private volatile Cache<String, Byte> m_byteCache; private volatile Cache<String, Boolean> m_booleanCache; private volatile Cache<String, Date> m_dateCache; private volatile Cache<String, Long> m_durationCache; private final Map<String, Cache<String, String[]>> m_arrayCache; private final List<Cache> allCaches; private final AtomicLong m_configVersion; //indicate config version protected PropertiesFactory propertiesFactory; static { m_executorService = Executors.newCachedThreadPool(ApolloThreadFactory .create("Config", true)); } public AbstractConfig() { m_configUtil = ApolloInjector.getInstance(ConfigUtil.class); m_configVersion = new AtomicLong(); m_arrayCache = Maps.newConcurrentMap(); allCaches = Lists.newArrayList(); propertiesFactory = ApolloInjector.getInstance(PropertiesFactory.class); } @Override public void addChangeListener(ConfigChangeListener listener) { addChangeListener(listener, null); } @Override public void addChangeListener(ConfigChangeListener listener, Set<String> interestedKeys) { addChangeListener(listener, interestedKeys, null); } @Override public void addChangeListener(ConfigChangeListener listener, Set<String> interestedKeys, Set<String> interestedKeyPrefixes) { if (!m_listeners.contains(listener)) { m_listeners.add(listener); if (interestedKeys != null && !interestedKeys.isEmpty()) { m_interestedKeys.put(listener, Sets.newHashSet(interestedKeys)); } if (interestedKeyPrefixes != null && !interestedKeyPrefixes.isEmpty()) { m_interestedKeyPrefixes.put(listener, Sets.newHashSet(interestedKeyPrefixes)); } } } @Override public boolean removeChangeListener(ConfigChangeListener listener) { m_interestedKeys.remove(listener); m_interestedKeyPrefixes.remove(listener); return m_listeners.remove(listener); } @Override public Integer getIntProperty(String key, Integer defaultValue) { try { if (m_integerCache == null) { synchronized (this) { if (m_integerCache == null) { m_integerCache = newCache(); } } } return getValueFromCache(key, Functions.TO_INT_FUNCTION, m_integerCache, defaultValue); } catch (Throwable ex) { Tracer.logError(new ApolloConfigException( String.format("getIntProperty for %s failed, return default value %d", key, defaultValue), ex)); } return defaultValue; } @Override public Long getLongProperty(String key, Long defaultValue) { try { if (m_longCache == null) { synchronized (this) { if (m_longCache == null) { m_longCache = newCache(); } } } return getValueFromCache(key, Functions.TO_LONG_FUNCTION, m_longCache, defaultValue); } catch (Throwable ex) { Tracer.logError(new ApolloConfigException( String.format("getLongProperty for %s failed, return default value %d", key, defaultValue), ex)); } return defaultValue; } @Override public Short getShortProperty(String key, Short defaultValue) { try { if (m_shortCache == null) { synchronized (this) { if (m_shortCache == null) { m_shortCache = newCache(); } } } return getValueFromCache(key, Functions.TO_SHORT_FUNCTION, m_shortCache, defaultValue); } catch (Throwable ex) { Tracer.logError(new ApolloConfigException( String.format("getShortProperty for %s failed, return default value %d", key, defaultValue), ex)); } return defaultValue; } @Override public Float getFloatProperty(String key, Float defaultValue) { try { if (m_floatCache == null) { synchronized (this) { if (m_floatCache == null) { m_floatCache = newCache(); } } } return getValueFromCache(key, Functions.TO_FLOAT_FUNCTION, m_floatCache, defaultValue); } catch (Throwable ex) { Tracer.logError(new ApolloConfigException( String.format("getFloatProperty for %s failed, return default value %f", key, defaultValue), ex)); } return defaultValue; } @Override public Double getDoubleProperty(String key, Double defaultValue) { try { if (m_doubleCache == null) { synchronized (this) { if (m_doubleCache == null) { m_doubleCache = newCache(); } } } return getValueFromCache(key, Functions.TO_DOUBLE_FUNCTION, m_doubleCache, defaultValue); } catch (Throwable ex) { Tracer.logError(new ApolloConfigException( String.format("getDoubleProperty for %s failed, return default value %f", key, defaultValue), ex)); } return defaultValue; } @Override public Byte getByteProperty(String key, Byte defaultValue) { try { if (m_byteCache == null) { synchronized (this) { if (m_byteCache == null) { m_byteCache = newCache(); } } } return getValueFromCache(key, Functions.TO_BYTE_FUNCTION, m_byteCache, defaultValue); } catch (Throwable ex) { Tracer.logError(new ApolloConfigException( String.format("getByteProperty for %s failed, return default value %d", key, defaultValue), ex)); } return defaultValue; } @Override public Boolean getBooleanProperty(String key, Boolean defaultValue) { try { if (m_booleanCache == null) { synchronized (this) { if (m_booleanCache == null) { m_booleanCache = newCache(); } } } return getValueFromCache(key, Functions.TO_BOOLEAN_FUNCTION, m_booleanCache, defaultValue); } catch (Throwable ex) { Tracer.logError(new ApolloConfigException( String.format("getBooleanProperty for %s failed, return default value %b", key, defaultValue), ex)); } return defaultValue; } @Override public String[] getArrayProperty(String key, final String delimiter, String[] defaultValue) { try { if (!m_arrayCache.containsKey(delimiter)) { synchronized (this) { if (!m_arrayCache.containsKey(delimiter)) { m_arrayCache.put(delimiter, this.<String[]>newCache()); } } } Cache<String, String[]> cache = m_arrayCache.get(delimiter); String[] result = cache.getIfPresent(key); if (result != null) { return result; } return getValueAndStoreToCache(key, new Function<String, String[]>() { @Override public String[] apply(String input) { return input.split(delimiter); } }, cache, defaultValue); } catch (Throwable ex) { Tracer.logError(new ApolloConfigException( String.format("getArrayProperty for %s failed, return default value", key), ex)); } return defaultValue; } @Override public <T extends Enum<T>> T getEnumProperty(String key, Class<T> enumType, T defaultValue) { try { String value = getProperty(key, null); if (value != null) { return Enum.valueOf(enumType, value); } } catch (Throwable ex) { Tracer.logError(new ApolloConfigException( String.format("getEnumProperty for %s failed, return default value %s", key, defaultValue), ex)); } return defaultValue; } @Override public Date getDateProperty(String key, Date defaultValue) { try { if (m_dateCache == null) { synchronized (this) { if (m_dateCache == null) { m_dateCache = newCache(); } } } return getValueFromCache(key, Functions.TO_DATE_FUNCTION, m_dateCache, defaultValue); } catch (Throwable ex) { Tracer.logError(new ApolloConfigException( String.format("getDateProperty for %s failed, return default value %s", key, defaultValue), ex)); } return defaultValue; } @Override public Date getDateProperty(String key, String format, Date defaultValue) { try { String value = getProperty(key, null); if (value != null) { return Parsers.forDate().parse(value, format); } } catch (Throwable ex) { Tracer.logError(new ApolloConfigException( String.format("getDateProperty for %s failed, return default value %s", key, defaultValue), ex)); } return defaultValue; } @Override public Date getDateProperty(String key, String format, Locale locale, Date defaultValue) { try { String value = getProperty(key, null); if (value != null) { return Parsers.forDate().parse(value, format, locale); } } catch (Throwable ex) { Tracer.logError(new ApolloConfigException( String.format("getDateProperty for %s failed, return default value %s", key, defaultValue), ex)); } return defaultValue; } @Override public long getDurationProperty(String key, long defaultValue) { try { if (m_durationCache == null) { synchronized (this) { if (m_durationCache == null) { m_durationCache = newCache(); } } } return getValueFromCache(key, Functions.TO_DURATION_FUNCTION, m_durationCache, defaultValue); } catch (Throwable ex) { Tracer.logError(new ApolloConfigException( String.format("getDurationProperty for %s failed, return default value %d", key, defaultValue), ex)); } return defaultValue; } @Override public <T> T getProperty(String key, Function<String, T> function, T defaultValue) { try { String value = getProperty(key, null); if (value != null) { return function.apply(value); } } catch (Throwable ex) { Tracer.logError(new ApolloConfigException( String.format("getProperty for %s failed, return default value %s", key, defaultValue), ex)); } return defaultValue; } private <T> T getValueFromCache(String key, Function<String, T> parser, Cache<String, T> cache, T defaultValue) { T result = cache.getIfPresent(key); if (result != null) { return result; } return getValueAndStoreToCache(key, parser, cache, defaultValue); } private <T> T getValueAndStoreToCache(String key, Function<String, T> parser, Cache<String, T> cache, T defaultValue) { long currentConfigVersion = m_configVersion.get(); String value = getProperty(key, null); if (value != null) { T result = parser.apply(value); if (result != null) { synchronized (this) { if (m_configVersion.get() == currentConfigVersion) { cache.put(key, result); } } return result; } } return defaultValue; } private <T> Cache<String, T> newCache() { Cache<String, T> cache = CacheBuilder.newBuilder() .maximumSize(m_configUtil.getMaxConfigCacheSize()) .expireAfterAccess(m_configUtil.getConfigCacheExpireTime(), m_configUtil.getConfigCacheExpireTimeUnit()) .build(); allCaches.add(cache); return cache; } /** * Clear config cache */ protected void clearConfigCache() { synchronized (this) { for (Cache c : allCaches) { if (c != null) { c.invalidateAll(); } } m_configVersion.incrementAndGet(); } } /** * @param changes map's key is config property's key */ protected void fireConfigChange(String namespace, Map<String, ConfigChange> changes) { final Set<String> changedKeys = changes.keySet(); final List<ConfigChangeListener> listeners = this.findMatchedConfigChangeListeners(changedKeys); // notify those listeners for (ConfigChangeListener listener : listeners) { Set<String> interestedChangedKeys = resolveInterestedChangedKeys(listener, changedKeys); InterestedConfigChangeEvent interestedConfigChangeEvent = new InterestedConfigChangeEvent( namespace, changes, interestedChangedKeys); this.notifyAsync(listener, interestedConfigChangeEvent); } } /** * Fire the listeners by event. */ protected void fireConfigChange(final ConfigChangeEvent changeEvent) { final List<ConfigChangeListener> listeners = this .findMatchedConfigChangeListeners(changeEvent.changedKeys()); // notify those listeners for (ConfigChangeListener listener : listeners) { this.notifyAsync(listener, changeEvent); } } private List<ConfigChangeListener> findMatchedConfigChangeListeners(Set<String> changedKeys) { final List<ConfigChangeListener> configChangeListeners = new ArrayList<>(); for (ConfigChangeListener configChangeListener : this.m_listeners) { // check whether the listener is interested in this change event if (this.isConfigChangeListenerInterested(configChangeListener, changedKeys)) { configChangeListeners.add(configChangeListener); } } return configChangeListeners; } private void notifyAsync(final ConfigChangeListener listener, final ConfigChangeEvent changeEvent) { m_executorService.submit(new Runnable() { @Override public void run() { String listenerName = listener.getClass().getName(); Transaction transaction = Tracer.newTransaction("Apollo.ConfigChangeListener", listenerName); try { listener.onChange(changeEvent); transaction.setStatus(Transaction.SUCCESS); } catch (Throwable ex) { transaction.setStatus(ex); Tracer.logError(ex); logger.error("Failed to invoke config change listener {}", listenerName, ex); } finally { transaction.complete(); } } }); } private boolean isConfigChangeListenerInterested(ConfigChangeListener configChangeListener, Set<String> changedKeys) { Set<String> interestedKeys = m_interestedKeys.get(configChangeListener); Set<String> interestedKeyPrefixes = m_interestedKeyPrefixes.get(configChangeListener); if ((interestedKeys == null || interestedKeys.isEmpty()) && (interestedKeyPrefixes == null || interestedKeyPrefixes.isEmpty())) { return true; // no interested keys means interested in all keys } if (interestedKeys != null) { for (String interestedKey : interestedKeys) { if (changedKeys.contains(interestedKey)) { return true; } } } if (interestedKeyPrefixes != null) { for (String prefix : interestedKeyPrefixes) { for (final String changedKey : changedKeys) { if (changedKey.startsWith(prefix)) { return true; } } } } return false; } private Set<String> resolveInterestedChangedKeys(ConfigChangeListener configChangeListener, Set<String> changedKeys) { Set<String> interestedChangedKeys = new HashSet<>(); if (this.m_interestedKeys.containsKey(configChangeListener)) { Set<String> interestedKeys = this.m_interestedKeys.get(configChangeListener); for (String interestedKey : interestedKeys) { if (changedKeys.contains(interestedKey)) { interestedChangedKeys.add(interestedKey); } } } if (this.m_interestedKeyPrefixes.containsKey(configChangeListener)) { Set<String> interestedKeyPrefixes = this.m_interestedKeyPrefixes.get(configChangeListener); for (String interestedKeyPrefix : interestedKeyPrefixes) { for (String changedKey : changedKeys) { if (changedKey.startsWith(interestedKeyPrefix)) { interestedChangedKeys.add(changedKey); } } } } return Collections.unmodifiableSet(interestedChangedKeys); } List<ConfigChange> calcPropertyChanges(String namespace, Properties previous, Properties current) { if (previous == null) { previous = propertiesFactory.getPropertiesInstance(); } if (current == null) { current = propertiesFactory.getPropertiesInstance(); } Set<String> previousKeys = previous.stringPropertyNames(); Set<String> currentKeys = current.stringPropertyNames(); Set<String> commonKeys = Sets.intersection(previousKeys, currentKeys); Set<String> newKeys = Sets.difference(currentKeys, commonKeys); Set<String> removedKeys = Sets.difference(previousKeys, commonKeys); List<ConfigChange> changes = Lists.newArrayList(); for (String newKey : newKeys) { changes.add(new ConfigChange(namespace, newKey, null, current.getProperty(newKey), PropertyChangeType.ADDED)); } for (String removedKey : removedKeys) { changes.add(new ConfigChange(namespace, removedKey, previous.getProperty(removedKey), null, PropertyChangeType.DELETED)); } for (String commonKey : commonKeys) { String previousValue = previous.getProperty(commonKey); String currentValue = current.getProperty(commonKey); if (Objects.equal(previousValue, currentValue)) { continue; } changes.add(new ConfigChange(namespace, commonKey, previousValue, currentValue, PropertyChangeType.MODIFIED)); } return changes; } }
1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-client/src/main/java/com/ctrip/framework/apollo/internals/DefaultConfig.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.internals; import com.ctrip.framework.apollo.core.utils.DeferredLoggerFactory; import com.ctrip.framework.apollo.enums.ConfigSourceType; import java.io.IOException; import java.io.InputStream; import java.util.Collections; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Objects; import java.util.Properties; import java.util.Set; import java.util.concurrent.atomic.AtomicReference; import org.slf4j.Logger; import com.ctrip.framework.apollo.core.utils.ClassLoaderUtil; import com.ctrip.framework.apollo.enums.PropertyChangeType; import com.ctrip.framework.apollo.model.ConfigChange; import com.ctrip.framework.apollo.model.ConfigChangeEvent; import com.ctrip.framework.apollo.tracer.Tracer; import com.ctrip.framework.apollo.util.ExceptionUtil; import com.google.common.collect.ImmutableMap; import com.google.common.util.concurrent.RateLimiter; /** * @author Jason Song([email protected]) */ public class DefaultConfig extends AbstractConfig implements RepositoryChangeListener { private static final Logger logger = DeferredLoggerFactory.getLogger(DefaultConfig.class); private final String m_namespace; private final Properties m_resourceProperties; private final AtomicReference<Properties> m_configProperties; private final ConfigRepository m_configRepository; private final RateLimiter m_warnLogRateLimiter; private volatile ConfigSourceType m_sourceType = ConfigSourceType.NONE; /** * Constructor. * * @param namespace the namespace of this config instance * @param configRepository the config repository for this config instance */ public DefaultConfig(String namespace, ConfigRepository configRepository) { m_namespace = namespace; m_resourceProperties = loadFromResource(m_namespace); m_configRepository = configRepository; m_configProperties = new AtomicReference<>(); m_warnLogRateLimiter = RateLimiter.create(0.017); // 1 warning log output per minute initialize(); } private void initialize() { try { updateConfig(m_configRepository.getConfig(), m_configRepository.getSourceType()); } catch (Throwable ex) { Tracer.logError(ex); logger.warn("Init Apollo Local Config failed - namespace: {}, reason: {}.", m_namespace, ExceptionUtil.getDetailMessage(ex)); } finally { //register the change listener no matter config repository is working or not //so that whenever config repository is recovered, config could get changed m_configRepository.addChangeListener(this); } } @Override public String getProperty(String key, String defaultValue) { // step 1: check system properties, i.e. -Dkey=value String value = System.getProperty(key); // step 2: check local cached properties file if (value == null && m_configProperties.get() != null) { value = m_configProperties.get().getProperty(key); } /** * step 3: check env variable, i.e. PATH=... * normally system environment variables are in UPPERCASE, however there might be exceptions. * so the caller should provide the key in the right case */ if (value == null) { value = System.getenv(key); } // step 4: check properties file from classpath if (value == null && m_resourceProperties != null) { value = m_resourceProperties.getProperty(key); } if (value == null && m_configProperties.get() == null && m_warnLogRateLimiter.tryAcquire()) { logger.warn( "Could not load config for namespace {} from Apollo, please check whether the configs are released in Apollo! Return default value now!", m_namespace); } return value == null ? defaultValue : value; } @Override public Set<String> getPropertyNames() { Properties properties = m_configProperties.get(); if (properties == null) { return Collections.emptySet(); } return stringPropertyNames(properties); } @Override public ConfigSourceType getSourceType() { return m_sourceType; } private Set<String> stringPropertyNames(Properties properties) { //jdk9以下版本Properties#enumerateStringProperties方法存在性能问题,keys() + get(k) 重复迭代, jdk9之后改为entrySet遍历. Map<String, String> h = new LinkedHashMap<>(); for (Map.Entry<Object, Object> e : properties.entrySet()) { Object k = e.getKey(); Object v = e.getValue(); if (k instanceof String && v instanceof String) { h.put((String) k, (String) v); } } return h.keySet(); } @Override public synchronized void onRepositoryChange(String namespace, Properties newProperties) { if (newProperties.equals(m_configProperties.get())) { return; } ConfigSourceType sourceType = m_configRepository.getSourceType(); Properties newConfigProperties = propertiesFactory.getPropertiesInstance(); newConfigProperties.putAll(newProperties); Map<String, ConfigChange> actualChanges = updateAndCalcConfigChanges(newConfigProperties, sourceType); //check double checked result if (actualChanges.isEmpty()) { return; } this.fireConfigChange(new ConfigChangeEvent(m_namespace, actualChanges)); Tracer.logEvent("Apollo.Client.ConfigChanges", m_namespace); } private void updateConfig(Properties newConfigProperties, ConfigSourceType sourceType) { m_configProperties.set(newConfigProperties); m_sourceType = sourceType; } private Map<String, ConfigChange> updateAndCalcConfigChanges(Properties newConfigProperties, ConfigSourceType sourceType) { List<ConfigChange> configChanges = calcPropertyChanges(m_namespace, m_configProperties.get(), newConfigProperties); ImmutableMap.Builder<String, ConfigChange> actualChanges = new ImmutableMap.Builder<>(); /** === Double check since DefaultConfig has multiple config sources ==== **/ //1. use getProperty to update configChanges's old value for (ConfigChange change : configChanges) { change.setOldValue(this.getProperty(change.getPropertyName(), change.getOldValue())); } //2. update m_configProperties updateConfig(newConfigProperties, sourceType); clearConfigCache(); //3. use getProperty to update configChange's new value and calc the final changes for (ConfigChange change : configChanges) { change.setNewValue(this.getProperty(change.getPropertyName(), change.getNewValue())); switch (change.getChangeType()) { case ADDED: if (Objects.equals(change.getOldValue(), change.getNewValue())) { break; } if (change.getOldValue() != null) { change.setChangeType(PropertyChangeType.MODIFIED); } actualChanges.put(change.getPropertyName(), change); break; case MODIFIED: if (!Objects.equals(change.getOldValue(), change.getNewValue())) { actualChanges.put(change.getPropertyName(), change); } break; case DELETED: if (Objects.equals(change.getOldValue(), change.getNewValue())) { break; } if (change.getNewValue() != null) { change.setChangeType(PropertyChangeType.MODIFIED); } actualChanges.put(change.getPropertyName(), change); break; default: //do nothing break; } } return actualChanges.build(); } private Properties loadFromResource(String namespace) { String name = String.format("META-INF/config/%s.properties", namespace); InputStream in = ClassLoaderUtil.getLoader().getResourceAsStream(name); Properties properties = null; if (in != null) { properties = propertiesFactory.getPropertiesInstance(); try { properties.load(in); } catch (IOException ex) { Tracer.logError(ex); logger.error("Load resource config for namespace {} failed", namespace, ex); } finally { try { in.close(); } catch (IOException ex) { // ignore } } } return properties; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.internals; import com.ctrip.framework.apollo.core.utils.DeferredLoggerFactory; import com.ctrip.framework.apollo.enums.ConfigSourceType; import java.io.IOException; import java.io.InputStream; import java.util.Collections; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Objects; import java.util.Properties; import java.util.Set; import java.util.concurrent.atomic.AtomicReference; import org.slf4j.Logger; import com.ctrip.framework.apollo.core.utils.ClassLoaderUtil; import com.ctrip.framework.apollo.enums.PropertyChangeType; import com.ctrip.framework.apollo.model.ConfigChange; import com.ctrip.framework.apollo.tracer.Tracer; import com.ctrip.framework.apollo.util.ExceptionUtil; import com.google.common.collect.ImmutableMap; import com.google.common.util.concurrent.RateLimiter; /** * @author Jason Song([email protected]) */ public class DefaultConfig extends AbstractConfig implements RepositoryChangeListener { private static final Logger logger = DeferredLoggerFactory.getLogger(DefaultConfig.class); private final String m_namespace; private final Properties m_resourceProperties; private final AtomicReference<Properties> m_configProperties; private final ConfigRepository m_configRepository; private final RateLimiter m_warnLogRateLimiter; private volatile ConfigSourceType m_sourceType = ConfigSourceType.NONE; /** * Constructor. * * @param namespace the namespace of this config instance * @param configRepository the config repository for this config instance */ public DefaultConfig(String namespace, ConfigRepository configRepository) { m_namespace = namespace; m_resourceProperties = loadFromResource(m_namespace); m_configRepository = configRepository; m_configProperties = new AtomicReference<>(); m_warnLogRateLimiter = RateLimiter.create(0.017); // 1 warning log output per minute initialize(); } private void initialize() { try { updateConfig(m_configRepository.getConfig(), m_configRepository.getSourceType()); } catch (Throwable ex) { Tracer.logError(ex); logger.warn("Init Apollo Local Config failed - namespace: {}, reason: {}.", m_namespace, ExceptionUtil.getDetailMessage(ex)); } finally { //register the change listener no matter config repository is working or not //so that whenever config repository is recovered, config could get changed m_configRepository.addChangeListener(this); } } @Override public String getProperty(String key, String defaultValue) { // step 1: check system properties, i.e. -Dkey=value String value = System.getProperty(key); // step 2: check local cached properties file if (value == null && m_configProperties.get() != null) { value = m_configProperties.get().getProperty(key); } /** * step 3: check env variable, i.e. PATH=... * normally system environment variables are in UPPERCASE, however there might be exceptions. * so the caller should provide the key in the right case */ if (value == null) { value = System.getenv(key); } // step 4: check properties file from classpath if (value == null && m_resourceProperties != null) { value = m_resourceProperties.getProperty(key); } if (value == null && m_configProperties.get() == null && m_warnLogRateLimiter.tryAcquire()) { logger.warn( "Could not load config for namespace {} from Apollo, please check whether the configs are released in Apollo! Return default value now!", m_namespace); } return value == null ? defaultValue : value; } @Override public Set<String> getPropertyNames() { Properties properties = m_configProperties.get(); if (properties == null) { return Collections.emptySet(); } return stringPropertyNames(properties); } @Override public ConfigSourceType getSourceType() { return m_sourceType; } private Set<String> stringPropertyNames(Properties properties) { //jdk9以下版本Properties#enumerateStringProperties方法存在性能问题,keys() + get(k) 重复迭代, jdk9之后改为entrySet遍历. Map<String, String> h = new LinkedHashMap<>(); for (Map.Entry<Object, Object> e : properties.entrySet()) { Object k = e.getKey(); Object v = e.getValue(); if (k instanceof String && v instanceof String) { h.put((String) k, (String) v); } } return h.keySet(); } @Override public synchronized void onRepositoryChange(String namespace, Properties newProperties) { if (newProperties.equals(m_configProperties.get())) { return; } ConfigSourceType sourceType = m_configRepository.getSourceType(); Properties newConfigProperties = propertiesFactory.getPropertiesInstance(); newConfigProperties.putAll(newProperties); Map<String, ConfigChange> actualChanges = updateAndCalcConfigChanges(newConfigProperties, sourceType); //check double checked result if (actualChanges.isEmpty()) { return; } this.fireConfigChange(m_namespace, actualChanges); Tracer.logEvent("Apollo.Client.ConfigChanges", m_namespace); } private void updateConfig(Properties newConfigProperties, ConfigSourceType sourceType) { m_configProperties.set(newConfigProperties); m_sourceType = sourceType; } private Map<String, ConfigChange> updateAndCalcConfigChanges(Properties newConfigProperties, ConfigSourceType sourceType) { List<ConfigChange> configChanges = calcPropertyChanges(m_namespace, m_configProperties.get(), newConfigProperties); ImmutableMap.Builder<String, ConfigChange> actualChanges = new ImmutableMap.Builder<>(); /** === Double check since DefaultConfig has multiple config sources ==== **/ //1. use getProperty to update configChanges's old value for (ConfigChange change : configChanges) { change.setOldValue(this.getProperty(change.getPropertyName(), change.getOldValue())); } //2. update m_configProperties updateConfig(newConfigProperties, sourceType); clearConfigCache(); //3. use getProperty to update configChange's new value and calc the final changes for (ConfigChange change : configChanges) { change.setNewValue(this.getProperty(change.getPropertyName(), change.getNewValue())); switch (change.getChangeType()) { case ADDED: if (Objects.equals(change.getOldValue(), change.getNewValue())) { break; } if (change.getOldValue() != null) { change.setChangeType(PropertyChangeType.MODIFIED); } actualChanges.put(change.getPropertyName(), change); break; case MODIFIED: if (!Objects.equals(change.getOldValue(), change.getNewValue())) { actualChanges.put(change.getPropertyName(), change); } break; case DELETED: if (Objects.equals(change.getOldValue(), change.getNewValue())) { break; } if (change.getNewValue() != null) { change.setChangeType(PropertyChangeType.MODIFIED); } actualChanges.put(change.getPropertyName(), change); break; default: //do nothing break; } } return actualChanges.build(); } private Properties loadFromResource(String namespace) { String name = String.format("META-INF/config/%s.properties", namespace); InputStream in = ClassLoaderUtil.getLoader().getResourceAsStream(name); Properties properties = null; if (in != null) { properties = propertiesFactory.getPropertiesInstance(); try { properties.load(in); } catch (IOException ex) { Tracer.logError(ex); logger.error("Load resource config for namespace {} failed", namespace, ex); } finally { try { in.close(); } catch (IOException ex) { // ignore } } } return properties; } }
1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-client/src/main/java/com/ctrip/framework/apollo/internals/SimpleConfig.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.internals; import com.ctrip.framework.apollo.enums.ConfigSourceType; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.Properties; import java.util.Set; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.ctrip.framework.apollo.model.ConfigChange; import com.ctrip.framework.apollo.model.ConfigChangeEvent; import com.ctrip.framework.apollo.tracer.Tracer; import com.ctrip.framework.apollo.util.ExceptionUtil; import com.google.common.base.Function; import com.google.common.collect.Maps; /** * @author Jason Song([email protected]) */ public class SimpleConfig extends AbstractConfig implements RepositoryChangeListener { private static final Logger logger = LoggerFactory.getLogger(SimpleConfig.class); private final String m_namespace; private final ConfigRepository m_configRepository; private volatile Properties m_configProperties; private volatile ConfigSourceType m_sourceType = ConfigSourceType.NONE; /** * Constructor. * * @param namespace the namespace for this config instance * @param configRepository the config repository for this config instance */ public SimpleConfig(String namespace, ConfigRepository configRepository) { m_namespace = namespace; m_configRepository = configRepository; this.initialize(); } private void initialize() { try { updateConfig(m_configRepository.getConfig(), m_configRepository.getSourceType()); } catch (Throwable ex) { Tracer.logError(ex); logger.warn("Init Apollo Simple Config failed - namespace: {}, reason: {}", m_namespace, ExceptionUtil.getDetailMessage(ex)); } finally { //register the change listener no matter config repository is working or not //so that whenever config repository is recovered, config could get changed m_configRepository.addChangeListener(this); } } @Override public String getProperty(String key, String defaultValue) { if (m_configProperties == null) { logger.warn("Could not load config from Apollo, always return default value!"); return defaultValue; } return this.m_configProperties.getProperty(key, defaultValue); } @Override public Set<String> getPropertyNames() { if (m_configProperties == null) { return Collections.emptySet(); } return m_configProperties.stringPropertyNames(); } @Override public ConfigSourceType getSourceType() { return m_sourceType; } @Override public synchronized void onRepositoryChange(String namespace, Properties newProperties) { if (newProperties.equals(m_configProperties)) { return; } Properties newConfigProperties = propertiesFactory.getPropertiesInstance(); newConfigProperties.putAll(newProperties); List<ConfigChange> changes = calcPropertyChanges(namespace, m_configProperties, newConfigProperties); Map<String, ConfigChange> changeMap = Maps.uniqueIndex(changes, new Function<ConfigChange, String>() { @Override public String apply(ConfigChange input) { return input.getPropertyName(); } }); updateConfig(newConfigProperties, m_configRepository.getSourceType()); clearConfigCache(); this.fireConfigChange(new ConfigChangeEvent(m_namespace, changeMap)); Tracer.logEvent("Apollo.Client.ConfigChanges", m_namespace); } private void updateConfig(Properties newConfigProperties, ConfigSourceType sourceType) { m_configProperties = newConfigProperties; m_sourceType = sourceType; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.internals; import com.ctrip.framework.apollo.enums.ConfigSourceType; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.Properties; import java.util.Set; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.ctrip.framework.apollo.model.ConfigChange; import com.ctrip.framework.apollo.tracer.Tracer; import com.ctrip.framework.apollo.util.ExceptionUtil; import com.google.common.base.Function; import com.google.common.collect.Maps; /** * @author Jason Song([email protected]) */ public class SimpleConfig extends AbstractConfig implements RepositoryChangeListener { private static final Logger logger = LoggerFactory.getLogger(SimpleConfig.class); private final String m_namespace; private final ConfigRepository m_configRepository; private volatile Properties m_configProperties; private volatile ConfigSourceType m_sourceType = ConfigSourceType.NONE; /** * Constructor. * * @param namespace the namespace for this config instance * @param configRepository the config repository for this config instance */ public SimpleConfig(String namespace, ConfigRepository configRepository) { m_namespace = namespace; m_configRepository = configRepository; this.initialize(); } private void initialize() { try { updateConfig(m_configRepository.getConfig(), m_configRepository.getSourceType()); } catch (Throwable ex) { Tracer.logError(ex); logger.warn("Init Apollo Simple Config failed - namespace: {}, reason: {}", m_namespace, ExceptionUtil.getDetailMessage(ex)); } finally { //register the change listener no matter config repository is working or not //so that whenever config repository is recovered, config could get changed m_configRepository.addChangeListener(this); } } @Override public String getProperty(String key, String defaultValue) { if (m_configProperties == null) { logger.warn("Could not load config from Apollo, always return default value!"); return defaultValue; } return this.m_configProperties.getProperty(key, defaultValue); } @Override public Set<String> getPropertyNames() { if (m_configProperties == null) { return Collections.emptySet(); } return m_configProperties.stringPropertyNames(); } @Override public ConfigSourceType getSourceType() { return m_sourceType; } @Override public synchronized void onRepositoryChange(String namespace, Properties newProperties) { if (newProperties.equals(m_configProperties)) { return; } Properties newConfigProperties = propertiesFactory.getPropertiesInstance(); newConfigProperties.putAll(newProperties); List<ConfigChange> changes = calcPropertyChanges(namespace, m_configProperties, newConfigProperties); Map<String, ConfigChange> changeMap = Maps.uniqueIndex(changes, new Function<ConfigChange, String>() { @Override public String apply(ConfigChange input) { return input.getPropertyName(); } }); updateConfig(newConfigProperties, m_configRepository.getSourceType()); clearConfigCache(); this.fireConfigChange(m_namespace, changeMap); Tracer.logEvent("Apollo.Client.ConfigChanges", m_namespace); } private void updateConfig(Properties newConfigProperties, ConfigSourceType sourceType) { m_configProperties = newConfigProperties; m_sourceType = sourceType; } }
1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-client/src/main/java/com/ctrip/framework/apollo/model/ConfigChangeEvent.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.model; import java.util.Map; import java.util.Set; /** * A change event when a namespace's config is changed. * @author Jason Song([email protected]) */ public class ConfigChangeEvent { private final String m_namespace; private final Map<String, ConfigChange> m_changes; /** * Constructor. * @param namespace the namespace of this change * @param changes the actual changes */ public ConfigChangeEvent(String namespace, Map<String, ConfigChange> changes) { m_namespace = namespace; m_changes = changes; } /** * Get the keys changed. * @return the list of the keys */ public Set<String> changedKeys() { return m_changes.keySet(); } /** * Get a specific change instance for the key specified. * @param key the changed key * @return the change instance */ public ConfigChange getChange(String key) { return m_changes.get(key); } /** * Check whether the specified key is changed * @param key the key * @return true if the key is changed, false otherwise. */ public boolean isChanged(String key) { return m_changes.containsKey(key); } /** * Get the namespace of this change event. * @return the namespace */ public String getNamespace() { return m_namespace; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.model; import java.util.Collections; import java.util.Map; import java.util.Set; /** * A change event when a namespace's config is changed. * @author Jason Song([email protected]) */ public class ConfigChangeEvent { private final String m_namespace; private final Map<String, ConfigChange> m_changes; /** * Constructor. * @param namespace the namespace of this change * @param changes the actual changes */ public ConfigChangeEvent(String namespace, Map<String, ConfigChange> changes) { this.m_namespace = namespace; this.m_changes = changes; } /** * Get the keys changed. * @return the list of the keys */ public Set<String> changedKeys() { return m_changes.keySet(); } /** * Maybe subclass override this method. * * @return interested and changed keys */ public Set<String> interestedChangedKeys() { return Collections.emptySet(); } /** * Get a specific change instance for the key specified. * @param key the changed key * @return the change instance */ public ConfigChange getChange(String key) { return m_changes.get(key); } /** * Check whether the specified key is changed * @param key the key * @return true if the key is changed, false otherwise. */ public boolean isChanged(String key) { return m_changes.containsKey(key); } /** * Get the namespace of this change event. * @return the namespace */ public String getNamespace() { return m_namespace; } }
1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-client/src/test/java/com/ctrip/framework/apollo/internals/DefaultConfigTest.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.internals; import static org.awaitility.Awaitility.await; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import com.ctrip.framework.apollo.enums.ConfigSourceType; import com.ctrip.framework.apollo.util.OrderedProperties; import com.ctrip.framework.apollo.util.factory.PropertiesFactory; import com.google.common.collect.Maps; import com.google.common.collect.Sets; import java.io.File; import java.util.Calendar; import java.util.Date; import java.util.Map; import java.util.Properties; import java.util.Set; import java.util.Collections; import java.util.List; import java.util.concurrent.TimeUnit; import com.google.common.base.Function; import com.google.common.base.Splitter; import com.google.common.collect.Lists; import org.awaitility.core.ThrowingRunnable; import org.junit.After; import org.junit.Before; import org.junit.Test; import com.ctrip.framework.apollo.Config; import com.ctrip.framework.apollo.ConfigChangeListener; import com.ctrip.framework.apollo.build.MockInjector; import com.ctrip.framework.apollo.core.utils.ClassLoaderUtil; import com.ctrip.framework.apollo.enums.PropertyChangeType; import com.ctrip.framework.apollo.model.ConfigChange; import com.ctrip.framework.apollo.model.ConfigChangeEvent; import com.ctrip.framework.apollo.util.ConfigUtil; import com.google.common.base.Charsets; import com.google.common.base.Joiner; import com.google.common.collect.ImmutableMap; import com.google.common.io.Files; import com.google.common.util.concurrent.SettableFuture; import org.mockito.invocation.InvocationOnMock; import org.mockito.stubbing.Answer; /** * @author Jason Song([email protected]) */ public class DefaultConfigTest { private File someResourceDir; private String someNamespace; private ConfigRepository configRepository; private Properties someProperties; private ConfigSourceType someSourceType; private PropertiesFactory propertiesFactory; @Before public void setUp() throws Exception { MockInjector.setInstance(ConfigUtil.class, new MockConfigUtil()); propertiesFactory = mock(PropertiesFactory.class); when(propertiesFactory.getPropertiesInstance()).thenAnswer(new Answer<Properties>() { @Override public Properties answer(InvocationOnMock invocation) { return new Properties(); } }); MockInjector.setInstance(PropertiesFactory.class, propertiesFactory); someResourceDir = new File(ClassLoaderUtil.getClassPath() + "/META-INF/config"); someResourceDir.mkdirs(); someNamespace = "someName"; configRepository = mock(ConfigRepository.class); } @After public void tearDown() throws Exception { MockInjector.reset(); recursiveDelete(someResourceDir); } //helper method to clean created files private void recursiveDelete(File file) { if (!file.exists()) { return; } if (file.isDirectory()) { for (File f : file.listFiles()) { recursiveDelete(f); } } file.delete(); } @Test public void testGetPropertyWithAllPropertyHierarchy() throws Exception { String someKey = "someKey"; String someSystemPropertyValue = "system-property-value"; String anotherKey = "anotherKey"; String someLocalFileValue = "local-file-value"; String lastKey = "lastKey"; String someResourceValue = "resource-value"; //set up system property System.setProperty(someKey, someSystemPropertyValue); //set up config repo someProperties = new Properties(); someProperties.setProperty(someKey, someLocalFileValue); someProperties.setProperty(anotherKey, someLocalFileValue); when(configRepository.getConfig()).thenReturn(someProperties); someSourceType = ConfigSourceType.LOCAL; when(configRepository.getSourceType()).thenReturn(someSourceType); //set up resource file File resourceFile = new File(someResourceDir, someNamespace + ".properties"); Files.write(someKey + "=" + someResourceValue, resourceFile, Charsets.UTF_8); Files.append(System.getProperty("line.separator"), resourceFile, Charsets.UTF_8); Files.append(anotherKey + "=" + someResourceValue, resourceFile, Charsets.UTF_8); Files.append(System.getProperty("line.separator"), resourceFile, Charsets.UTF_8); Files.append(lastKey + "=" + someResourceValue, resourceFile, Charsets.UTF_8); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); String someKeyValue = defaultConfig.getProperty(someKey, null); String anotherKeyValue = defaultConfig.getProperty(anotherKey, null); String lastKeyValue = defaultConfig.getProperty(lastKey, null); //clean up System.clearProperty(someKey); assertEquals(someSystemPropertyValue, someKeyValue); assertEquals(someLocalFileValue, anotherKeyValue); assertEquals(someResourceValue, lastKeyValue); assertEquals(someSourceType, defaultConfig.getSourceType()); } @Test public void testGetIntProperty() throws Exception { String someStringKey = "someStringKey"; String someStringValue = "someStringValue"; String someKey = "someKey"; Integer someValue = 2; Integer someDefaultValue = -1; //set up config repo someProperties = new Properties(); someProperties.setProperty(someStringKey, someStringValue); someProperties.setProperty(someKey, String.valueOf(someValue)); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(someValue, defaultConfig.getIntProperty(someKey, someDefaultValue)); assertEquals(someDefaultValue, defaultConfig.getIntProperty(someStringKey, someDefaultValue)); } @Test public void testGetIntPropertyMultipleTimesWithCache() throws Exception { String someKey = "someKey"; Integer someValue = 2; Integer someDefaultValue = -1; //set up config repo someProperties = mock(Properties.class); when(someProperties.getProperty(someKey)).thenReturn(String.valueOf(someValue)); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(someValue, defaultConfig.getIntProperty(someKey, someDefaultValue)); assertEquals(someValue, defaultConfig.getIntProperty(someKey, someDefaultValue)); assertEquals(someValue, defaultConfig.getIntProperty(someKey, someDefaultValue)); verify(someProperties, times(1)).getProperty(someKey); } @Test public void testGetIntPropertyMultipleTimesWithPropertyChanges() throws Exception { String someKey = "someKey"; Integer someValue = 2; Integer anotherValue = 3; Integer someDefaultValue = -1; //set up config repo someProperties = new Properties(); someProperties.setProperty(someKey, String.valueOf(someValue)); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(someValue, defaultConfig.getIntProperty(someKey, someDefaultValue)); Properties anotherProperties = new Properties(); anotherProperties.setProperty(someKey, String.valueOf(anotherValue)); defaultConfig.onRepositoryChange(someNamespace, anotherProperties); assertEquals(anotherValue, defaultConfig.getIntProperty(someKey, someDefaultValue)); } @Test public void testGetIntPropertyMultipleTimesWithSmallCache() throws Exception { String someKey = "someKey"; Integer someValue = 2; String anotherKey = "anotherKey"; Integer anotherValue = 3; Integer someDefaultValue = -1; MockInjector.setInstance(ConfigUtil.class, new MockConfigUtilWithSmallCache()); //set up config repo someProperties = mock(Properties.class); when(someProperties.getProperty(someKey)).thenReturn(String.valueOf(someValue)); when(someProperties.getProperty(anotherKey)).thenReturn(String.valueOf(anotherValue)); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(someValue, defaultConfig.getIntProperty(someKey, someDefaultValue)); assertEquals(someValue, defaultConfig.getIntProperty(someKey, someDefaultValue)); verify(someProperties, times(1)).getProperty(someKey); assertEquals(anotherValue, defaultConfig.getIntProperty(anotherKey, someDefaultValue)); assertEquals(anotherValue, defaultConfig.getIntProperty(anotherKey, someDefaultValue)); verify(someProperties, times(1)).getProperty(anotherKey); assertEquals(someValue, defaultConfig.getIntProperty(someKey, someDefaultValue)); verify(someProperties, times(2)).getProperty(someKey); } @Test public void testGetIntPropertyMultipleTimesWithShortExpireTime() throws Exception { final String someKey = "someKey"; final Integer someValue = 2; final Integer someDefaultValue = -1; MockInjector.setInstance(ConfigUtil.class, new MockConfigUtilWithShortExpireTime()); //set up config repo someProperties = mock(Properties.class); when(someProperties.getProperty(someKey)).thenReturn(String.valueOf(someValue)); when(configRepository.getConfig()).thenReturn(someProperties); final DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(someValue, defaultConfig.getIntProperty(someKey, someDefaultValue)); assertEquals(someValue, defaultConfig.getIntProperty(someKey, someDefaultValue)); verify(someProperties, times(1)).getProperty(someKey); await().atMost(500, TimeUnit.MILLISECONDS).untilAsserted(new ThrowingRunnable() { @Override public void run() throws Throwable { assertEquals(someValue, defaultConfig.getIntProperty(someKey, someDefaultValue)); assertEquals(someValue, defaultConfig.getIntProperty(someKey, someDefaultValue)); verify(someProperties, times(2)).getProperty(someKey); } }); } @Test public void testGetLongProperty() throws Exception { String someStringKey = "someStringKey"; String someStringValue = "someStringValue"; String someKey = "someKey"; Long someValue = 2L; Long someDefaultValue = -1L; //set up config repo someProperties = new Properties(); someProperties.setProperty(someStringKey, someStringValue); someProperties.setProperty(someKey, String.valueOf(someValue)); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(someValue, defaultConfig.getLongProperty(someKey, someDefaultValue)); assertEquals(someDefaultValue, defaultConfig.getLongProperty(someStringKey, someDefaultValue)); } @Test public void testGetShortProperty() throws Exception { String someStringKey = "someStringKey"; String someStringValue = "someStringValue"; String someKey = "someKey"; Short someValue = 2; Short someDefaultValue = -1; //set up config repo someProperties = new Properties(); someProperties.setProperty(someStringKey, someStringValue); someProperties.setProperty(someKey, String.valueOf(someValue)); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(someValue, defaultConfig.getShortProperty(someKey, someDefaultValue)); assertEquals(someDefaultValue, defaultConfig.getShortProperty(someStringKey, someDefaultValue)); } @Test public void testGetFloatProperty() throws Exception { String someStringKey = "someStringKey"; String someStringValue = "someStringValue"; String someKey = "someKey"; Float someValue = 2.20f; Float someDefaultValue = -1f; //set up config repo someProperties = new Properties(); someProperties.setProperty(someStringKey, someStringValue); someProperties.setProperty(someKey, String.valueOf(someValue)); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(someValue, defaultConfig.getFloatProperty(someKey, someDefaultValue), 0.001); assertEquals(someDefaultValue, defaultConfig.getFloatProperty(someStringKey, someDefaultValue), 0.001); } @Test public void testGetDoubleProperty() throws Exception { String someStringKey = "someStringKey"; String someStringValue = "someStringValue"; String someKey = "someKey"; Double someValue = 2.20d; Double someDefaultValue = -1d; //set up config repo someProperties = new Properties(); someProperties.setProperty(someStringKey, someStringValue); someProperties.setProperty(someKey, String.valueOf(someValue)); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(someValue, defaultConfig.getDoubleProperty(someKey, someDefaultValue), 0.001); assertEquals(someDefaultValue, defaultConfig.getDoubleProperty(someStringKey, someDefaultValue), 0.001); } @Test public void testGetByteProperty() throws Exception { String someStringKey = "someStringKey"; String someStringValue = "someStringValue"; String someKey = "someKey"; Byte someValue = 10; Byte someDefaultValue = -1; //set up config repo someProperties = new Properties(); someProperties.setProperty(someStringKey, someStringValue); someProperties.setProperty(someKey, String.valueOf(someValue)); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(someValue, defaultConfig.getByteProperty(someKey, someDefaultValue)); assertEquals(someDefaultValue, defaultConfig.getByteProperty(someStringKey, someDefaultValue)); } @Test public void testGetBooleanProperty() throws Exception { String someStringKey = "someStringKey"; String someStringValue = "someStringValue"; String someKey = "someKey"; Boolean someValue = true; Boolean someDefaultValue = false; //set up config repo someProperties = new Properties(); someProperties.setProperty(someStringKey, someStringValue); someProperties.setProperty(someKey, String.valueOf(someValue)); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(someValue, defaultConfig.getBooleanProperty(someKey, someDefaultValue)); assertEquals(someDefaultValue, defaultConfig.getBooleanProperty(someStringKey, someDefaultValue)); } @Test public void testGetArrayProperty() throws Exception { String someKey = "someKey"; String someDelimiter = ","; String someInvalidDelimiter = "{"; String[] values = new String[]{"a", "b", "c"}; String someValue = Joiner.on(someDelimiter).join(values); String[] someDefaultValue = new String[]{"1", "2"}; //set up config repo someProperties = new Properties(); someProperties.setProperty(someKey, someValue); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertArrayEquals(values, defaultConfig.getArrayProperty(someKey, someDelimiter, someDefaultValue)); assertArrayEquals(someDefaultValue, defaultConfig.getArrayProperty(someKey, someInvalidDelimiter, someDefaultValue)); } @Test public void testGetArrayPropertyMultipleTimesWithCache() throws Exception { String someKey = "someKey"; String someDelimiter = ","; String someInvalidDelimiter = "{"; String[] values = new String[]{"a", "b", "c"}; String someValue = Joiner.on(someDelimiter).join(values); String[] someDefaultValue = new String[]{"1", "2"}; //set up config repo someProperties = mock(Properties.class); when(someProperties.getProperty(someKey)).thenReturn(someValue); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertArrayEquals(values, defaultConfig.getArrayProperty(someKey, someDelimiter, someDefaultValue)); assertArrayEquals(values, defaultConfig.getArrayProperty(someKey, someDelimiter, someDefaultValue)); verify(someProperties, times(1)).getProperty(someKey); assertArrayEquals(someDefaultValue, defaultConfig.getArrayProperty(someKey, someInvalidDelimiter, someDefaultValue)); assertArrayEquals(someDefaultValue, defaultConfig.getArrayProperty(someKey, someInvalidDelimiter, someDefaultValue)); verify(someProperties, times(3)).getProperty(someKey); } @Test public void testGetArrayPropertyMultipleTimesWithCacheAndValueChanges() throws Exception { String someKey = "someKey"; String someDelimiter = ","; String[] values = new String[]{"a", "b", "c"}; String[] anotherValues = new String[]{"b", "c", "d"}; String someValue = Joiner.on(someDelimiter).join(values); String anotherValue = Joiner.on(someDelimiter).join(anotherValues); String[] someDefaultValue = new String[]{"1", "2"}; //set up config repo someProperties = new Properties(); someProperties.setProperty(someKey, someValue); when(configRepository.getConfig()).thenReturn(someProperties); Properties anotherProperties = new Properties(); anotherProperties.setProperty(someKey, anotherValue); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertArrayEquals(values, defaultConfig.getArrayProperty(someKey, someDelimiter, someDefaultValue)); defaultConfig.onRepositoryChange(someNamespace, anotherProperties); assertArrayEquals(anotherValues, defaultConfig.getArrayProperty(someKey, someDelimiter, someDefaultValue)); } @Test public void testGetDatePropertyWithFormat() throws Exception { Date someDefaultValue = new Date(); Date shortDate = assembleDate(2016, 9, 28, 0, 0, 0, 0); Date mediumDate = assembleDate(2016, 9, 28, 15, 10, 10, 0); Date longDate = assembleDate(2016, 9, 28, 15, 10, 10, 123); //set up config repo someProperties = new Properties(); someProperties.setProperty("shortDateProperty", "2016-09-28"); someProperties.setProperty("mediumDateProperty", "2016-09-28 15:10:10"); someProperties.setProperty("longDateProperty", "2016-09-28 15:10:10.123"); someProperties.setProperty("stringProperty", "someString"); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); checkDatePropertyWithFormat(defaultConfig, shortDate, "shortDateProperty", "yyyy-MM-dd", someDefaultValue); checkDatePropertyWithFormat(defaultConfig, mediumDate, "mediumDateProperty", "yyyy-MM-dd HH:mm:ss", someDefaultValue); checkDatePropertyWithFormat(defaultConfig, shortDate, "mediumDateProperty", "yyyy-MM-dd", someDefaultValue); checkDatePropertyWithFormat(defaultConfig, longDate, "longDateProperty", "yyyy-MM-dd HH:mm:ss.SSS", someDefaultValue); checkDatePropertyWithFormat(defaultConfig, mediumDate, "longDateProperty", "yyyy-MM-dd HH:mm:ss", someDefaultValue); checkDatePropertyWithFormat(defaultConfig, shortDate, "longDateProperty", "yyyy-MM-dd", someDefaultValue); checkDatePropertyWithFormat(defaultConfig, someDefaultValue, "stringProperty", "yyyy-MM-dd", someDefaultValue); } @Test public void testGetDatePropertyWithNoFormat() throws Exception { Date someDefaultValue = new Date(); Date shortDate = assembleDate(2016, 9, 28, 0, 0, 0, 0); Date mediumDate = assembleDate(2016, 9, 28, 15, 10, 10, 0); Date longDate = assembleDate(2016, 9, 28, 15, 10, 10, 123); //set up config repo someProperties = new Properties(); someProperties.setProperty("shortDateProperty", "2016-09-28"); someProperties.setProperty("mediumDateProperty", "2016-09-28 15:10:10"); someProperties.setProperty("longDateProperty", "2016-09-28 15:10:10.123"); someProperties.setProperty("stringProperty", "someString"); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); checkDatePropertyWithoutFormat(defaultConfig, shortDate, "shortDateProperty", someDefaultValue); checkDatePropertyWithoutFormat(defaultConfig, mediumDate, "mediumDateProperty", someDefaultValue); checkDatePropertyWithoutFormat(defaultConfig, longDate, "longDateProperty", someDefaultValue); checkDatePropertyWithoutFormat(defaultConfig, someDefaultValue, "stringProperty", someDefaultValue); } @Test public void testGetEnumProperty() throws Exception { SomeEnum someDefaultValue = SomeEnum.defaultValue; //set up config repo someProperties = new Properties(); someProperties.setProperty("enumProperty", "someValue"); someProperties.setProperty("stringProperty", "someString"); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(SomeEnum.someValue, defaultConfig.getEnumProperty("enumProperty", SomeEnum.class, someDefaultValue)); assertEquals(someDefaultValue, defaultConfig.getEnumProperty("stringProperty", SomeEnum.class, someDefaultValue)); } @Test public void testGetDurationProperty() throws Exception { long someDefaultValue = 1000; long result = 2 * 24 * 3600 * 1000 + 3 * 3600 * 1000 + 4 * 60 * 1000 + 5 * 1000 + 123; //set up config repo someProperties = new Properties(); someProperties.setProperty("durationProperty", "2D3H4m5S123ms"); someProperties.setProperty("stringProperty", "someString"); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(result, defaultConfig.getDurationProperty("durationProperty", someDefaultValue)); assertEquals(someDefaultValue, defaultConfig.getDurationProperty("stringProperty", someDefaultValue)); } @Test public void testOnRepositoryChange() throws Exception { String someKey = "someKey"; String someSystemPropertyValue = "system-property-value"; String anotherKey = "anotherKey"; String someLocalFileValue = "local-file-value"; String keyToBeDeleted = "keyToBeDeleted"; String keyToBeDeletedValue = "keyToBeDeletedValue"; String yetAnotherKey = "yetAnotherKey"; String yetAnotherValue = "yetAnotherValue"; String yetAnotherResourceValue = "yetAnotherResourceValue"; //set up system property System.setProperty(someKey, someSystemPropertyValue); //set up config repo someProperties = new Properties(); someProperties.putAll(ImmutableMap .of(someKey, someLocalFileValue, anotherKey, someLocalFileValue, keyToBeDeleted, keyToBeDeletedValue, yetAnotherKey, yetAnotherValue)); when(configRepository.getConfig()).thenReturn(someProperties); someSourceType = ConfigSourceType.LOCAL; when(configRepository.getSourceType()).thenReturn(someSourceType); //set up resource file File resourceFile = new File(someResourceDir, someNamespace + ".properties"); Files.append(yetAnotherKey + "=" + yetAnotherResourceValue, resourceFile, Charsets.UTF_8); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(someSourceType, defaultConfig.getSourceType()); final SettableFuture<ConfigChangeEvent> configChangeFuture = SettableFuture.create(); ConfigChangeListener someListener = new ConfigChangeListener() { @Override public void onChange(ConfigChangeEvent changeEvent) { configChangeFuture.set(changeEvent); } }; defaultConfig.addChangeListener(someListener); Properties newProperties = new Properties(); String someKeyNewValue = "new-some-value"; String anotherKeyNewValue = "another-new-value"; String newKey = "newKey"; String newValue = "newValue"; newProperties.putAll(ImmutableMap .of(someKey, someKeyNewValue, anotherKey, anotherKeyNewValue, newKey, newValue)); ConfigSourceType anotherSourceType = ConfigSourceType.REMOTE; when(configRepository.getSourceType()).thenReturn(anotherSourceType); defaultConfig.onRepositoryChange(someNamespace, newProperties); ConfigChangeEvent changeEvent = configChangeFuture.get(500, TimeUnit.MILLISECONDS); //clean up System.clearProperty(someKey); assertEquals(someNamespace, changeEvent.getNamespace()); assertEquals(4, changeEvent.changedKeys().size()); ConfigChange anotherKeyChange = changeEvent.getChange(anotherKey); assertEquals(someLocalFileValue, anotherKeyChange.getOldValue()); assertEquals(anotherKeyNewValue, anotherKeyChange.getNewValue()); assertEquals(PropertyChangeType.MODIFIED, anotherKeyChange.getChangeType()); ConfigChange yetAnotherKeyChange = changeEvent.getChange(yetAnotherKey); assertEquals(yetAnotherValue, yetAnotherKeyChange.getOldValue()); assertEquals(yetAnotherResourceValue, yetAnotherKeyChange.getNewValue()); assertEquals(PropertyChangeType.MODIFIED, yetAnotherKeyChange.getChangeType()); ConfigChange keyToBeDeletedChange = changeEvent.getChange(keyToBeDeleted); assertEquals(keyToBeDeletedValue, keyToBeDeletedChange.getOldValue()); assertEquals(null, keyToBeDeletedChange.getNewValue()); assertEquals(PropertyChangeType.DELETED, keyToBeDeletedChange.getChangeType()); ConfigChange newKeyChange = changeEvent.getChange(newKey); assertEquals(null, newKeyChange.getOldValue()); assertEquals(newValue, newKeyChange.getNewValue()); assertEquals(PropertyChangeType.ADDED, newKeyChange.getChangeType()); assertEquals(anotherSourceType, defaultConfig.getSourceType()); } @Test public void testFireConfigChangeWithInterestedKeys() throws Exception { String someKeyChanged = "someKeyChanged"; String anotherKeyChanged = "anotherKeyChanged"; String someKeyNotChanged = "someKeyNotChanged"; String someNamespace = "someNamespace"; Map<String, ConfigChange> changes = Maps.newHashMap(); changes.put(someKeyChanged, mock(ConfigChange.class)); changes.put(anotherKeyChanged, mock(ConfigChange.class)); ConfigChangeEvent someChangeEvent = new ConfigChangeEvent(someNamespace, changes); final SettableFuture<ConfigChangeEvent> interestedInAllKeysFuture = SettableFuture.create(); ConfigChangeListener interestedInAllKeys = new ConfigChangeListener() { @Override public void onChange(ConfigChangeEvent changeEvent) { interestedInAllKeysFuture.set(changeEvent); } }; final SettableFuture<ConfigChangeEvent> interestedInSomeKeyFuture = SettableFuture.create(); ConfigChangeListener interestedInSomeKey = new ConfigChangeListener() { @Override public void onChange(ConfigChangeEvent changeEvent) { interestedInSomeKeyFuture.set(changeEvent); } }; final SettableFuture<ConfigChangeEvent> interestedInSomeKeyNotChangedFuture = SettableFuture.create(); ConfigChangeListener interestedInSomeKeyNotChanged = new ConfigChangeListener() { @Override public void onChange(ConfigChangeEvent changeEvent) { interestedInSomeKeyNotChangedFuture.set(changeEvent); } }; DefaultConfig config = new DefaultConfig(someNamespace, mock(ConfigRepository.class)); config.addChangeListener(interestedInAllKeys); config.addChangeListener(interestedInSomeKey, Sets.newHashSet(someKeyChanged)); config.addChangeListener(interestedInSomeKeyNotChanged, Sets.newHashSet(someKeyNotChanged)); config.fireConfigChange(someChangeEvent); ConfigChangeEvent changeEvent = interestedInAllKeysFuture.get(500, TimeUnit.MILLISECONDS); assertEquals(someChangeEvent, changeEvent); assertEquals(someChangeEvent, interestedInSomeKeyFuture.get(500, TimeUnit.MILLISECONDS)); assertFalse(interestedInSomeKeyNotChangedFuture.isDone()); } @Test public void testRemoveChangeListener() throws Exception { String someNamespace = "someNamespace"; final ConfigChangeEvent someConfigChangeEvent = mock(ConfigChangeEvent.class); ConfigChangeEvent anotherConfigChangeEvent = mock(ConfigChangeEvent.class); final SettableFuture<ConfigChangeEvent> someListenerFuture1 = SettableFuture.create(); final SettableFuture<ConfigChangeEvent> someListenerFuture2 = SettableFuture.create(); ConfigChangeListener someListener = new ConfigChangeListener() { @Override public void onChange(ConfigChangeEvent changeEvent) { if (someConfigChangeEvent == changeEvent) { someListenerFuture1.set(changeEvent); } else { someListenerFuture2.set(changeEvent); } } }; final SettableFuture<ConfigChangeEvent> anotherListenerFuture1 = SettableFuture.create(); final SettableFuture<ConfigChangeEvent> anotherListenerFuture2 = SettableFuture.create(); ConfigChangeListener anotherListener = new ConfigChangeListener() { @Override public void onChange(ConfigChangeEvent changeEvent) { if (someConfigChangeEvent == changeEvent) { anotherListenerFuture1.set(changeEvent); } else { anotherListenerFuture2.set(changeEvent); } } }; ConfigChangeListener yetAnotherListener = mock(ConfigChangeListener.class); DefaultConfig config = new DefaultConfig(someNamespace, mock(ConfigRepository.class)); config.addChangeListener(someListener); config.addChangeListener(anotherListener); config.fireConfigChange(someConfigChangeEvent); assertEquals(someConfigChangeEvent, someListenerFuture1.get(500, TimeUnit.MILLISECONDS)); assertEquals(someConfigChangeEvent, anotherListenerFuture1.get(500, TimeUnit.MILLISECONDS)); assertFalse(config.removeChangeListener(yetAnotherListener)); assertTrue(config.removeChangeListener(someListener)); config.fireConfigChange(anotherConfigChangeEvent); assertEquals(anotherConfigChangeEvent, anotherListenerFuture2.get(500, TimeUnit.MILLISECONDS)); TimeUnit.MILLISECONDS.sleep(100); assertFalse(someListenerFuture2.isDone()); } @Test public void testGetPropertyNames() { String someKeyPrefix = "someKey"; String someValuePrefix = "someValue"; //set up config repo someProperties = new Properties(); for (int i = 0; i < 10; i++) { someProperties.setProperty(someKeyPrefix + i, someValuePrefix + i); } when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); Set<String> propertyNames = defaultConfig.getPropertyNames(); assertEquals(10, propertyNames.size()); assertEquals(someProperties.stringPropertyNames(), propertyNames); } @Test public void testGetPropertyNamesWithOrderedProperties() { String someKeyPrefix = "someKey"; String someValuePrefix = "someValue"; when(propertiesFactory.getPropertiesInstance()).thenAnswer(new Answer<Properties>() { @Override public Properties answer(InvocationOnMock invocation) { return new OrderedProperties(); } }); //set up config repo someProperties = new OrderedProperties(); for (int i = 0; i < 10; i++) { someProperties.setProperty(someKeyPrefix + i, someValuePrefix + i); } when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); Set<String> propertyNames = defaultConfig.getPropertyNames(); assertEquals(10, propertyNames.size()); assertEquals(someProperties.stringPropertyNames(), propertyNames); } @Test public void testGetPropertyNamesWithNullProp() { when(configRepository.getConfig()).thenReturn(null); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); Set<String> propertyNames = defaultConfig.getPropertyNames(); assertEquals(Collections.emptySet(), propertyNames); } @Test public void testGetPropertyWithFunction() throws Exception { String someKey = "someKey"; String someValue = "a,b,c"; String someNullKey = "someNullKey"; //set up config repo someProperties = new Properties(); someProperties.setProperty(someKey, someValue); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(defaultConfig.getProperty(someKey, new Function<String, List<String>>() { @Override public List<String> apply(String s) { return Splitter.on(",").trimResults().omitEmptyStrings().splitToList(s); } }, Lists.<String>newArrayList()), Lists.newArrayList("a", "b", "c")); assertEquals(defaultConfig.getProperty(someNullKey, new Function<String, List<String>>() { @Override public List<String> apply(String s) { return Splitter.on(",").trimResults().omitEmptyStrings().splitToList(s); } }, Lists.<String>newArrayList()), Lists.newArrayList()); } @Test public void testLoadFromRepositoryFailedAndThenRecovered() { String someKey = "someKey"; String someValue = "someValue"; String someDefaultValue = "someDefaultValue"; ConfigSourceType someSourceType = ConfigSourceType.REMOTE; when(configRepository.getConfig()).thenThrow(mock(RuntimeException.class)); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); verify(configRepository, times(1)).addChangeListener(defaultConfig); assertEquals(ConfigSourceType.NONE, defaultConfig.getSourceType()); assertEquals(someDefaultValue, defaultConfig.getProperty(someKey, someDefaultValue)); someProperties = new Properties(); someProperties.setProperty(someKey, someValue); when(configRepository.getSourceType()).thenReturn(someSourceType); defaultConfig.onRepositoryChange(someNamespace, someProperties); assertEquals(someSourceType, defaultConfig.getSourceType()); assertEquals(someValue, defaultConfig.getProperty(someKey, someDefaultValue)); } private void checkDatePropertyWithFormat(Config config, Date expected, String propertyName, String format, Date defaultValue) { assertEquals(expected, config.getDateProperty(propertyName, format, defaultValue)); } private void checkDatePropertyWithoutFormat(Config config, Date expected, String propertyName, Date defaultValue) { assertEquals(expected, config.getDateProperty(propertyName, defaultValue)); } private Date assembleDate(int year, int month, int day, int hour, int minute, int second, int millisecond) { Calendar date = Calendar.getInstance(); date.set(year, month - 1, day, hour, minute, second); //Month in Calendar is 0 based date.set(Calendar.MILLISECOND, millisecond); return date.getTime(); } private enum SomeEnum { someValue, defaultValue } public static class MockConfigUtil extends ConfigUtil { @Override public long getMaxConfigCacheSize() { return 10; } @Override public long getConfigCacheExpireTime() { return 1; } @Override public TimeUnit getConfigCacheExpireTimeUnit() { return TimeUnit.MINUTES; } } public static class MockConfigUtilWithSmallCache extends MockConfigUtil { @Override public long getMaxConfigCacheSize() { return 1; } } public static class MockConfigUtilWithShortExpireTime extends MockConfigUtil { @Override public long getConfigCacheExpireTime() { return 50; } @Override public TimeUnit getConfigCacheExpireTimeUnit() { return TimeUnit.MILLISECONDS; } } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.internals; import static org.awaitility.Awaitility.await; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import com.ctrip.framework.apollo.enums.ConfigSourceType; import com.ctrip.framework.apollo.util.OrderedProperties; import com.ctrip.framework.apollo.util.factory.PropertiesFactory; import com.google.common.collect.Maps; import com.google.common.collect.Sets; import java.io.File; import java.util.Calendar; import java.util.Date; import java.util.Map; import java.util.Properties; import java.util.Set; import java.util.Collections; import java.util.List; import java.util.concurrent.TimeUnit; import com.google.common.base.Function; import com.google.common.base.Splitter; import com.google.common.collect.Lists; import org.awaitility.core.ThrowingRunnable; import org.junit.After; import org.junit.Before; import org.junit.Test; import com.ctrip.framework.apollo.Config; import com.ctrip.framework.apollo.ConfigChangeListener; import com.ctrip.framework.apollo.build.MockInjector; import com.ctrip.framework.apollo.core.utils.ClassLoaderUtil; import com.ctrip.framework.apollo.enums.PropertyChangeType; import com.ctrip.framework.apollo.model.ConfigChange; import com.ctrip.framework.apollo.model.ConfigChangeEvent; import com.ctrip.framework.apollo.util.ConfigUtil; import com.google.common.base.Charsets; import com.google.common.base.Joiner; import com.google.common.collect.ImmutableMap; import com.google.common.io.Files; import com.google.common.util.concurrent.SettableFuture; import org.mockito.invocation.InvocationOnMock; import org.mockito.stubbing.Answer; /** * @author Jason Song([email protected]) */ public class DefaultConfigTest { private File someResourceDir; private String someNamespace; private ConfigRepository configRepository; private Properties someProperties; private ConfigSourceType someSourceType; private PropertiesFactory propertiesFactory; @Before public void setUp() throws Exception { MockInjector.setInstance(ConfigUtil.class, new MockConfigUtil()); propertiesFactory = mock(PropertiesFactory.class); when(propertiesFactory.getPropertiesInstance()).thenAnswer(new Answer<Properties>() { @Override public Properties answer(InvocationOnMock invocation) { return new Properties(); } }); MockInjector.setInstance(PropertiesFactory.class, propertiesFactory); someResourceDir = new File(ClassLoaderUtil.getClassPath() + "/META-INF/config"); someResourceDir.mkdirs(); someNamespace = "someName"; configRepository = mock(ConfigRepository.class); } @After public void tearDown() throws Exception { MockInjector.reset(); recursiveDelete(someResourceDir); } //helper method to clean created files private void recursiveDelete(File file) { if (!file.exists()) { return; } if (file.isDirectory()) { for (File f : file.listFiles()) { recursiveDelete(f); } } file.delete(); } @Test public void testGetPropertyWithAllPropertyHierarchy() throws Exception { String someKey = "someKey"; String someSystemPropertyValue = "system-property-value"; String anotherKey = "anotherKey"; String someLocalFileValue = "local-file-value"; String lastKey = "lastKey"; String someResourceValue = "resource-value"; //set up system property System.setProperty(someKey, someSystemPropertyValue); //set up config repo someProperties = new Properties(); someProperties.setProperty(someKey, someLocalFileValue); someProperties.setProperty(anotherKey, someLocalFileValue); when(configRepository.getConfig()).thenReturn(someProperties); someSourceType = ConfigSourceType.LOCAL; when(configRepository.getSourceType()).thenReturn(someSourceType); //set up resource file File resourceFile = new File(someResourceDir, someNamespace + ".properties"); Files.write(someKey + "=" + someResourceValue, resourceFile, Charsets.UTF_8); Files.append(System.getProperty("line.separator"), resourceFile, Charsets.UTF_8); Files.append(anotherKey + "=" + someResourceValue, resourceFile, Charsets.UTF_8); Files.append(System.getProperty("line.separator"), resourceFile, Charsets.UTF_8); Files.append(lastKey + "=" + someResourceValue, resourceFile, Charsets.UTF_8); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); String someKeyValue = defaultConfig.getProperty(someKey, null); String anotherKeyValue = defaultConfig.getProperty(anotherKey, null); String lastKeyValue = defaultConfig.getProperty(lastKey, null); //clean up System.clearProperty(someKey); assertEquals(someSystemPropertyValue, someKeyValue); assertEquals(someLocalFileValue, anotherKeyValue); assertEquals(someResourceValue, lastKeyValue); assertEquals(someSourceType, defaultConfig.getSourceType()); } @Test public void testGetIntProperty() throws Exception { String someStringKey = "someStringKey"; String someStringValue = "someStringValue"; String someKey = "someKey"; Integer someValue = 2; Integer someDefaultValue = -1; //set up config repo someProperties = new Properties(); someProperties.setProperty(someStringKey, someStringValue); someProperties.setProperty(someKey, String.valueOf(someValue)); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(someValue, defaultConfig.getIntProperty(someKey, someDefaultValue)); assertEquals(someDefaultValue, defaultConfig.getIntProperty(someStringKey, someDefaultValue)); } @Test public void testGetIntPropertyMultipleTimesWithCache() throws Exception { String someKey = "someKey"; Integer someValue = 2; Integer someDefaultValue = -1; //set up config repo someProperties = mock(Properties.class); when(someProperties.getProperty(someKey)).thenReturn(String.valueOf(someValue)); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(someValue, defaultConfig.getIntProperty(someKey, someDefaultValue)); assertEquals(someValue, defaultConfig.getIntProperty(someKey, someDefaultValue)); assertEquals(someValue, defaultConfig.getIntProperty(someKey, someDefaultValue)); verify(someProperties, times(1)).getProperty(someKey); } @Test public void testGetIntPropertyMultipleTimesWithPropertyChanges() throws Exception { String someKey = "someKey"; Integer someValue = 2; Integer anotherValue = 3; Integer someDefaultValue = -1; //set up config repo someProperties = new Properties(); someProperties.setProperty(someKey, String.valueOf(someValue)); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(someValue, defaultConfig.getIntProperty(someKey, someDefaultValue)); Properties anotherProperties = new Properties(); anotherProperties.setProperty(someKey, String.valueOf(anotherValue)); defaultConfig.onRepositoryChange(someNamespace, anotherProperties); assertEquals(anotherValue, defaultConfig.getIntProperty(someKey, someDefaultValue)); } @Test public void testGetIntPropertyMultipleTimesWithSmallCache() throws Exception { String someKey = "someKey"; Integer someValue = 2; String anotherKey = "anotherKey"; Integer anotherValue = 3; Integer someDefaultValue = -1; MockInjector.setInstance(ConfigUtil.class, new MockConfigUtilWithSmallCache()); //set up config repo someProperties = mock(Properties.class); when(someProperties.getProperty(someKey)).thenReturn(String.valueOf(someValue)); when(someProperties.getProperty(anotherKey)).thenReturn(String.valueOf(anotherValue)); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(someValue, defaultConfig.getIntProperty(someKey, someDefaultValue)); assertEquals(someValue, defaultConfig.getIntProperty(someKey, someDefaultValue)); verify(someProperties, times(1)).getProperty(someKey); assertEquals(anotherValue, defaultConfig.getIntProperty(anotherKey, someDefaultValue)); assertEquals(anotherValue, defaultConfig.getIntProperty(anotherKey, someDefaultValue)); verify(someProperties, times(1)).getProperty(anotherKey); assertEquals(someValue, defaultConfig.getIntProperty(someKey, someDefaultValue)); verify(someProperties, times(2)).getProperty(someKey); } @Test public void testGetIntPropertyMultipleTimesWithShortExpireTime() throws Exception { final String someKey = "someKey"; final Integer someValue = 2; final Integer someDefaultValue = -1; MockInjector.setInstance(ConfigUtil.class, new MockConfigUtilWithShortExpireTime()); //set up config repo someProperties = mock(Properties.class); when(someProperties.getProperty(someKey)).thenReturn(String.valueOf(someValue)); when(configRepository.getConfig()).thenReturn(someProperties); final DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(someValue, defaultConfig.getIntProperty(someKey, someDefaultValue)); assertEquals(someValue, defaultConfig.getIntProperty(someKey, someDefaultValue)); verify(someProperties, times(1)).getProperty(someKey); await().atMost(500, TimeUnit.MILLISECONDS).untilAsserted(new ThrowingRunnable() { @Override public void run() throws Throwable { assertEquals(someValue, defaultConfig.getIntProperty(someKey, someDefaultValue)); assertEquals(someValue, defaultConfig.getIntProperty(someKey, someDefaultValue)); verify(someProperties, times(2)).getProperty(someKey); } }); } @Test public void testGetLongProperty() throws Exception { String someStringKey = "someStringKey"; String someStringValue = "someStringValue"; String someKey = "someKey"; Long someValue = 2L; Long someDefaultValue = -1L; //set up config repo someProperties = new Properties(); someProperties.setProperty(someStringKey, someStringValue); someProperties.setProperty(someKey, String.valueOf(someValue)); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(someValue, defaultConfig.getLongProperty(someKey, someDefaultValue)); assertEquals(someDefaultValue, defaultConfig.getLongProperty(someStringKey, someDefaultValue)); } @Test public void testGetShortProperty() throws Exception { String someStringKey = "someStringKey"; String someStringValue = "someStringValue"; String someKey = "someKey"; Short someValue = 2; Short someDefaultValue = -1; //set up config repo someProperties = new Properties(); someProperties.setProperty(someStringKey, someStringValue); someProperties.setProperty(someKey, String.valueOf(someValue)); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(someValue, defaultConfig.getShortProperty(someKey, someDefaultValue)); assertEquals(someDefaultValue, defaultConfig.getShortProperty(someStringKey, someDefaultValue)); } @Test public void testGetFloatProperty() throws Exception { String someStringKey = "someStringKey"; String someStringValue = "someStringValue"; String someKey = "someKey"; Float someValue = 2.20f; Float someDefaultValue = -1f; //set up config repo someProperties = new Properties(); someProperties.setProperty(someStringKey, someStringValue); someProperties.setProperty(someKey, String.valueOf(someValue)); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(someValue, defaultConfig.getFloatProperty(someKey, someDefaultValue), 0.001); assertEquals(someDefaultValue, defaultConfig.getFloatProperty(someStringKey, someDefaultValue), 0.001); } @Test public void testGetDoubleProperty() throws Exception { String someStringKey = "someStringKey"; String someStringValue = "someStringValue"; String someKey = "someKey"; Double someValue = 2.20d; Double someDefaultValue = -1d; //set up config repo someProperties = new Properties(); someProperties.setProperty(someStringKey, someStringValue); someProperties.setProperty(someKey, String.valueOf(someValue)); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(someValue, defaultConfig.getDoubleProperty(someKey, someDefaultValue), 0.001); assertEquals(someDefaultValue, defaultConfig.getDoubleProperty(someStringKey, someDefaultValue), 0.001); } @Test public void testGetByteProperty() throws Exception { String someStringKey = "someStringKey"; String someStringValue = "someStringValue"; String someKey = "someKey"; Byte someValue = 10; Byte someDefaultValue = -1; //set up config repo someProperties = new Properties(); someProperties.setProperty(someStringKey, someStringValue); someProperties.setProperty(someKey, String.valueOf(someValue)); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(someValue, defaultConfig.getByteProperty(someKey, someDefaultValue)); assertEquals(someDefaultValue, defaultConfig.getByteProperty(someStringKey, someDefaultValue)); } @Test public void testGetBooleanProperty() throws Exception { String someStringKey = "someStringKey"; String someStringValue = "someStringValue"; String someKey = "someKey"; Boolean someValue = true; Boolean someDefaultValue = false; //set up config repo someProperties = new Properties(); someProperties.setProperty(someStringKey, someStringValue); someProperties.setProperty(someKey, String.valueOf(someValue)); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(someValue, defaultConfig.getBooleanProperty(someKey, someDefaultValue)); assertEquals(someDefaultValue, defaultConfig.getBooleanProperty(someStringKey, someDefaultValue)); } @Test public void testGetArrayProperty() throws Exception { String someKey = "someKey"; String someDelimiter = ","; String someInvalidDelimiter = "{"; String[] values = new String[]{"a", "b", "c"}; String someValue = Joiner.on(someDelimiter).join(values); String[] someDefaultValue = new String[]{"1", "2"}; //set up config repo someProperties = new Properties(); someProperties.setProperty(someKey, someValue); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertArrayEquals(values, defaultConfig.getArrayProperty(someKey, someDelimiter, someDefaultValue)); assertArrayEquals(someDefaultValue, defaultConfig.getArrayProperty(someKey, someInvalidDelimiter, someDefaultValue)); } @Test public void testGetArrayPropertyMultipleTimesWithCache() throws Exception { String someKey = "someKey"; String someDelimiter = ","; String someInvalidDelimiter = "{"; String[] values = new String[]{"a", "b", "c"}; String someValue = Joiner.on(someDelimiter).join(values); String[] someDefaultValue = new String[]{"1", "2"}; //set up config repo someProperties = mock(Properties.class); when(someProperties.getProperty(someKey)).thenReturn(someValue); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertArrayEquals(values, defaultConfig.getArrayProperty(someKey, someDelimiter, someDefaultValue)); assertArrayEquals(values, defaultConfig.getArrayProperty(someKey, someDelimiter, someDefaultValue)); verify(someProperties, times(1)).getProperty(someKey); assertArrayEquals(someDefaultValue, defaultConfig.getArrayProperty(someKey, someInvalidDelimiter, someDefaultValue)); assertArrayEquals(someDefaultValue, defaultConfig.getArrayProperty(someKey, someInvalidDelimiter, someDefaultValue)); verify(someProperties, times(3)).getProperty(someKey); } @Test public void testGetArrayPropertyMultipleTimesWithCacheAndValueChanges() throws Exception { String someKey = "someKey"; String someDelimiter = ","; String[] values = new String[]{"a", "b", "c"}; String[] anotherValues = new String[]{"b", "c", "d"}; String someValue = Joiner.on(someDelimiter).join(values); String anotherValue = Joiner.on(someDelimiter).join(anotherValues); String[] someDefaultValue = new String[]{"1", "2"}; //set up config repo someProperties = new Properties(); someProperties.setProperty(someKey, someValue); when(configRepository.getConfig()).thenReturn(someProperties); Properties anotherProperties = new Properties(); anotherProperties.setProperty(someKey, anotherValue); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertArrayEquals(values, defaultConfig.getArrayProperty(someKey, someDelimiter, someDefaultValue)); defaultConfig.onRepositoryChange(someNamespace, anotherProperties); assertArrayEquals(anotherValues, defaultConfig.getArrayProperty(someKey, someDelimiter, someDefaultValue)); } @Test public void testGetDatePropertyWithFormat() throws Exception { Date someDefaultValue = new Date(); Date shortDate = assembleDate(2016, 9, 28, 0, 0, 0, 0); Date mediumDate = assembleDate(2016, 9, 28, 15, 10, 10, 0); Date longDate = assembleDate(2016, 9, 28, 15, 10, 10, 123); //set up config repo someProperties = new Properties(); someProperties.setProperty("shortDateProperty", "2016-09-28"); someProperties.setProperty("mediumDateProperty", "2016-09-28 15:10:10"); someProperties.setProperty("longDateProperty", "2016-09-28 15:10:10.123"); someProperties.setProperty("stringProperty", "someString"); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); checkDatePropertyWithFormat(defaultConfig, shortDate, "shortDateProperty", "yyyy-MM-dd", someDefaultValue); checkDatePropertyWithFormat(defaultConfig, mediumDate, "mediumDateProperty", "yyyy-MM-dd HH:mm:ss", someDefaultValue); checkDatePropertyWithFormat(defaultConfig, shortDate, "mediumDateProperty", "yyyy-MM-dd", someDefaultValue); checkDatePropertyWithFormat(defaultConfig, longDate, "longDateProperty", "yyyy-MM-dd HH:mm:ss.SSS", someDefaultValue); checkDatePropertyWithFormat(defaultConfig, mediumDate, "longDateProperty", "yyyy-MM-dd HH:mm:ss", someDefaultValue); checkDatePropertyWithFormat(defaultConfig, shortDate, "longDateProperty", "yyyy-MM-dd", someDefaultValue); checkDatePropertyWithFormat(defaultConfig, someDefaultValue, "stringProperty", "yyyy-MM-dd", someDefaultValue); } @Test public void testGetDatePropertyWithNoFormat() throws Exception { Date someDefaultValue = new Date(); Date shortDate = assembleDate(2016, 9, 28, 0, 0, 0, 0); Date mediumDate = assembleDate(2016, 9, 28, 15, 10, 10, 0); Date longDate = assembleDate(2016, 9, 28, 15, 10, 10, 123); //set up config repo someProperties = new Properties(); someProperties.setProperty("shortDateProperty", "2016-09-28"); someProperties.setProperty("mediumDateProperty", "2016-09-28 15:10:10"); someProperties.setProperty("longDateProperty", "2016-09-28 15:10:10.123"); someProperties.setProperty("stringProperty", "someString"); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); checkDatePropertyWithoutFormat(defaultConfig, shortDate, "shortDateProperty", someDefaultValue); checkDatePropertyWithoutFormat(defaultConfig, mediumDate, "mediumDateProperty", someDefaultValue); checkDatePropertyWithoutFormat(defaultConfig, longDate, "longDateProperty", someDefaultValue); checkDatePropertyWithoutFormat(defaultConfig, someDefaultValue, "stringProperty", someDefaultValue); } @Test public void testGetEnumProperty() throws Exception { SomeEnum someDefaultValue = SomeEnum.defaultValue; //set up config repo someProperties = new Properties(); someProperties.setProperty("enumProperty", "someValue"); someProperties.setProperty("stringProperty", "someString"); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(SomeEnum.someValue, defaultConfig.getEnumProperty("enumProperty", SomeEnum.class, someDefaultValue)); assertEquals(someDefaultValue, defaultConfig.getEnumProperty("stringProperty", SomeEnum.class, someDefaultValue)); } @Test public void testGetDurationProperty() throws Exception { long someDefaultValue = 1000; long result = 2 * 24 * 3600 * 1000 + 3 * 3600 * 1000 + 4 * 60 * 1000 + 5 * 1000 + 123; //set up config repo someProperties = new Properties(); someProperties.setProperty("durationProperty", "2D3H4m5S123ms"); someProperties.setProperty("stringProperty", "someString"); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(result, defaultConfig.getDurationProperty("durationProperty", someDefaultValue)); assertEquals(someDefaultValue, defaultConfig.getDurationProperty("stringProperty", someDefaultValue)); } @Test public void testOnRepositoryChange() throws Exception { String someKey = "someKey"; String someSystemPropertyValue = "system-property-value"; String anotherKey = "anotherKey"; String someLocalFileValue = "local-file-value"; String keyToBeDeleted = "keyToBeDeleted"; String keyToBeDeletedValue = "keyToBeDeletedValue"; String yetAnotherKey = "yetAnotherKey"; String yetAnotherValue = "yetAnotherValue"; String yetAnotherResourceValue = "yetAnotherResourceValue"; //set up system property System.setProperty(someKey, someSystemPropertyValue); //set up config repo someProperties = new Properties(); someProperties.putAll(ImmutableMap .of(someKey, someLocalFileValue, anotherKey, someLocalFileValue, keyToBeDeleted, keyToBeDeletedValue, yetAnotherKey, yetAnotherValue)); when(configRepository.getConfig()).thenReturn(someProperties); someSourceType = ConfigSourceType.LOCAL; when(configRepository.getSourceType()).thenReturn(someSourceType); //set up resource file File resourceFile = new File(someResourceDir, someNamespace + ".properties"); Files.append(yetAnotherKey + "=" + yetAnotherResourceValue, resourceFile, Charsets.UTF_8); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(someSourceType, defaultConfig.getSourceType()); final SettableFuture<ConfigChangeEvent> configChangeFuture = SettableFuture.create(); ConfigChangeListener someListener = new ConfigChangeListener() { @Override public void onChange(ConfigChangeEvent changeEvent) { configChangeFuture.set(changeEvent); } }; defaultConfig.addChangeListener(someListener); Properties newProperties = new Properties(); String someKeyNewValue = "new-some-value"; String anotherKeyNewValue = "another-new-value"; String newKey = "newKey"; String newValue = "newValue"; newProperties.putAll(ImmutableMap .of(someKey, someKeyNewValue, anotherKey, anotherKeyNewValue, newKey, newValue)); ConfigSourceType anotherSourceType = ConfigSourceType.REMOTE; when(configRepository.getSourceType()).thenReturn(anotherSourceType); defaultConfig.onRepositoryChange(someNamespace, newProperties); ConfigChangeEvent changeEvent = configChangeFuture.get(500, TimeUnit.MILLISECONDS); //clean up System.clearProperty(someKey); assertEquals(someNamespace, changeEvent.getNamespace()); assertEquals(4, changeEvent.changedKeys().size()); ConfigChange anotherKeyChange = changeEvent.getChange(anotherKey); assertEquals(someLocalFileValue, anotherKeyChange.getOldValue()); assertEquals(anotherKeyNewValue, anotherKeyChange.getNewValue()); assertEquals(PropertyChangeType.MODIFIED, anotherKeyChange.getChangeType()); ConfigChange yetAnotherKeyChange = changeEvent.getChange(yetAnotherKey); assertEquals(yetAnotherValue, yetAnotherKeyChange.getOldValue()); assertEquals(yetAnotherResourceValue, yetAnotherKeyChange.getNewValue()); assertEquals(PropertyChangeType.MODIFIED, yetAnotherKeyChange.getChangeType()); ConfigChange keyToBeDeletedChange = changeEvent.getChange(keyToBeDeleted); assertEquals(keyToBeDeletedValue, keyToBeDeletedChange.getOldValue()); assertEquals(null, keyToBeDeletedChange.getNewValue()); assertEquals(PropertyChangeType.DELETED, keyToBeDeletedChange.getChangeType()); ConfigChange newKeyChange = changeEvent.getChange(newKey); assertEquals(null, newKeyChange.getOldValue()); assertEquals(newValue, newKeyChange.getNewValue()); assertEquals(PropertyChangeType.ADDED, newKeyChange.getChangeType()); assertEquals(anotherSourceType, defaultConfig.getSourceType()); } @Test public void testFireConfigChangeWithInterestedKeys() throws Exception { String someKeyChanged = "someKeyChanged"; String anotherKeyChanged = "anotherKeyChanged"; String someKeyNotChanged = "someKeyNotChanged"; String someNamespace = "someNamespace"; Map<String, ConfigChange> changes = Maps.newHashMap(); changes.put(someKeyChanged, mock(ConfigChange.class)); changes.put(anotherKeyChanged, mock(ConfigChange.class)); ConfigChangeEvent someChangeEvent = new ConfigChangeEvent(someNamespace, changes); final SettableFuture<ConfigChangeEvent> interestedInAllKeysFuture = SettableFuture.create(); ConfigChangeListener interestedInAllKeys = new ConfigChangeListener() { @Override public void onChange(ConfigChangeEvent changeEvent) { interestedInAllKeysFuture.set(changeEvent); } }; final SettableFuture<ConfigChangeEvent> interestedInSomeKeyFuture = SettableFuture.create(); ConfigChangeListener interestedInSomeKey = new ConfigChangeListener() { @Override public void onChange(ConfigChangeEvent changeEvent) { interestedInSomeKeyFuture.set(changeEvent); } }; final SettableFuture<ConfigChangeEvent> interestedInSomeKeyNotChangedFuture = SettableFuture.create(); ConfigChangeListener interestedInSomeKeyNotChanged = new ConfigChangeListener() { @Override public void onChange(ConfigChangeEvent changeEvent) { interestedInSomeKeyNotChangedFuture.set(changeEvent); } }; DefaultConfig config = new DefaultConfig(someNamespace, mock(ConfigRepository.class)); config.addChangeListener(interestedInAllKeys); config.addChangeListener(interestedInSomeKey, Sets.newHashSet(someKeyChanged)); config.addChangeListener(interestedInSomeKeyNotChanged, Sets.newHashSet(someKeyNotChanged)); config.fireConfigChange(someChangeEvent); ConfigChangeEvent changeEvent = interestedInAllKeysFuture.get(500, TimeUnit.MILLISECONDS); assertEquals(someChangeEvent, changeEvent); { // hidden variables in scope ConfigChangeEvent actualConfigChangeEvent = interestedInSomeKeyFuture.get(500, TimeUnit.MILLISECONDS); assertEquals(someChangeEvent.changedKeys(), actualConfigChangeEvent.changedKeys()); for (String changedKey : someChangeEvent.changedKeys()) { ConfigChange expectConfigChange = someChangeEvent.getChange(changedKey); ConfigChange actualConfigChange = actualConfigChangeEvent.getChange(changedKey); assertEquals(expectConfigChange, actualConfigChange); } } assertFalse(interestedInSomeKeyNotChangedFuture.isDone()); } @Test public void testRemoveChangeListener() throws Exception { String someNamespace = "someNamespace"; final ConfigChangeEvent someConfigChangeEvent = mock(ConfigChangeEvent.class); ConfigChangeEvent anotherConfigChangeEvent = mock(ConfigChangeEvent.class); final SettableFuture<ConfigChangeEvent> someListenerFuture1 = SettableFuture.create(); final SettableFuture<ConfigChangeEvent> someListenerFuture2 = SettableFuture.create(); ConfigChangeListener someListener = new ConfigChangeListener() { @Override public void onChange(ConfigChangeEvent changeEvent) { if (someConfigChangeEvent == changeEvent) { someListenerFuture1.set(changeEvent); } else { someListenerFuture2.set(changeEvent); } } }; final SettableFuture<ConfigChangeEvent> anotherListenerFuture1 = SettableFuture.create(); final SettableFuture<ConfigChangeEvent> anotherListenerFuture2 = SettableFuture.create(); ConfigChangeListener anotherListener = new ConfigChangeListener() { @Override public void onChange(ConfigChangeEvent changeEvent) { if (someConfigChangeEvent == changeEvent) { anotherListenerFuture1.set(changeEvent); } else { anotherListenerFuture2.set(changeEvent); } } }; ConfigChangeListener yetAnotherListener = mock(ConfigChangeListener.class); DefaultConfig config = new DefaultConfig(someNamespace, mock(ConfigRepository.class)); config.addChangeListener(someListener); config.addChangeListener(anotherListener); config.fireConfigChange(someConfigChangeEvent); assertEquals(someConfigChangeEvent, someListenerFuture1.get(500, TimeUnit.MILLISECONDS)); assertEquals(someConfigChangeEvent, anotherListenerFuture1.get(500, TimeUnit.MILLISECONDS)); assertFalse(config.removeChangeListener(yetAnotherListener)); assertTrue(config.removeChangeListener(someListener)); config.fireConfigChange(anotherConfigChangeEvent); assertEquals(anotherConfigChangeEvent, anotherListenerFuture2.get(500, TimeUnit.MILLISECONDS)); TimeUnit.MILLISECONDS.sleep(100); assertFalse(someListenerFuture2.isDone()); } @Test public void testGetPropertyNames() { String someKeyPrefix = "someKey"; String someValuePrefix = "someValue"; //set up config repo someProperties = new Properties(); for (int i = 0; i < 10; i++) { someProperties.setProperty(someKeyPrefix + i, someValuePrefix + i); } when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); Set<String> propertyNames = defaultConfig.getPropertyNames(); assertEquals(10, propertyNames.size()); assertEquals(someProperties.stringPropertyNames(), propertyNames); } @Test public void testGetPropertyNamesWithOrderedProperties() { String someKeyPrefix = "someKey"; String someValuePrefix = "someValue"; when(propertiesFactory.getPropertiesInstance()).thenAnswer(new Answer<Properties>() { @Override public Properties answer(InvocationOnMock invocation) { return new OrderedProperties(); } }); //set up config repo someProperties = new OrderedProperties(); for (int i = 0; i < 10; i++) { someProperties.setProperty(someKeyPrefix + i, someValuePrefix + i); } when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); Set<String> propertyNames = defaultConfig.getPropertyNames(); assertEquals(10, propertyNames.size()); assertEquals(someProperties.stringPropertyNames(), propertyNames); } @Test public void testGetPropertyNamesWithNullProp() { when(configRepository.getConfig()).thenReturn(null); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); Set<String> propertyNames = defaultConfig.getPropertyNames(); assertEquals(Collections.emptySet(), propertyNames); } @Test public void testGetPropertyWithFunction() throws Exception { String someKey = "someKey"; String someValue = "a,b,c"; String someNullKey = "someNullKey"; //set up config repo someProperties = new Properties(); someProperties.setProperty(someKey, someValue); when(configRepository.getConfig()).thenReturn(someProperties); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); assertEquals(defaultConfig.getProperty(someKey, new Function<String, List<String>>() { @Override public List<String> apply(String s) { return Splitter.on(",").trimResults().omitEmptyStrings().splitToList(s); } }, Lists.<String>newArrayList()), Lists.newArrayList("a", "b", "c")); assertEquals(defaultConfig.getProperty(someNullKey, new Function<String, List<String>>() { @Override public List<String> apply(String s) { return Splitter.on(",").trimResults().omitEmptyStrings().splitToList(s); } }, Lists.<String>newArrayList()), Lists.newArrayList()); } @Test public void testLoadFromRepositoryFailedAndThenRecovered() { String someKey = "someKey"; String someValue = "someValue"; String someDefaultValue = "someDefaultValue"; ConfigSourceType someSourceType = ConfigSourceType.REMOTE; when(configRepository.getConfig()).thenThrow(mock(RuntimeException.class)); DefaultConfig defaultConfig = new DefaultConfig(someNamespace, configRepository); verify(configRepository, times(1)).addChangeListener(defaultConfig); assertEquals(ConfigSourceType.NONE, defaultConfig.getSourceType()); assertEquals(someDefaultValue, defaultConfig.getProperty(someKey, someDefaultValue)); someProperties = new Properties(); someProperties.setProperty(someKey, someValue); when(configRepository.getSourceType()).thenReturn(someSourceType); defaultConfig.onRepositoryChange(someNamespace, someProperties); assertEquals(someSourceType, defaultConfig.getSourceType()); assertEquals(someValue, defaultConfig.getProperty(someKey, someDefaultValue)); } private void checkDatePropertyWithFormat(Config config, Date expected, String propertyName, String format, Date defaultValue) { assertEquals(expected, config.getDateProperty(propertyName, format, defaultValue)); } private void checkDatePropertyWithoutFormat(Config config, Date expected, String propertyName, Date defaultValue) { assertEquals(expected, config.getDateProperty(propertyName, defaultValue)); } private Date assembleDate(int year, int month, int day, int hour, int minute, int second, int millisecond) { Calendar date = Calendar.getInstance(); date.set(year, month - 1, day, hour, minute, second); //Month in Calendar is 0 based date.set(Calendar.MILLISECOND, millisecond); return date.getTime(); } private enum SomeEnum { someValue, defaultValue } public static class MockConfigUtil extends ConfigUtil { @Override public long getMaxConfigCacheSize() { return 10; } @Override public long getConfigCacheExpireTime() { return 1; } @Override public TimeUnit getConfigCacheExpireTimeUnit() { return TimeUnit.MINUTES; } } public static class MockConfigUtilWithSmallCache extends MockConfigUtil { @Override public long getMaxConfigCacheSize() { return 1; } } public static class MockConfigUtilWithShortExpireTime extends MockConfigUtil { @Override public long getConfigCacheExpireTime() { return 50; } @Override public TimeUnit getConfigCacheExpireTimeUnit() { return TimeUnit.MILLISECONDS; } } }
1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-client/src/test/java/com/ctrip/framework/apollo/spring/JavaConfigAnnotationTest.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.spring; import com.ctrip.framework.apollo.Config; import com.ctrip.framework.apollo.ConfigChangeListener; import com.ctrip.framework.apollo.ConfigFileChangeListener; import com.ctrip.framework.apollo.core.ConfigConsts; import com.ctrip.framework.apollo.internals.YamlConfigFile; import com.ctrip.framework.apollo.model.ConfigChange; import com.ctrip.framework.apollo.model.ConfigChangeEvent; import com.ctrip.framework.apollo.spring.annotation.ApolloConfig; import com.ctrip.framework.apollo.spring.annotation.ApolloConfigChangeListener; import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig; import com.google.common.collect.Lists; import com.google.common.collect.Sets; import com.google.common.util.concurrent.SettableFuture; import java.io.IOException; import java.util.Collections; import java.util.Properties; import java.util.UUID; import java.util.concurrent.TimeUnit; import org.junit.After; import org.junit.Test; import org.mockito.ArgumentCaptor; import org.mockito.invocation.InvocationOnMock; import org.mockito.stubbing.Answer; import org.springframework.beans.factory.BeanCreationException; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import java.util.List; import java.util.Set; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertSame; import static org.mockito.Matchers.any; import static org.mockito.Matchers.anySetOf; import static org.mockito.Matchers.anyString; import static org.mockito.Matchers.eq; import static org.mockito.Mockito.doAnswer; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.never; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; /** * @author Jason Song([email protected]) */ public class JavaConfigAnnotationTest extends AbstractSpringIntegrationTest { private static final String FX_APOLLO_NAMESPACE = "FX.apollo"; private static final String APPLICATION_YAML_NAMESPACE = "application.yaml"; private static <T> T getBean(Class<T> beanClass, Class<?>... annotatedClasses) { AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(annotatedClasses); return context.getBean(beanClass); } private static <T> T getSimpleBean(Class<? extends T> clazz) { return getBean(clazz, clazz); } @Override @After public void tearDown() throws Exception { // clear the system properties System.clearProperty(SystemPropertyKeyConstants.SIMPLE_NAMESPACE); System.clearProperty(SystemPropertyKeyConstants.REDIS_NAMESPACE); System.clearProperty(SystemPropertyKeyConstants.FROM_SYSTEM_NAMESPACE); System.clearProperty(SystemPropertyKeyConstants.FROM_SYSTEM_YAML_NAMESPACE); System.clearProperty(SystemPropertyKeyConstants.FROM_NAMESPACE_APPLICATION_KEY); System.clearProperty(SystemPropertyKeyConstants.FROM_NAMESPACE_APPLICATION_KEY_YAML); super.tearDown(); } @Test public void testApolloConfig() throws Exception { Config applicationConfig = mock(Config.class); Config fxApolloConfig = mock(Config.class); String someKey = "someKey"; String someValue = "someValue"; mockConfig(ConfigConsts.NAMESPACE_APPLICATION, applicationConfig); mockConfig(FX_APOLLO_NAMESPACE, fxApolloConfig); prepareYamlConfigFile(APPLICATION_YAML_NAMESPACE, readYamlContentAsConfigFileProperties("case9.yml")); TestApolloConfigBean1 bean = getBean(TestApolloConfigBean1.class, AppConfig1.class); assertEquals(applicationConfig, bean.getConfig()); assertEquals(applicationConfig, bean.getAnotherConfig()); assertEquals(fxApolloConfig, bean.getYetAnotherConfig()); Config yamlConfig = bean.getYamlConfig(); assertEquals(someValue, yamlConfig.getProperty(someKey, null)); } @Test(expected = BeanCreationException.class) public void testApolloConfigWithWrongFieldType() throws Exception { Config applicationConfig = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, applicationConfig); getBean(TestApolloConfigBean2.class, AppConfig2.class); } @Test public void testApolloConfigWithInheritance() throws Exception { Config applicationConfig = mock(Config.class); Config fxApolloConfig = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, applicationConfig); mockConfig(FX_APOLLO_NAMESPACE, fxApolloConfig); prepareYamlConfigFile(APPLICATION_YAML_NAMESPACE, readYamlContentAsConfigFileProperties("case9.yml")); TestApolloChildConfigBean bean = getBean(TestApolloChildConfigBean.class, AppConfig6.class); assertEquals(applicationConfig, bean.getConfig()); assertEquals(applicationConfig, bean.getAnotherConfig()); assertEquals(fxApolloConfig, bean.getYetAnotherConfig()); assertEquals(applicationConfig, bean.getSomeConfig()); } @Test public void testEnableApolloConfigResolveExpressionSimple() { String someKey = "someKey-2020-11-14-1750"; String someValue = UUID.randomUUID().toString(); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, mock(Config.class)); Config xxxConfig = mock(Config.class); when(xxxConfig.getProperty(eq(someKey), anyString())).thenReturn(someValue); mockConfig("xxx", xxxConfig); TestEnableApolloConfigResolveExpressionWithDefaultValueConfiguration configuration = getSimpleBean(TestEnableApolloConfigResolveExpressionWithDefaultValueConfiguration.class); // check assertEquals(someValue, configuration.getSomeKey()); verify(xxxConfig, times(1)).getProperty(eq(someKey), anyString()); } @Test public void testEnableApolloConfigResolveExpressionFromSystemProperty() { mockConfig(ConfigConsts.NAMESPACE_APPLICATION, mock(Config.class)); final String someKey = "someKey-2020-11-14-1750"; final String someValue = UUID.randomUUID().toString(); final String resolvedNamespaceName = "yyy"; System.setProperty(SystemPropertyKeyConstants.SIMPLE_NAMESPACE, resolvedNamespaceName); Config yyyConfig = mock(Config.class); when(yyyConfig.getProperty(eq(someKey), anyString())).thenReturn(someValue); mockConfig(resolvedNamespaceName, yyyConfig); TestEnableApolloConfigResolveExpressionWithDefaultValueConfiguration configuration = getSimpleBean(TestEnableApolloConfigResolveExpressionWithDefaultValueConfiguration.class); // check assertEquals(someValue, configuration.getSomeKey()); verify(yyyConfig, times(1)).getProperty(eq(someKey), anyString()); } @Test(expected = BeanCreationException.class) public void testEnableApolloConfigUnresolvedValueInField() { mockConfig(ConfigConsts.NAMESPACE_APPLICATION, mock(Config.class)); mockConfig("xxx", mock(Config.class)); getSimpleBean(TestEnableApolloConfigResolveExpressionWithDefaultValueConfiguration.class); } @Test(expected = IllegalArgumentException.class) public void testEnableApolloConfigUnresolvable() { getSimpleBean(TestEnableApolloConfigUnresolvableConfiguration.class); } @Test public void testApolloConfigChangeListener() throws Exception { Config applicationConfig = mock(Config.class); Config fxApolloConfig = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, applicationConfig); mockConfig(FX_APOLLO_NAMESPACE, fxApolloConfig); final List<ConfigChangeListener> applicationListeners = Lists.newArrayList(); final List<ConfigChangeListener> fxApolloListeners = Lists.newArrayList(); doAnswer(new Answer<Object>() { @Override public Object answer(InvocationOnMock invocation) throws Throwable { applicationListeners.add(invocation.getArgumentAt(0, ConfigChangeListener.class)); return Void.class; } }).when(applicationConfig).addChangeListener(any(ConfigChangeListener.class)); doAnswer(new Answer<Object>() { @Override public Object answer(InvocationOnMock invocation) throws Throwable { fxApolloListeners.add(invocation.getArgumentAt(0, ConfigChangeListener.class)); return Void.class; } }).when(fxApolloConfig).addChangeListener(any(ConfigChangeListener.class)); ConfigChangeEvent someEvent = mock(ConfigChangeEvent.class); ConfigChangeEvent anotherEvent = mock(ConfigChangeEvent.class); TestApolloConfigChangeListenerBean1 bean = getBean(TestApolloConfigChangeListenerBean1.class, AppConfig3.class); //PropertySourcesProcessor add listeners to listen config changed of all namespace assertEquals(4, applicationListeners.size()); assertEquals(1, fxApolloListeners.size()); for (ConfigChangeListener listener : applicationListeners) { listener.onChange(someEvent); } assertEquals(someEvent, bean.getChangeEvent1()); assertEquals(someEvent, bean.getChangeEvent2()); assertEquals(someEvent, bean.getChangeEvent3()); for (ConfigChangeListener listener : fxApolloListeners) { listener.onChange(anotherEvent); } assertEquals(someEvent, bean.getChangeEvent1()); assertEquals(someEvent, bean.getChangeEvent2()); assertEquals(anotherEvent, bean.getChangeEvent3()); } @Test(expected = BeanCreationException.class) public void testApolloConfigChangeListenerWithWrongParamType() throws Exception { Config applicationConfig = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, applicationConfig); getBean(TestApolloConfigChangeListenerBean2.class, AppConfig4.class); } @Test(expected = BeanCreationException.class) public void testApolloConfigChangeListenerWithWrongParamCount() throws Exception { Config applicationConfig = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, applicationConfig); getBean(TestApolloConfigChangeListenerBean3.class, AppConfig5.class); } @Test public void testApolloConfigChangeListenerWithInheritance() throws Exception { Config applicationConfig = mock(Config.class); Config fxApolloConfig = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, applicationConfig); mockConfig(FX_APOLLO_NAMESPACE, fxApolloConfig); final List<ConfigChangeListener> applicationListeners = Lists.newArrayList(); final List<ConfigChangeListener> fxApolloListeners = Lists.newArrayList(); doAnswer(new Answer<Object>() { @Override public Object answer(InvocationOnMock invocation) throws Throwable { applicationListeners.add(invocation.getArgumentAt(0, ConfigChangeListener.class)); return Void.class; } }).when(applicationConfig).addChangeListener(any(ConfigChangeListener.class)); doAnswer(new Answer<Object>() { @Override public Object answer(InvocationOnMock invocation) throws Throwable { fxApolloListeners.add(invocation.getArgumentAt(0, ConfigChangeListener.class)); return Void.class; } }).when(fxApolloConfig).addChangeListener(any(ConfigChangeListener.class)); ConfigChangeEvent someEvent = mock(ConfigChangeEvent.class); ConfigChangeEvent anotherEvent = mock(ConfigChangeEvent.class); TestApolloChildConfigChangeListener bean = getBean(TestApolloChildConfigChangeListener.class, AppConfig7.class); //PropertySourcesProcessor add listeners to listen config changed of all namespace assertEquals(5, applicationListeners.size()); assertEquals(1, fxApolloListeners.size()); for (ConfigChangeListener listener : applicationListeners) { listener.onChange(someEvent); } assertEquals(someEvent, bean.getChangeEvent1()); assertEquals(someEvent, bean.getChangeEvent2()); assertEquals(someEvent, bean.getChangeEvent3()); assertEquals(someEvent, bean.getSomeChangeEvent()); for (ConfigChangeListener listener : fxApolloListeners) { listener.onChange(anotherEvent); } assertEquals(someEvent, bean.getChangeEvent1()); assertEquals(someEvent, bean.getChangeEvent2()); assertEquals(anotherEvent, bean.getChangeEvent3()); assertEquals(someEvent, bean.getSomeChangeEvent()); } @Test public void testApolloConfigChangeListenerWithInterestedKeys() throws Exception { Config applicationConfig = mock(Config.class); Config fxApolloConfig = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, applicationConfig); mockConfig(FX_APOLLO_NAMESPACE, fxApolloConfig); TestApolloConfigChangeListenerWithInterestedKeysBean bean = getBean( TestApolloConfigChangeListenerWithInterestedKeysBean.class, AppConfig8.class); final ArgumentCaptor<Set> applicationConfigInterestedKeys = ArgumentCaptor.forClass(Set.class); final ArgumentCaptor<Set> fxApolloConfigInterestedKeys = ArgumentCaptor.forClass(Set.class); verify(applicationConfig, times(2)) .addChangeListener(any(ConfigChangeListener.class), applicationConfigInterestedKeys.capture(), anySetOf(String.class)); verify(fxApolloConfig, times(1)) .addChangeListener(any(ConfigChangeListener.class), fxApolloConfigInterestedKeys.capture(), anySetOf(String.class)); assertEquals(2, applicationConfigInterestedKeys.getAllValues().size()); Set<String> result = Sets.newHashSet(); for (Set interestedKeys : applicationConfigInterestedKeys.getAllValues()) { result.addAll(interestedKeys); } assertEquals(Sets.newHashSet("someKey", "anotherKey"), result); assertEquals(1, fxApolloConfigInterestedKeys.getAllValues().size()); assertEquals(Collections.singletonList(Sets.newHashSet("anotherKey")), fxApolloConfigInterestedKeys.getAllValues()); } @Test public void testApolloConfigChangeListenerWithYamlFile() throws Exception { String someKey = "someKey"; String someValue = "someValue"; String anotherValue = "anotherValue"; YamlConfigFile configFile = prepareYamlConfigFile(APPLICATION_YAML_NAMESPACE, readYamlContentAsConfigFileProperties("case9.yml")); TestApolloConfigChangeListenerWithYamlFile bean = getBean(TestApolloConfigChangeListenerWithYamlFile.class, AppConfig9.class); Config yamlConfig = bean.getYamlConfig(); SettableFuture<ConfigChangeEvent> future = bean.getConfigChangeEventFuture(); assertEquals(someValue, yamlConfig.getProperty(someKey, null)); assertFalse(future.isDone()); configFile.onRepositoryChange(APPLICATION_YAML_NAMESPACE, readYamlContentAsConfigFileProperties("case9-new.yml")); ConfigChangeEvent configChangeEvent = future.get(100, TimeUnit.MILLISECONDS); ConfigChange change = configChangeEvent.getChange(someKey); assertEquals(someValue, change.getOldValue()); assertEquals(anotherValue, change.getNewValue()); assertEquals(anotherValue, yamlConfig.getProperty(someKey, null)); } @Test public void testApolloConfigChangeListenerResolveExpressionSimple() { // for ignore, no listener use it Config ignoreConfig = mock(Config.class); mockConfig("ignore.for.listener", ignoreConfig); Config applicationConfig = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, applicationConfig); getSimpleBean(TestApolloConfigChangeListenerResolveExpressionSimpleConfiguration.class); // no using verify(ignoreConfig, never()).addChangeListener(any(ConfigChangeListener.class)); // one invocation for spring value auto update and another for the @ApolloConfigChangeListener annotation verify(applicationConfig, times(2)).addChangeListener(any(ConfigChangeListener.class)); } /** * resolve namespace's name from system property. */ @Test public void testApolloConfigChangeListenerResolveExpressionFromSystemProperty() { Config applicationConfig = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, applicationConfig); final String namespaceName = "magicRedis"; System.setProperty(SystemPropertyKeyConstants.REDIS_NAMESPACE, namespaceName); Config redisConfig = mock(Config.class); mockConfig(namespaceName, redisConfig); getSimpleBean( TestApolloConfigChangeListenerResolveExpressionFromSystemPropertyConfiguration.class); // if config was used, it must be invoked on method addChangeListener 1 time verify(redisConfig, times(1)).addChangeListener(any(ConfigChangeListener.class)); } /** * resolve namespace from config. ${mysql.namespace} will be resolved by config from namespace * application. */ @Test public void testApolloConfigChangeListenerResolveExpressionFromApplicationNamespace() { final String namespaceKey = "mysql.namespace"; final String namespaceName = "magicMysqlNamespaceApplication"; Properties properties = new Properties(); properties.setProperty(namespaceKey, namespaceName); this.prepareConfig(ConfigConsts.NAMESPACE_APPLICATION, properties); Config mysqlConfig = mock(Config.class); mockConfig(namespaceName, mysqlConfig); getSimpleBean( TestApolloConfigChangeListenerResolveExpressionFromApplicationNamespaceConfiguration.class); // if config was used, it must be invoked on method addChangeListener 1 time verify(mysqlConfig, times(1)).addChangeListener(any(ConfigChangeListener.class)); } @Test(expected = BeanCreationException.class) public void testApolloConfigChangeListenerUnresolvedPlaceholder() { Config applicationConfig = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, applicationConfig); getSimpleBean(TestApolloConfigChangeListenerUnresolvedPlaceholderConfiguration.class); } @Test public void testApolloConfigChangeListenerResolveExpressionFromSelfYaml() throws IOException { mockConfig(ConfigConsts.NAMESPACE_APPLICATION, mock(Config.class)); final String resolvedValue = "resolve.from.self.yml"; YamlConfigFile yamlConfigFile = prepareYamlConfigFile(resolvedValue, readYamlContentAsConfigFileProperties(resolvedValue)); getSimpleBean(TestApolloConfigChangeListenerResolveExpressionFromSelfYamlConfiguration.class); verify(yamlConfigFile, times(1)).addChangeListener(any(ConfigFileChangeListener.class)); } @Test public void testApolloConfigResolveExpressionDefault() { mockConfig(ConfigConsts.NAMESPACE_APPLICATION, mock(Config.class)); Config defaultConfig = mock(Config.class); Config yamlConfig = mock(Config.class); mockConfig("default-2020-11-14-1733", defaultConfig); mockConfig(APPLICATION_YAML_NAMESPACE, yamlConfig); TestApolloConfigResolveExpressionDefaultConfiguration configuration = getSimpleBean( TestApolloConfigResolveExpressionDefaultConfiguration.class); assertSame(defaultConfig, configuration.getDefaultConfig()); assertSame(yamlConfig, configuration.getYamlConfig()); } @Test public void testApolloConfigResolveExpressionFromSystemProperty() { mockConfig(ConfigConsts.NAMESPACE_APPLICATION, mock(Config.class)); final String namespaceName = "xxx6"; final String yamlNamespaceName = "yyy8.yml"; System.setProperty(SystemPropertyKeyConstants.FROM_SYSTEM_NAMESPACE, namespaceName); System.setProperty(SystemPropertyKeyConstants.FROM_SYSTEM_YAML_NAMESPACE, yamlNamespaceName); Config config = mock(Config.class); Config yamlConfig = mock(Config.class); mockConfig(namespaceName, config); mockConfig(yamlNamespaceName, yamlConfig); TestApolloConfigResolveExpressionFromSystemPropertyConfiguration configuration = getSimpleBean( TestApolloConfigResolveExpressionFromSystemPropertyConfiguration.class); assertSame(config, configuration.getConfig()); assertSame(yamlConfig, configuration.getYamlConfig()); } @Test(expected = BeanCreationException.class) public void testApolloConfigUnresolvedExpression() { mockConfig(ConfigConsts.NAMESPACE_APPLICATION, mock(Config.class)); getSimpleBean(TestApolloConfigUnresolvedExpressionConfiguration.class); } @Test public void testApolloConfigResolveExpressionFromApolloConfigNamespaceApplication() { final String namespaceName = "xxx6"; final String yamlNamespaceName = "yyy8.yml"; { // hide variable scope Properties properties = new Properties(); properties.setProperty(SystemPropertyKeyConstants.FROM_NAMESPACE_APPLICATION_KEY, namespaceName); properties.setProperty(SystemPropertyKeyConstants.FROM_NAMESPACE_APPLICATION_KEY_YAML, yamlNamespaceName); this.prepareConfig(ConfigConsts.NAMESPACE_APPLICATION, properties); } final Config config = mock(Config.class); final Config yamlConfig = mock(Config.class); mockConfig(namespaceName, config); mockConfig(yamlNamespaceName, yamlConfig); TestApolloConfigResolveExpressionFromApolloConfigNamespaceApplication configuration = getSimpleBean( TestApolloConfigResolveExpressionFromApolloConfigNamespaceApplication.class); assertSame(config, configuration.getConfig()); assertSame(yamlConfig, configuration.getYamlConfig()); } private static class SystemPropertyKeyConstants { static final String SIMPLE_NAMESPACE = "simple.namespace"; static final String REDIS_NAMESPACE = "redis.namespace"; static final String FROM_SYSTEM_NAMESPACE = "from.system.namespace"; static final String FROM_SYSTEM_YAML_NAMESPACE = "from.system.yaml.namespace"; static final String FROM_NAMESPACE_APPLICATION_KEY = "from.namespace.application.key"; static final String FROM_NAMESPACE_APPLICATION_KEY_YAML = "from.namespace.application.key.yaml"; } @EnableApolloConfig protected static class TestApolloConfigResolveExpressionDefaultConfiguration { @ApolloConfig(value = "${simple.namespace:default-2020-11-14-1733}") private Config defaultConfig; @ApolloConfig(value = "${simple.yaml.namespace:" + APPLICATION_YAML_NAMESPACE + "}") private Config yamlConfig; public Config getDefaultConfig() { return defaultConfig; } public Config getYamlConfig() { return yamlConfig; } } @EnableApolloConfig protected static class TestApolloConfigResolveExpressionFromSystemPropertyConfiguration { @ApolloConfig(value = "${from.system.namespace}") private Config config; @ApolloConfig(value = "${from.system.yaml.namespace}") private Config yamlConfig; public Config getConfig() { return config; } public Config getYamlConfig() { return yamlConfig; } } @EnableApolloConfig protected static class TestApolloConfigUnresolvedExpressionConfiguration { @ApolloConfig(value = "${so.complex.to.resolve}") private Config config; } @EnableApolloConfig protected static class TestApolloConfigResolveExpressionFromApolloConfigNamespaceApplication { @ApolloConfig(value = "${from.namespace.application.key}") private Config config; @ApolloConfig(value = "${from.namespace.application.key.yaml}") private Config yamlConfig; public Config getConfig() { return config; } public Config getYamlConfig() { return yamlConfig; } } @Configuration @EnableApolloConfig static class TestApolloConfigChangeListenerResolveExpressionSimpleConfiguration { @ApolloConfigChangeListener("${simple.application:application}") private void onChange(ConfigChangeEvent event) { } } @Configuration @EnableApolloConfig static class TestApolloConfigChangeListenerResolveExpressionFromSystemPropertyConfiguration { @ApolloConfigChangeListener("${redis.namespace}") private void onChange(ConfigChangeEvent event) { } } @Configuration @EnableApolloConfig static class TestApolloConfigChangeListenerResolveExpressionFromApplicationNamespaceConfiguration { @ApolloConfigChangeListener(value = {ConfigConsts.NAMESPACE_APPLICATION, "${mysql.namespace}"}) private void onChange(ConfigChangeEvent event) { } } @Configuration @EnableApolloConfig static class TestApolloConfigChangeListenerUnresolvedPlaceholderConfiguration { @ApolloConfigChangeListener(value = {ConfigConsts.NAMESPACE_APPLICATION, "${i.can.not.be.resolved}"}) private void onChange(ConfigChangeEvent event) { } } @Configuration @EnableApolloConfig("resolve.from.self.yml") static class TestApolloConfigChangeListenerResolveExpressionFromSelfYamlConfiguration { /** * value in file src/test/resources/spring/yaml/resolve.from.self.yml */ @ApolloConfigChangeListener("${i.can.resolve.from.self}") private void onChange(ConfigChangeEvent event) { } } @Configuration @EnableApolloConfig(value = {ConfigConsts.NAMESPACE_APPLICATION, "${simple.namespace:xxx}"}) static class TestEnableApolloConfigResolveExpressionWithDefaultValueConfiguration { @Value("${someKey-2020-11-14-1750}") private String someKey; public String getSomeKey() { return this.someKey; } } @Configuration @EnableApolloConfig(value = "${unresolvable.property}") static class TestEnableApolloConfigUnresolvableConfiguration { } @Configuration @EnableApolloConfig static class AppConfig1 { @Bean public TestApolloConfigBean1 bean() { return new TestApolloConfigBean1(); } } @Configuration @EnableApolloConfig static class AppConfig2 { @Bean public TestApolloConfigBean2 bean() { return new TestApolloConfigBean2(); } } @Configuration @EnableApolloConfig static class AppConfig3 { @Bean public TestApolloConfigChangeListenerBean1 bean() { return new TestApolloConfigChangeListenerBean1(); } } @Configuration @EnableApolloConfig static class AppConfig4 { @Bean public TestApolloConfigChangeListenerBean2 bean() { return new TestApolloConfigChangeListenerBean2(); } } @Configuration @EnableApolloConfig static class AppConfig5 { @Bean public TestApolloConfigChangeListenerBean3 bean() { return new TestApolloConfigChangeListenerBean3(); } } @Configuration @EnableApolloConfig static class AppConfig6 { @Bean public TestApolloChildConfigBean bean() { return new TestApolloChildConfigBean(); } } @Configuration @EnableApolloConfig static class AppConfig7 { @Bean public TestApolloChildConfigChangeListener bean() { return new TestApolloChildConfigChangeListener(); } } @Configuration @EnableApolloConfig static class AppConfig8 { @Bean public TestApolloConfigChangeListenerWithInterestedKeysBean bean() { return new TestApolloConfigChangeListenerWithInterestedKeysBean(); } } @Configuration @EnableApolloConfig(APPLICATION_YAML_NAMESPACE) static class AppConfig9 { @Bean public TestApolloConfigChangeListenerWithYamlFile bean() { return new TestApolloConfigChangeListenerWithYamlFile(); } } static class TestApolloConfigBean1 { @ApolloConfig private Config config; @ApolloConfig(ConfigConsts.NAMESPACE_APPLICATION) private Config anotherConfig; @ApolloConfig(FX_APOLLO_NAMESPACE) private Config yetAnotherConfig; @ApolloConfig(APPLICATION_YAML_NAMESPACE) private Config yamlConfig; public Config getConfig() { return config; } public Config getAnotherConfig() { return anotherConfig; } public Config getYetAnotherConfig() { return yetAnotherConfig; } public Config getYamlConfig() { return yamlConfig; } } static class TestApolloConfigBean2 { @ApolloConfig private String config; } static class TestApolloChildConfigBean extends TestApolloConfigBean1 { @ApolloConfig private Config someConfig; public Config getSomeConfig() { return someConfig; } } static class TestApolloConfigChangeListenerBean1 { private ConfigChangeEvent changeEvent1; private ConfigChangeEvent changeEvent2; private ConfigChangeEvent changeEvent3; @ApolloConfigChangeListener private void onChange1(ConfigChangeEvent changeEvent) { this.changeEvent1 = changeEvent; } @ApolloConfigChangeListener(ConfigConsts.NAMESPACE_APPLICATION) private void onChange2(ConfigChangeEvent changeEvent) { this.changeEvent2 = changeEvent; } @ApolloConfigChangeListener({ConfigConsts.NAMESPACE_APPLICATION, FX_APOLLO_NAMESPACE}) private void onChange3(ConfigChangeEvent changeEvent) { this.changeEvent3 = changeEvent; } public ConfigChangeEvent getChangeEvent1() { return changeEvent1; } public ConfigChangeEvent getChangeEvent2() { return changeEvent2; } public ConfigChangeEvent getChangeEvent3() { return changeEvent3; } } static class TestApolloConfigChangeListenerBean2 { @ApolloConfigChangeListener private void onChange(String event) { } } static class TestApolloConfigChangeListenerBean3 { @ApolloConfigChangeListener private void onChange(ConfigChangeEvent event, String someParam) { } } static class TestApolloChildConfigChangeListener extends TestApolloConfigChangeListenerBean1 { private ConfigChangeEvent someChangeEvent; @ApolloConfigChangeListener private void someOnChange(ConfigChangeEvent changeEvent) { this.someChangeEvent = changeEvent; } public ConfigChangeEvent getSomeChangeEvent() { return someChangeEvent; } } static class TestApolloConfigChangeListenerWithInterestedKeysBean { @ApolloConfigChangeListener(interestedKeys = {"someKey"}) private void someOnChange(ConfigChangeEvent changeEvent) {} @ApolloConfigChangeListener(value = {ConfigConsts.NAMESPACE_APPLICATION, FX_APOLLO_NAMESPACE}, interestedKeys = {"anotherKey"}) private void anotherOnChange(ConfigChangeEvent changeEvent) { } } static class TestApolloConfigChangeListenerWithYamlFile { private SettableFuture<ConfigChangeEvent> configChangeEventFuture = SettableFuture.create(); @ApolloConfig(APPLICATION_YAML_NAMESPACE) private Config yamlConfig; @ApolloConfigChangeListener(APPLICATION_YAML_NAMESPACE) private void onChange(ConfigChangeEvent event) { configChangeEventFuture.set(event); } public SettableFuture<ConfigChangeEvent> getConfigChangeEventFuture() { return configChangeEventFuture; } public Config getYamlConfig() { return yamlConfig; } } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.spring; import com.ctrip.framework.apollo.Config; import com.ctrip.framework.apollo.ConfigChangeListener; import com.ctrip.framework.apollo.ConfigFileChangeListener; import com.ctrip.framework.apollo.core.ConfigConsts; import com.ctrip.framework.apollo.internals.SimpleConfig; import com.ctrip.framework.apollo.internals.YamlConfigFile; import com.ctrip.framework.apollo.model.ConfigChange; import com.ctrip.framework.apollo.model.ConfigChangeEvent; import com.ctrip.framework.apollo.spring.annotation.ApolloConfig; import com.ctrip.framework.apollo.spring.annotation.ApolloConfigChangeListener; import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig; import com.google.common.collect.Lists; import com.google.common.collect.Sets; import com.google.common.util.concurrent.SettableFuture; import java.io.IOException; import java.util.Collections; import java.util.Properties; import java.util.Queue; import java.util.UUID; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.TimeUnit; import org.junit.After; import org.junit.Test; import org.mockito.ArgumentCaptor; import org.mockito.invocation.InvocationOnMock; import org.mockito.stubbing.Answer; import org.springframework.beans.factory.BeanCreationException; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import java.util.List; import java.util.Set; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertSame; import static org.mockito.Matchers.any; import static org.mockito.Matchers.anySetOf; import static org.mockito.Matchers.anyString; import static org.mockito.Matchers.eq; import static org.mockito.Mockito.atLeastOnce; import static org.mockito.Mockito.doAnswer; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.never; import static org.mockito.Mockito.times; import static org.mockito.Mockito.spy; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; /** * @author Jason Song([email protected]) */ public class JavaConfigAnnotationTest extends AbstractSpringIntegrationTest { private static final String FX_APOLLO_NAMESPACE = "FX.apollo"; private static final String APPLICATION_YAML_NAMESPACE = "application.yaml"; private static <T> T getBean(Class<T> beanClass, Class<?>... annotatedClasses) { AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(annotatedClasses); return context.getBean(beanClass); } private static <T> T getSimpleBean(Class<? extends T> clazz) { return getBean(clazz, clazz); } @Override @After public void tearDown() throws Exception { // clear the system properties System.clearProperty(SystemPropertyKeyConstants.SIMPLE_NAMESPACE); System.clearProperty(SystemPropertyKeyConstants.REDIS_NAMESPACE); System.clearProperty(SystemPropertyKeyConstants.FROM_SYSTEM_NAMESPACE); System.clearProperty(SystemPropertyKeyConstants.FROM_SYSTEM_YAML_NAMESPACE); System.clearProperty(SystemPropertyKeyConstants.FROM_NAMESPACE_APPLICATION_KEY); System.clearProperty(SystemPropertyKeyConstants.FROM_NAMESPACE_APPLICATION_KEY_YAML); super.tearDown(); } @Test public void testApolloConfig() throws Exception { Config applicationConfig = mock(Config.class); Config fxApolloConfig = mock(Config.class); String someKey = "someKey"; String someValue = "someValue"; mockConfig(ConfigConsts.NAMESPACE_APPLICATION, applicationConfig); mockConfig(FX_APOLLO_NAMESPACE, fxApolloConfig); prepareYamlConfigFile(APPLICATION_YAML_NAMESPACE, readYamlContentAsConfigFileProperties("case9.yml")); TestApolloConfigBean1 bean = getBean(TestApolloConfigBean1.class, AppConfig1.class); assertEquals(applicationConfig, bean.getConfig()); assertEquals(applicationConfig, bean.getAnotherConfig()); assertEquals(fxApolloConfig, bean.getYetAnotherConfig()); Config yamlConfig = bean.getYamlConfig(); assertEquals(someValue, yamlConfig.getProperty(someKey, null)); } @Test(expected = BeanCreationException.class) public void testApolloConfigWithWrongFieldType() throws Exception { Config applicationConfig = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, applicationConfig); getBean(TestApolloConfigBean2.class, AppConfig2.class); } @Test public void testApolloConfigWithInheritance() throws Exception { Config applicationConfig = mock(Config.class); Config fxApolloConfig = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, applicationConfig); mockConfig(FX_APOLLO_NAMESPACE, fxApolloConfig); prepareYamlConfigFile(APPLICATION_YAML_NAMESPACE, readYamlContentAsConfigFileProperties("case9.yml")); TestApolloChildConfigBean bean = getBean(TestApolloChildConfigBean.class, AppConfig6.class); assertEquals(applicationConfig, bean.getConfig()); assertEquals(applicationConfig, bean.getAnotherConfig()); assertEquals(fxApolloConfig, bean.getYetAnotherConfig()); assertEquals(applicationConfig, bean.getSomeConfig()); } @Test public void testEnableApolloConfigResolveExpressionSimple() { String someKey = "someKey-2020-11-14-1750"; String someValue = UUID.randomUUID().toString(); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, mock(Config.class)); Config xxxConfig = mock(Config.class); when(xxxConfig.getProperty(eq(someKey), anyString())).thenReturn(someValue); mockConfig("xxx", xxxConfig); TestEnableApolloConfigResolveExpressionWithDefaultValueConfiguration configuration = getSimpleBean(TestEnableApolloConfigResolveExpressionWithDefaultValueConfiguration.class); // check assertEquals(someValue, configuration.getSomeKey()); verify(xxxConfig, times(1)).getProperty(eq(someKey), anyString()); } @Test public void testEnableApolloConfigResolveExpressionFromSystemProperty() { mockConfig(ConfigConsts.NAMESPACE_APPLICATION, mock(Config.class)); final String someKey = "someKey-2020-11-14-1750"; final String someValue = UUID.randomUUID().toString(); final String resolvedNamespaceName = "yyy"; System.setProperty(SystemPropertyKeyConstants.SIMPLE_NAMESPACE, resolvedNamespaceName); Config yyyConfig = mock(Config.class); when(yyyConfig.getProperty(eq(someKey), anyString())).thenReturn(someValue); mockConfig(resolvedNamespaceName, yyyConfig); TestEnableApolloConfigResolveExpressionWithDefaultValueConfiguration configuration = getSimpleBean(TestEnableApolloConfigResolveExpressionWithDefaultValueConfiguration.class); // check assertEquals(someValue, configuration.getSomeKey()); verify(yyyConfig, times(1)).getProperty(eq(someKey), anyString()); } @Test(expected = BeanCreationException.class) public void testEnableApolloConfigUnresolvedValueInField() { mockConfig(ConfigConsts.NAMESPACE_APPLICATION, mock(Config.class)); mockConfig("xxx", mock(Config.class)); getSimpleBean(TestEnableApolloConfigResolveExpressionWithDefaultValueConfiguration.class); } @Test(expected = IllegalArgumentException.class) public void testEnableApolloConfigUnresolvable() { getSimpleBean(TestEnableApolloConfigUnresolvableConfiguration.class); } @Test public void testApolloConfigChangeListener() throws Exception { Config applicationConfig = mock(Config.class); Config fxApolloConfig = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, applicationConfig); mockConfig(FX_APOLLO_NAMESPACE, fxApolloConfig); final List<ConfigChangeListener> applicationListeners = Lists.newArrayList(); final List<ConfigChangeListener> fxApolloListeners = Lists.newArrayList(); doAnswer(new Answer<Object>() { @Override public Object answer(InvocationOnMock invocation) throws Throwable { applicationListeners.add(invocation.getArgumentAt(0, ConfigChangeListener.class)); return Void.class; } }).when(applicationConfig).addChangeListener(any(ConfigChangeListener.class)); doAnswer(new Answer<Object>() { @Override public Object answer(InvocationOnMock invocation) throws Throwable { fxApolloListeners.add(invocation.getArgumentAt(0, ConfigChangeListener.class)); return Void.class; } }).when(fxApolloConfig).addChangeListener(any(ConfigChangeListener.class)); ConfigChangeEvent someEvent = mock(ConfigChangeEvent.class); ConfigChangeEvent anotherEvent = mock(ConfigChangeEvent.class); TestApolloConfigChangeListenerBean1 bean = getBean(TestApolloConfigChangeListenerBean1.class, AppConfig3.class); //PropertySourcesProcessor add listeners to listen config changed of all namespace assertEquals(4, applicationListeners.size()); assertEquals(1, fxApolloListeners.size()); for (ConfigChangeListener listener : applicationListeners) { listener.onChange(someEvent); } assertEquals(someEvent, bean.getChangeEvent1()); assertEquals(someEvent, bean.getChangeEvent2()); assertEquals(someEvent, bean.getChangeEvent3()); for (ConfigChangeListener listener : fxApolloListeners) { listener.onChange(anotherEvent); } assertEquals(someEvent, bean.getChangeEvent1()); assertEquals(someEvent, bean.getChangeEvent2()); assertEquals(anotherEvent, bean.getChangeEvent3()); } @Test(expected = BeanCreationException.class) public void testApolloConfigChangeListenerWithWrongParamType() throws Exception { Config applicationConfig = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, applicationConfig); getBean(TestApolloConfigChangeListenerBean2.class, AppConfig4.class); } @Test(expected = BeanCreationException.class) public void testApolloConfigChangeListenerWithWrongParamCount() throws Exception { Config applicationConfig = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, applicationConfig); getBean(TestApolloConfigChangeListenerBean3.class, AppConfig5.class); } @Test public void testApolloConfigChangeListenerWithInheritance() throws Exception { Config applicationConfig = mock(Config.class); Config fxApolloConfig = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, applicationConfig); mockConfig(FX_APOLLO_NAMESPACE, fxApolloConfig); final List<ConfigChangeListener> applicationListeners = Lists.newArrayList(); final List<ConfigChangeListener> fxApolloListeners = Lists.newArrayList(); doAnswer(new Answer<Object>() { @Override public Object answer(InvocationOnMock invocation) throws Throwable { applicationListeners.add(invocation.getArgumentAt(0, ConfigChangeListener.class)); return Void.class; } }).when(applicationConfig).addChangeListener(any(ConfigChangeListener.class)); doAnswer(new Answer<Object>() { @Override public Object answer(InvocationOnMock invocation) throws Throwable { fxApolloListeners.add(invocation.getArgumentAt(0, ConfigChangeListener.class)); return Void.class; } }).when(fxApolloConfig).addChangeListener(any(ConfigChangeListener.class)); ConfigChangeEvent someEvent = mock(ConfigChangeEvent.class); ConfigChangeEvent anotherEvent = mock(ConfigChangeEvent.class); TestApolloChildConfigChangeListener bean = getBean(TestApolloChildConfigChangeListener.class, AppConfig7.class); //PropertySourcesProcessor add listeners to listen config changed of all namespace assertEquals(5, applicationListeners.size()); assertEquals(1, fxApolloListeners.size()); for (ConfigChangeListener listener : applicationListeners) { listener.onChange(someEvent); } assertEquals(someEvent, bean.getChangeEvent1()); assertEquals(someEvent, bean.getChangeEvent2()); assertEquals(someEvent, bean.getChangeEvent3()); assertEquals(someEvent, bean.getSomeChangeEvent()); for (ConfigChangeListener listener : fxApolloListeners) { listener.onChange(anotherEvent); } assertEquals(someEvent, bean.getChangeEvent1()); assertEquals(someEvent, bean.getChangeEvent2()); assertEquals(anotherEvent, bean.getChangeEvent3()); assertEquals(someEvent, bean.getSomeChangeEvent()); } @Test public void testApolloConfigChangeListenerWithInterestedKeys() throws Exception { Config applicationConfig = mock(Config.class); Config fxApolloConfig = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, applicationConfig); mockConfig(FX_APOLLO_NAMESPACE, fxApolloConfig); TestApolloConfigChangeListenerWithInterestedKeysBean bean = getBean( TestApolloConfigChangeListenerWithInterestedKeysBean.class, AppConfig8.class); final ArgumentCaptor<Set> applicationConfigInterestedKeys = ArgumentCaptor.forClass(Set.class); final ArgumentCaptor<Set> fxApolloConfigInterestedKeys = ArgumentCaptor.forClass(Set.class); verify(applicationConfig, times(2)) .addChangeListener(any(ConfigChangeListener.class), applicationConfigInterestedKeys.capture(), anySetOf(String.class)); verify(fxApolloConfig, times(1)) .addChangeListener(any(ConfigChangeListener.class), fxApolloConfigInterestedKeys.capture(), anySetOf(String.class)); assertEquals(2, applicationConfigInterestedKeys.getAllValues().size()); Set<String> result = Sets.newHashSet(); for (Set interestedKeys : applicationConfigInterestedKeys.getAllValues()) { result.addAll(interestedKeys); } assertEquals(Sets.newHashSet("someKey", "anotherKey"), result); assertEquals(1, fxApolloConfigInterestedKeys.getAllValues().size()); assertEquals(Collections.singletonList(Sets.newHashSet("anotherKey")), fxApolloConfigInterestedKeys.getAllValues()); } @Test public void testApolloConfigChangeListenerWithInterestedKeyPrefixes() { Config applicationConfig = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, applicationConfig); TestApolloConfigChangeListenerWithInterestedKeyPrefixesBean bean = getBean( TestApolloConfigChangeListenerWithInterestedKeyPrefixesBean.class, AppConfig10.class); final ArgumentCaptor<Set> interestedKeyPrefixesArgumentCaptor = ArgumentCaptor .forClass(Set.class); verify(applicationConfig, times(1)) .addChangeListener(any(ConfigChangeListener.class), anySetOf(String.class), interestedKeyPrefixesArgumentCaptor.capture()); assertEquals(1, interestedKeyPrefixesArgumentCaptor.getAllValues().size()); Set<String> result = Sets.newHashSet(); for (Set<String> interestedKeyPrefixes : interestedKeyPrefixesArgumentCaptor.getAllValues()) { result.addAll(interestedKeyPrefixes); } assertEquals(Sets.newHashSet("logging.level", "number"), result); } @Test public void testApolloConfigChangeListenerWithInterestedKeyPrefixes_fire() { // default mock, useless here // just for speed up test without waiting mockConfig(ConfigConsts.NAMESPACE_APPLICATION, mock(Config.class)); SimpleConfig simpleConfig = spy( this.prepareConfig( TestApolloConfigChangeListenerWithInterestedKeyPrefixesBean1.SPECIAL_NAMESPACE, new Properties())); mockConfig(TestApolloConfigChangeListenerWithInterestedKeyPrefixesBean1.SPECIAL_NAMESPACE, simpleConfig); TestApolloConfigChangeListenerWithInterestedKeyPrefixesBean1 bean = getBean( TestApolloConfigChangeListenerWithInterestedKeyPrefixesBean1.class, AppConfig11.class); verify(simpleConfig, atLeastOnce()) .addChangeListener(any(ConfigChangeListener.class), anySetOf(String.class), anySetOf(String.class)); Properties properties = new Properties(); properties.put("logging.level.com", "debug"); properties.put("logging.level.root", "warn"); properties.put("number.value", "333"); // publish config change simpleConfig.onRepositoryChange( TestApolloConfigChangeListenerWithInterestedKeyPrefixesBean1.SPECIAL_NAMESPACE, properties); // get event from bean ConfigChangeEvent configChangeEvent = bean.getConfigChangeEvent(); Set<String> interestedChangedKeys = configChangeEvent.interestedChangedKeys(); assertEquals(Sets.newHashSet("logging.level.com", "logging.level.root", "number.value"), interestedChangedKeys); } @Test public void testApolloConfigChangeListenerWithYamlFile() throws Exception { String someKey = "someKey"; String someValue = "someValue"; String anotherValue = "anotherValue"; YamlConfigFile configFile = prepareYamlConfigFile(APPLICATION_YAML_NAMESPACE, readYamlContentAsConfigFileProperties("case9.yml")); TestApolloConfigChangeListenerWithYamlFile bean = getBean(TestApolloConfigChangeListenerWithYamlFile.class, AppConfig9.class); Config yamlConfig = bean.getYamlConfig(); SettableFuture<ConfigChangeEvent> future = bean.getConfigChangeEventFuture(); assertEquals(someValue, yamlConfig.getProperty(someKey, null)); assertFalse(future.isDone()); configFile.onRepositoryChange(APPLICATION_YAML_NAMESPACE, readYamlContentAsConfigFileProperties("case9-new.yml")); ConfigChangeEvent configChangeEvent = future.get(100, TimeUnit.MILLISECONDS); ConfigChange change = configChangeEvent.getChange(someKey); assertEquals(someValue, change.getOldValue()); assertEquals(anotherValue, change.getNewValue()); assertEquals(anotherValue, yamlConfig.getProperty(someKey, null)); } @Test public void testApolloConfigChangeListenerResolveExpressionSimple() { // for ignore, no listener use it Config ignoreConfig = mock(Config.class); mockConfig("ignore.for.listener", ignoreConfig); Config applicationConfig = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, applicationConfig); getSimpleBean(TestApolloConfigChangeListenerResolveExpressionSimpleConfiguration.class); // no using verify(ignoreConfig, never()).addChangeListener(any(ConfigChangeListener.class)); // one invocation for spring value auto update and another for the @ApolloConfigChangeListener annotation verify(applicationConfig, times(2)).addChangeListener(any(ConfigChangeListener.class)); } /** * resolve namespace's name from system property. */ @Test public void testApolloConfigChangeListenerResolveExpressionFromSystemProperty() { Config applicationConfig = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, applicationConfig); final String namespaceName = "magicRedis"; System.setProperty(SystemPropertyKeyConstants.REDIS_NAMESPACE, namespaceName); Config redisConfig = mock(Config.class); mockConfig(namespaceName, redisConfig); getSimpleBean( TestApolloConfigChangeListenerResolveExpressionFromSystemPropertyConfiguration.class); // if config was used, it must be invoked on method addChangeListener 1 time verify(redisConfig, times(1)).addChangeListener(any(ConfigChangeListener.class)); } /** * resolve namespace from config. ${mysql.namespace} will be resolved by config from namespace * application. */ @Test public void testApolloConfigChangeListenerResolveExpressionFromApplicationNamespace() { final String namespaceKey = "mysql.namespace"; final String namespaceName = "magicMysqlNamespaceApplication"; Properties properties = new Properties(); properties.setProperty(namespaceKey, namespaceName); this.prepareConfig(ConfigConsts.NAMESPACE_APPLICATION, properties); Config mysqlConfig = mock(Config.class); mockConfig(namespaceName, mysqlConfig); getSimpleBean( TestApolloConfigChangeListenerResolveExpressionFromApplicationNamespaceConfiguration.class); // if config was used, it must be invoked on method addChangeListener 1 time verify(mysqlConfig, times(1)).addChangeListener(any(ConfigChangeListener.class)); } @Test(expected = BeanCreationException.class) public void testApolloConfigChangeListenerUnresolvedPlaceholder() { Config applicationConfig = mock(Config.class); mockConfig(ConfigConsts.NAMESPACE_APPLICATION, applicationConfig); getSimpleBean(TestApolloConfigChangeListenerUnresolvedPlaceholderConfiguration.class); } @Test public void testApolloConfigChangeListenerResolveExpressionFromSelfYaml() throws IOException { mockConfig(ConfigConsts.NAMESPACE_APPLICATION, mock(Config.class)); final String resolvedValue = "resolve.from.self.yml"; YamlConfigFile yamlConfigFile = prepareYamlConfigFile(resolvedValue, readYamlContentAsConfigFileProperties(resolvedValue)); getSimpleBean(TestApolloConfigChangeListenerResolveExpressionFromSelfYamlConfiguration.class); verify(yamlConfigFile, times(1)).addChangeListener(any(ConfigFileChangeListener.class)); } @Test public void testApolloConfigResolveExpressionDefault() { mockConfig(ConfigConsts.NAMESPACE_APPLICATION, mock(Config.class)); Config defaultConfig = mock(Config.class); Config yamlConfig = mock(Config.class); mockConfig("default-2020-11-14-1733", defaultConfig); mockConfig(APPLICATION_YAML_NAMESPACE, yamlConfig); TestApolloConfigResolveExpressionDefaultConfiguration configuration = getSimpleBean( TestApolloConfigResolveExpressionDefaultConfiguration.class); assertSame(defaultConfig, configuration.getDefaultConfig()); assertSame(yamlConfig, configuration.getYamlConfig()); } @Test public void testApolloConfigResolveExpressionFromSystemProperty() { mockConfig(ConfigConsts.NAMESPACE_APPLICATION, mock(Config.class)); final String namespaceName = "xxx6"; final String yamlNamespaceName = "yyy8.yml"; System.setProperty(SystemPropertyKeyConstants.FROM_SYSTEM_NAMESPACE, namespaceName); System.setProperty(SystemPropertyKeyConstants.FROM_SYSTEM_YAML_NAMESPACE, yamlNamespaceName); Config config = mock(Config.class); Config yamlConfig = mock(Config.class); mockConfig(namespaceName, config); mockConfig(yamlNamespaceName, yamlConfig); TestApolloConfigResolveExpressionFromSystemPropertyConfiguration configuration = getSimpleBean( TestApolloConfigResolveExpressionFromSystemPropertyConfiguration.class); assertSame(config, configuration.getConfig()); assertSame(yamlConfig, configuration.getYamlConfig()); } @Test(expected = BeanCreationException.class) public void testApolloConfigUnresolvedExpression() { mockConfig(ConfigConsts.NAMESPACE_APPLICATION, mock(Config.class)); getSimpleBean(TestApolloConfigUnresolvedExpressionConfiguration.class); } @Test public void testApolloConfigResolveExpressionFromApolloConfigNamespaceApplication() { final String namespaceName = "xxx6"; final String yamlNamespaceName = "yyy8.yml"; { // hide variable scope Properties properties = new Properties(); properties.setProperty(SystemPropertyKeyConstants.FROM_NAMESPACE_APPLICATION_KEY, namespaceName); properties.setProperty(SystemPropertyKeyConstants.FROM_NAMESPACE_APPLICATION_KEY_YAML, yamlNamespaceName); this.prepareConfig(ConfigConsts.NAMESPACE_APPLICATION, properties); } final Config config = mock(Config.class); final Config yamlConfig = mock(Config.class); mockConfig(namespaceName, config); mockConfig(yamlNamespaceName, yamlConfig); TestApolloConfigResolveExpressionFromApolloConfigNamespaceApplication configuration = getSimpleBean( TestApolloConfigResolveExpressionFromApolloConfigNamespaceApplication.class); assertSame(config, configuration.getConfig()); assertSame(yamlConfig, configuration.getYamlConfig()); } private static class SystemPropertyKeyConstants { static final String SIMPLE_NAMESPACE = "simple.namespace"; static final String REDIS_NAMESPACE = "redis.namespace"; static final String FROM_SYSTEM_NAMESPACE = "from.system.namespace"; static final String FROM_SYSTEM_YAML_NAMESPACE = "from.system.yaml.namespace"; static final String FROM_NAMESPACE_APPLICATION_KEY = "from.namespace.application.key"; static final String FROM_NAMESPACE_APPLICATION_KEY_YAML = "from.namespace.application.key.yaml"; } @EnableApolloConfig protected static class TestApolloConfigResolveExpressionDefaultConfiguration { @ApolloConfig(value = "${simple.namespace:default-2020-11-14-1733}") private Config defaultConfig; @ApolloConfig(value = "${simple.yaml.namespace:" + APPLICATION_YAML_NAMESPACE + "}") private Config yamlConfig; public Config getDefaultConfig() { return defaultConfig; } public Config getYamlConfig() { return yamlConfig; } } @EnableApolloConfig protected static class TestApolloConfigResolveExpressionFromSystemPropertyConfiguration { @ApolloConfig(value = "${from.system.namespace}") private Config config; @ApolloConfig(value = "${from.system.yaml.namespace}") private Config yamlConfig; public Config getConfig() { return config; } public Config getYamlConfig() { return yamlConfig; } } @EnableApolloConfig protected static class TestApolloConfigUnresolvedExpressionConfiguration { @ApolloConfig(value = "${so.complex.to.resolve}") private Config config; } @EnableApolloConfig protected static class TestApolloConfigResolveExpressionFromApolloConfigNamespaceApplication { @ApolloConfig(value = "${from.namespace.application.key}") private Config config; @ApolloConfig(value = "${from.namespace.application.key.yaml}") private Config yamlConfig; public Config getConfig() { return config; } public Config getYamlConfig() { return yamlConfig; } } @Configuration @EnableApolloConfig static class TestApolloConfigChangeListenerResolveExpressionSimpleConfiguration { @ApolloConfigChangeListener("${simple.application:application}") private void onChange(ConfigChangeEvent event) { } } @Configuration @EnableApolloConfig static class TestApolloConfigChangeListenerResolveExpressionFromSystemPropertyConfiguration { @ApolloConfigChangeListener("${redis.namespace}") private void onChange(ConfigChangeEvent event) { } } @Configuration @EnableApolloConfig static class TestApolloConfigChangeListenerResolveExpressionFromApplicationNamespaceConfiguration { @ApolloConfigChangeListener(value = {ConfigConsts.NAMESPACE_APPLICATION, "${mysql.namespace}"}) private void onChange(ConfigChangeEvent event) { } } @Configuration @EnableApolloConfig static class TestApolloConfigChangeListenerUnresolvedPlaceholderConfiguration { @ApolloConfigChangeListener(value = {ConfigConsts.NAMESPACE_APPLICATION, "${i.can.not.be.resolved}"}) private void onChange(ConfigChangeEvent event) { } } @Configuration @EnableApolloConfig("resolve.from.self.yml") static class TestApolloConfigChangeListenerResolveExpressionFromSelfYamlConfiguration { /** * value in file src/test/resources/spring/yaml/resolve.from.self.yml */ @ApolloConfigChangeListener("${i.can.resolve.from.self}") private void onChange(ConfigChangeEvent event) { } } @Configuration @EnableApolloConfig(value = {ConfigConsts.NAMESPACE_APPLICATION, "${simple.namespace:xxx}"}) static class TestEnableApolloConfigResolveExpressionWithDefaultValueConfiguration { @Value("${someKey-2020-11-14-1750}") private String someKey; public String getSomeKey() { return this.someKey; } } @Configuration @EnableApolloConfig(value = "${unresolvable.property}") static class TestEnableApolloConfigUnresolvableConfiguration { } @Configuration @EnableApolloConfig static class AppConfig1 { @Bean public TestApolloConfigBean1 bean() { return new TestApolloConfigBean1(); } } @Configuration @EnableApolloConfig static class AppConfig2 { @Bean public TestApolloConfigBean2 bean() { return new TestApolloConfigBean2(); } } @Configuration @EnableApolloConfig static class AppConfig3 { @Bean public TestApolloConfigChangeListenerBean1 bean() { return new TestApolloConfigChangeListenerBean1(); } } @Configuration @EnableApolloConfig static class AppConfig4 { @Bean public TestApolloConfigChangeListenerBean2 bean() { return new TestApolloConfigChangeListenerBean2(); } } @Configuration @EnableApolloConfig static class AppConfig5 { @Bean public TestApolloConfigChangeListenerBean3 bean() { return new TestApolloConfigChangeListenerBean3(); } } @Configuration @EnableApolloConfig static class AppConfig6 { @Bean public TestApolloChildConfigBean bean() { return new TestApolloChildConfigBean(); } } @Configuration @EnableApolloConfig static class AppConfig7 { @Bean public TestApolloChildConfigChangeListener bean() { return new TestApolloChildConfigChangeListener(); } } @Configuration @EnableApolloConfig static class AppConfig8 { @Bean public TestApolloConfigChangeListenerWithInterestedKeysBean bean() { return new TestApolloConfigChangeListenerWithInterestedKeysBean(); } } @Configuration @EnableApolloConfig(APPLICATION_YAML_NAMESPACE) static class AppConfig9 { @Bean public TestApolloConfigChangeListenerWithYamlFile bean() { return new TestApolloConfigChangeListenerWithYamlFile(); } } @Configuration @EnableApolloConfig static class AppConfig10 { @Bean public TestApolloConfigChangeListenerWithInterestedKeyPrefixesBean bean() { return new TestApolloConfigChangeListenerWithInterestedKeyPrefixesBean(); } } @Configuration @EnableApolloConfig static class AppConfig11 { @Bean public TestApolloConfigChangeListenerWithInterestedKeyPrefixesBean1 bean() { return spy(new TestApolloConfigChangeListenerWithInterestedKeyPrefixesBean1()); } } static class TestApolloConfigBean1 { @ApolloConfig private Config config; @ApolloConfig(ConfigConsts.NAMESPACE_APPLICATION) private Config anotherConfig; @ApolloConfig(FX_APOLLO_NAMESPACE) private Config yetAnotherConfig; @ApolloConfig(APPLICATION_YAML_NAMESPACE) private Config yamlConfig; public Config getConfig() { return config; } public Config getAnotherConfig() { return anotherConfig; } public Config getYetAnotherConfig() { return yetAnotherConfig; } public Config getYamlConfig() { return yamlConfig; } } static class TestApolloConfigBean2 { @ApolloConfig private String config; } static class TestApolloChildConfigBean extends TestApolloConfigBean1 { @ApolloConfig private Config someConfig; public Config getSomeConfig() { return someConfig; } } static class TestApolloConfigChangeListenerBean1 { private ConfigChangeEvent changeEvent1; private ConfigChangeEvent changeEvent2; private ConfigChangeEvent changeEvent3; @ApolloConfigChangeListener private void onChange1(ConfigChangeEvent changeEvent) { this.changeEvent1 = changeEvent; } @ApolloConfigChangeListener(ConfigConsts.NAMESPACE_APPLICATION) private void onChange2(ConfigChangeEvent changeEvent) { this.changeEvent2 = changeEvent; } @ApolloConfigChangeListener({ConfigConsts.NAMESPACE_APPLICATION, FX_APOLLO_NAMESPACE}) private void onChange3(ConfigChangeEvent changeEvent) { this.changeEvent3 = changeEvent; } public ConfigChangeEvent getChangeEvent1() { return changeEvent1; } public ConfigChangeEvent getChangeEvent2() { return changeEvent2; } public ConfigChangeEvent getChangeEvent3() { return changeEvent3; } } static class TestApolloConfigChangeListenerBean2 { @ApolloConfigChangeListener private void onChange(String event) { } } static class TestApolloConfigChangeListenerBean3 { @ApolloConfigChangeListener private void onChange(ConfigChangeEvent event, String someParam) { } } static class TestApolloChildConfigChangeListener extends TestApolloConfigChangeListenerBean1 { private ConfigChangeEvent someChangeEvent; @ApolloConfigChangeListener private void someOnChange(ConfigChangeEvent changeEvent) { this.someChangeEvent = changeEvent; } public ConfigChangeEvent getSomeChangeEvent() { return someChangeEvent; } } static class TestApolloConfigChangeListenerWithInterestedKeysBean { @ApolloConfigChangeListener(interestedKeys = {"someKey"}) private void someOnChange(ConfigChangeEvent changeEvent) {} @ApolloConfigChangeListener(value = {ConfigConsts.NAMESPACE_APPLICATION, FX_APOLLO_NAMESPACE}, interestedKeys = {"anotherKey"}) private void anotherOnChange(ConfigChangeEvent changeEvent) { } } private static class TestApolloConfigChangeListenerWithInterestedKeyPrefixesBean { @ApolloConfigChangeListener(interestedKeyPrefixes = {"number", "logging.level"}) private void onChange(ConfigChangeEvent changeEvent) { } } private static class TestApolloConfigChangeListenerWithInterestedKeyPrefixesBean1 { static final String SPECIAL_NAMESPACE = "special-namespace-2021"; private final Queue<ConfigChangeEvent> configChangeEventQueue = new ArrayBlockingQueue<>(100); @ApolloConfigChangeListener(value = SPECIAL_NAMESPACE, interestedKeyPrefixes = {"number", "logging.level"}) private void onChange(ConfigChangeEvent changeEvent) { this.configChangeEventQueue.add(changeEvent); } public ConfigChangeEvent getConfigChangeEvent() { return this.configChangeEventQueue.poll(); } } static class TestApolloConfigChangeListenerWithYamlFile { private SettableFuture<ConfigChangeEvent> configChangeEventFuture = SettableFuture.create(); @ApolloConfig(APPLICATION_YAML_NAMESPACE) private Config yamlConfig; @ApolloConfigChangeListener(APPLICATION_YAML_NAMESPACE) private void onChange(ConfigChangeEvent event) { configChangeEventFuture.set(event); } public SettableFuture<ConfigChangeEvent> getConfigChangeEventFuture() { return configChangeEventFuture; } public Config getYamlConfig() { return yamlConfig; } } }
1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/entity/po/Favorite.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.entity.po; import com.ctrip.framework.apollo.common.entity.BaseEntity; import org.hibernate.annotations.SQLDelete; import org.hibernate.annotations.Where; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Table; @Entity @Table(name = "Favorite") @SQLDelete(sql = "Update Favorite set isDeleted = 1 where id = ?") @Where(clause = "isDeleted = 0") public class Favorite extends BaseEntity { @Column(name = "AppId", nullable = false) private String appId; @Column(name = "UserId", nullable = false) private String userId; @Column(name = "Position") private long position; public String getAppId() { return appId; } public void setAppId(String appId) { this.appId = appId; } public String getUserId() { return userId; } public void setUserId(String userId) { this.userId = userId; } public long getPosition() { return position; } public void setPosition(long position) { this.position = position; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.entity.po; import com.ctrip.framework.apollo.common.entity.BaseEntity; import org.hibernate.annotations.SQLDelete; import org.hibernate.annotations.Where; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Table; @Entity @Table(name = "Favorite") @SQLDelete(sql = "Update Favorite set isDeleted = 1 where id = ?") @Where(clause = "isDeleted = 0") public class Favorite extends BaseEntity { @Column(name = "AppId", nullable = false) private String appId; @Column(name = "UserId", nullable = false) private String userId; @Column(name = "Position") private long position; public String getAppId() { return appId; } public void setAppId(String appId) { this.appId = appId; } public String getUserId() { return userId; } public void setUserId(String userId) { this.userId = userId; } public long getPosition() { return position; } public void setPosition(long position) { this.position = position; } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-common/src/main/java/com/ctrip/framework/apollo/common/entity/AppNamespace.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.common.entity; import com.ctrip.framework.apollo.common.utils.InputValidator; import com.ctrip.framework.apollo.core.enums.ConfigFileFormat; import javax.validation.constraints.NotBlank; import javax.validation.constraints.Pattern; import org.hibernate.annotations.SQLDelete; import org.hibernate.annotations.Where; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Table; @Entity @Table(name = "AppNamespace") @SQLDelete(sql = "Update AppNamespace set isDeleted = 1 where id = ?") @Where(clause = "isDeleted = 0") public class AppNamespace extends BaseEntity { @NotBlank(message = "AppNamespace Name cannot be blank") @Pattern( regexp = InputValidator.CLUSTER_NAMESPACE_VALIDATOR, message = "Invalid Namespace format: " + InputValidator.INVALID_CLUSTER_NAMESPACE_MESSAGE + " & " + InputValidator.INVALID_NAMESPACE_NAMESPACE_MESSAGE ) @Column(name = "Name", nullable = false) private String name; @NotBlank(message = "AppId cannot be blank") @Column(name = "AppId", nullable = false) private String appId; @Column(name = "Format", nullable = false) private String format; @Column(name = "IsPublic", columnDefinition = "Bit default '0'") private boolean isPublic = false; @Column(name = "Comment") private String comment; public String getAppId() { return appId; } public String getComment() { return comment; } public String getName() { return name; } public void setAppId(String appId) { this.appId = appId; } public void setComment(String comment) { this.comment = comment; } public void setName(String name) { this.name = name; } public boolean isPublic() { return isPublic; } public void setPublic(boolean aPublic) { isPublic = aPublic; } public ConfigFileFormat formatAsEnum() { return ConfigFileFormat.fromString(this.format); } public String getFormat() { return format; } public void setFormat(String format) { this.format = format; } public String toString() { return toStringHelper().add("name", name).add("appId", appId).add("comment", comment) .add("format", format).add("isPublic", isPublic).toString(); } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.common.entity; import com.ctrip.framework.apollo.common.utils.InputValidator; import com.ctrip.framework.apollo.core.enums.ConfigFileFormat; import javax.validation.constraints.NotBlank; import javax.validation.constraints.Pattern; import org.hibernate.annotations.SQLDelete; import org.hibernate.annotations.Where; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Table; @Entity @Table(name = "AppNamespace") @SQLDelete(sql = "Update AppNamespace set isDeleted = 1 where id = ?") @Where(clause = "isDeleted = 0") public class AppNamespace extends BaseEntity { @NotBlank(message = "AppNamespace Name cannot be blank") @Pattern( regexp = InputValidator.CLUSTER_NAMESPACE_VALIDATOR, message = "Invalid Namespace format: " + InputValidator.INVALID_CLUSTER_NAMESPACE_MESSAGE + " & " + InputValidator.INVALID_NAMESPACE_NAMESPACE_MESSAGE ) @Column(name = "Name", nullable = false) private String name; @NotBlank(message = "AppId cannot be blank") @Column(name = "AppId", nullable = false) private String appId; @Column(name = "Format", nullable = false) private String format; @Column(name = "IsPublic", columnDefinition = "Bit default '0'") private boolean isPublic = false; @Column(name = "Comment") private String comment; public String getAppId() { return appId; } public String getComment() { return comment; } public String getName() { return name; } public void setAppId(String appId) { this.appId = appId; } public void setComment(String comment) { this.comment = comment; } public void setName(String name) { this.name = name; } public boolean isPublic() { return isPublic; } public void setPublic(boolean aPublic) { isPublic = aPublic; } public ConfigFileFormat formatAsEnum() { return ConfigFileFormat.fromString(this.format); } public String getFormat() { return format; } public void setFormat(String format) { this.format = format; } public String toString() { return toStringHelper().add("name", name).add("appId", appId).add("comment", comment) .add("format", format).add("isPublic", isPublic).toString(); } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/ConsumerController.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.controller; import com.ctrip.framework.apollo.common.dto.NamespaceDTO; import com.ctrip.framework.apollo.common.exception.BadRequestException; import com.ctrip.framework.apollo.core.utils.StringUtils; import com.ctrip.framework.apollo.openapi.entity.Consumer; import com.ctrip.framework.apollo.openapi.entity.ConsumerRole; import com.ctrip.framework.apollo.openapi.entity.ConsumerToken; import com.ctrip.framework.apollo.openapi.service.ConsumerService; import com.ctrip.framework.apollo.portal.environment.Env; import com.google.common.base.Strings; import com.google.common.collect.Lists; import org.springframework.format.annotation.DateTimeFormat; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.transaction.annotation.Transactional; import org.springframework.web.bind.annotation.*; import java.util.*; /** * @author Jason Song([email protected]) */ @RestController public class ConsumerController { private static final Date DEFAULT_EXPIRES = new GregorianCalendar(2099, Calendar.JANUARY, 1).getTime(); private final ConsumerService consumerService; public ConsumerController(final ConsumerService consumerService) { this.consumerService = consumerService; } @Transactional @PreAuthorize(value = "@permissionValidator.isSuperAdmin()") @PostMapping(value = "/consumers") public ConsumerToken createConsumer(@RequestBody Consumer consumer, @RequestParam(value = "expires", required = false) @DateTimeFormat(pattern = "yyyyMMddHHmmss") Date expires) { if (StringUtils.isContainEmpty(consumer.getAppId(), consumer.getName(), consumer.getOwnerName(), consumer.getOrgId())) { throw new BadRequestException("Params(appId、name、ownerName、orgId) can not be empty."); } Consumer createdConsumer = consumerService.createConsumer(consumer); if (Objects.isNull(expires)) { expires = DEFAULT_EXPIRES; } return consumerService.generateAndSaveConsumerToken(createdConsumer, expires); } @GetMapping(value = "/consumers/by-appId") public ConsumerToken getConsumerTokenByAppId(@RequestParam String appId) { return consumerService.getConsumerTokenByAppId(appId); } @PreAuthorize(value = "@permissionValidator.isSuperAdmin()") @PostMapping(value = "/consumers/{token}/assign-role") public List<ConsumerRole> assignNamespaceRoleToConsumer(@PathVariable String token, @RequestParam String type, @RequestParam(required = false) String envs, @RequestBody NamespaceDTO namespace) { String appId = namespace.getAppId(); String namespaceName = namespace.getNamespaceName(); if (StringUtils.isEmpty(appId)) { throw new BadRequestException("Params(AppId) can not be empty."); } if (Objects.equals("AppRole", type)) { return Collections.singletonList(consumerService.assignAppRoleToConsumer(token, appId)); } if (StringUtils.isEmpty(namespaceName)) { throw new BadRequestException("Params(NamespaceName) can not be empty."); } if (null != envs){ String[] envArray = envs.split(","); List<String> envList = Lists.newArrayList(); // validate env parameter for (String env : envArray) { if (Strings.isNullOrEmpty(env)) { continue; } if (Env.UNKNOWN.equals(Env.transformEnv(env))) { throw new BadRequestException(String.format("env: %s is illegal", env)); } envList.add(env); } List<ConsumerRole> consumeRoles = new ArrayList<>(); for (String env : envList) { consumeRoles.addAll(consumerService.assignNamespaceRoleToConsumer(token, appId, namespaceName, env)); } return consumeRoles; } return consumerService.assignNamespaceRoleToConsumer(token, appId, namespaceName); } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.controller; import com.ctrip.framework.apollo.common.dto.NamespaceDTO; import com.ctrip.framework.apollo.common.exception.BadRequestException; import com.ctrip.framework.apollo.core.utils.StringUtils; import com.ctrip.framework.apollo.openapi.entity.Consumer; import com.ctrip.framework.apollo.openapi.entity.ConsumerRole; import com.ctrip.framework.apollo.openapi.entity.ConsumerToken; import com.ctrip.framework.apollo.openapi.service.ConsumerService; import com.ctrip.framework.apollo.portal.environment.Env; import com.google.common.base.Strings; import com.google.common.collect.Lists; import org.springframework.format.annotation.DateTimeFormat; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.transaction.annotation.Transactional; import org.springframework.web.bind.annotation.*; import java.util.*; /** * @author Jason Song([email protected]) */ @RestController public class ConsumerController { private static final Date DEFAULT_EXPIRES = new GregorianCalendar(2099, Calendar.JANUARY, 1).getTime(); private final ConsumerService consumerService; public ConsumerController(final ConsumerService consumerService) { this.consumerService = consumerService; } @Transactional @PreAuthorize(value = "@permissionValidator.isSuperAdmin()") @PostMapping(value = "/consumers") public ConsumerToken createConsumer(@RequestBody Consumer consumer, @RequestParam(value = "expires", required = false) @DateTimeFormat(pattern = "yyyyMMddHHmmss") Date expires) { if (StringUtils.isContainEmpty(consumer.getAppId(), consumer.getName(), consumer.getOwnerName(), consumer.getOrgId())) { throw new BadRequestException("Params(appId、name、ownerName、orgId) can not be empty."); } Consumer createdConsumer = consumerService.createConsumer(consumer); if (Objects.isNull(expires)) { expires = DEFAULT_EXPIRES; } return consumerService.generateAndSaveConsumerToken(createdConsumer, expires); } @GetMapping(value = "/consumers/by-appId") public ConsumerToken getConsumerTokenByAppId(@RequestParam String appId) { return consumerService.getConsumerTokenByAppId(appId); } @PreAuthorize(value = "@permissionValidator.isSuperAdmin()") @PostMapping(value = "/consumers/{token}/assign-role") public List<ConsumerRole> assignNamespaceRoleToConsumer(@PathVariable String token, @RequestParam String type, @RequestParam(required = false) String envs, @RequestBody NamespaceDTO namespace) { String appId = namespace.getAppId(); String namespaceName = namespace.getNamespaceName(); if (StringUtils.isEmpty(appId)) { throw new BadRequestException("Params(AppId) can not be empty."); } if (Objects.equals("AppRole", type)) { return Collections.singletonList(consumerService.assignAppRoleToConsumer(token, appId)); } if (StringUtils.isEmpty(namespaceName)) { throw new BadRequestException("Params(NamespaceName) can not be empty."); } if (null != envs){ String[] envArray = envs.split(","); List<String> envList = Lists.newArrayList(); // validate env parameter for (String env : envArray) { if (Strings.isNullOrEmpty(env)) { continue; } if (Env.UNKNOWN.equals(Env.transformEnv(env))) { throw new BadRequestException(String.format("env: %s is illegal", env)); } envList.add(env); } List<ConsumerRole> consumeRoles = new ArrayList<>(); for (String env : envList) { consumeRoles.addAll(consumerService.assignNamespaceRoleToConsumer(token, appId, namespaceName, env)); } return consumeRoles; } return consumerService.assignNamespaceRoleToConsumer(token, appId, namespaceName); } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/ctrip/CtripMQService.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.spi.ctrip; import com.google.gson.Gson; import com.ctrip.framework.apollo.common.entity.App; import com.ctrip.framework.apollo.portal.environment.Env; import com.ctrip.framework.apollo.portal.component.config.PortalConfig; import com.ctrip.framework.apollo.portal.entity.bo.ReleaseHistoryBO; import com.ctrip.framework.apollo.portal.service.AppService; import com.ctrip.framework.apollo.portal.service.ReleaseService; import com.ctrip.framework.apollo.portal.spi.MQService; import com.ctrip.framework.apollo.tracer.Tracer; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpEntity; import org.springframework.http.HttpHeaders; import org.springframework.http.MediaType; import org.springframework.http.client.SimpleClientHttpRequestFactory; import org.springframework.http.converter.FormHttpMessageConverter; import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter; import org.springframework.web.client.RestTemplate; import java.util.Arrays; import javax.annotation.PostConstruct; public class CtripMQService implements MQService { private static final org.apache.commons.lang.time.FastDateFormat TIMESTAMP_FORMAT = org.apache.commons.lang.time.FastDateFormat.getInstance("yyyy-MM-dd hh:mm:ss"); private static final String CONFIG_PUBLISH_NOTIFY_TO_NOC_TOPIC = "ops.noc.record.created"; private static final Gson GSON = new Gson(); @Autowired private AppService appService; @Autowired private ReleaseService releaseService; @Autowired private PortalConfig portalConfig; private RestTemplate restTemplate; @PostConstruct public void init() { restTemplate = new RestTemplate(); SimpleClientHttpRequestFactory rf = (SimpleClientHttpRequestFactory) restTemplate.getRequestFactory(); rf.setReadTimeout(portalConfig.readTimeout()); rf.setConnectTimeout(portalConfig.connectTimeout()); MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter(); converter.setSupportedMediaTypes( Arrays.asList(MediaType.APPLICATION_JSON_UTF8, MediaType.APPLICATION_OCTET_STREAM)); restTemplate.setMessageConverters(Arrays.asList(converter, new FormHttpMessageConverter())); } @Override public void sendPublishMsg(Env env, ReleaseHistoryBO releaseHistory) { if (releaseHistory == null) { return; } PublishMsg msg = buildPublishMsg(env, releaseHistory); sendMsg(portalConfig.hermesServerAddress(), CONFIG_PUBLISH_NOTIFY_TO_NOC_TOPIC, msg); } private PublishMsg buildPublishMsg(Env env, ReleaseHistoryBO releaseHistory) { PublishMsg msg = new PublishMsg(); msg.setPriority("中"); msg.setTool_origin("Apollo"); String appId = releaseHistory.getAppId(); App app = appService.load(appId); msg.setInfluence_bu(app.getOrgName()); msg.setAppid(appId); msg.setAssginee(releaseHistory.getOperator()); msg.setOperation_time(TIMESTAMP_FORMAT.format(releaseHistory.getReleaseTime())); msg.setDesc(GSON.toJson(releaseService.compare(env, releaseHistory.getPreviousReleaseId(), releaseHistory.getReleaseId()))); return msg; } private void sendMsg(String serverAddress, String topic, Object msg) { HttpHeaders headers = new HttpHeaders(); headers.setContentType(MediaType.parseMediaType(MediaType.APPLICATION_OCTET_STREAM + ";charset=UTF-8")); HttpEntity<Object> request = new HttpEntity<>(msg, headers); try { //send msg by hermes RestAPI restTemplate.postForObject(serverAddress + "/topics/" + topic, request, Object.class); } catch (Exception e) { Tracer.logError("Send publish msg to hermes failed", e); } } private static class PublishMsg { private String assginee; private String desc; private String operation_time; private String tool_origin; private String priority; private String influence_bu; private String appid; public String getAssginee() { return assginee; } public void setAssginee(String assginee) { this.assginee = assginee; } public String getDesc() { return desc; } public void setDesc(String desc) { this.desc = desc; } public String getOperation_time() { return operation_time; } public void setOperation_time(String operation_time) { this.operation_time = operation_time; } public String getTool_origin() { return tool_origin; } public void setTool_origin(String tool_origin) { this.tool_origin = tool_origin; } public String getPriority() { return priority; } public void setPriority(String priority) { this.priority = priority; } public String getInfluence_bu() { return influence_bu; } public void setInfluence_bu(String influence_bu) { this.influence_bu = influence_bu; } public String getAppid() { return appid; } public void setAppid(String appid) { this.appid = appid; } } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.spi.ctrip; import com.google.gson.Gson; import com.ctrip.framework.apollo.common.entity.App; import com.ctrip.framework.apollo.portal.environment.Env; import com.ctrip.framework.apollo.portal.component.config.PortalConfig; import com.ctrip.framework.apollo.portal.entity.bo.ReleaseHistoryBO; import com.ctrip.framework.apollo.portal.service.AppService; import com.ctrip.framework.apollo.portal.service.ReleaseService; import com.ctrip.framework.apollo.portal.spi.MQService; import com.ctrip.framework.apollo.tracer.Tracer; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpEntity; import org.springframework.http.HttpHeaders; import org.springframework.http.MediaType; import org.springframework.http.client.SimpleClientHttpRequestFactory; import org.springframework.http.converter.FormHttpMessageConverter; import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter; import org.springframework.web.client.RestTemplate; import java.util.Arrays; import javax.annotation.PostConstruct; public class CtripMQService implements MQService { private static final org.apache.commons.lang.time.FastDateFormat TIMESTAMP_FORMAT = org.apache.commons.lang.time.FastDateFormat.getInstance("yyyy-MM-dd hh:mm:ss"); private static final String CONFIG_PUBLISH_NOTIFY_TO_NOC_TOPIC = "ops.noc.record.created"; private static final Gson GSON = new Gson(); @Autowired private AppService appService; @Autowired private ReleaseService releaseService; @Autowired private PortalConfig portalConfig; private RestTemplate restTemplate; @PostConstruct public void init() { restTemplate = new RestTemplate(); SimpleClientHttpRequestFactory rf = (SimpleClientHttpRequestFactory) restTemplate.getRequestFactory(); rf.setReadTimeout(portalConfig.readTimeout()); rf.setConnectTimeout(portalConfig.connectTimeout()); MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter(); converter.setSupportedMediaTypes( Arrays.asList(MediaType.APPLICATION_JSON_UTF8, MediaType.APPLICATION_OCTET_STREAM)); restTemplate.setMessageConverters(Arrays.asList(converter, new FormHttpMessageConverter())); } @Override public void sendPublishMsg(Env env, ReleaseHistoryBO releaseHistory) { if (releaseHistory == null) { return; } PublishMsg msg = buildPublishMsg(env, releaseHistory); sendMsg(portalConfig.hermesServerAddress(), CONFIG_PUBLISH_NOTIFY_TO_NOC_TOPIC, msg); } private PublishMsg buildPublishMsg(Env env, ReleaseHistoryBO releaseHistory) { PublishMsg msg = new PublishMsg(); msg.setPriority("中"); msg.setTool_origin("Apollo"); String appId = releaseHistory.getAppId(); App app = appService.load(appId); msg.setInfluence_bu(app.getOrgName()); msg.setAppid(appId); msg.setAssginee(releaseHistory.getOperator()); msg.setOperation_time(TIMESTAMP_FORMAT.format(releaseHistory.getReleaseTime())); msg.setDesc(GSON.toJson(releaseService.compare(env, releaseHistory.getPreviousReleaseId(), releaseHistory.getReleaseId()))); return msg; } private void sendMsg(String serverAddress, String topic, Object msg) { HttpHeaders headers = new HttpHeaders(); headers.setContentType(MediaType.parseMediaType(MediaType.APPLICATION_OCTET_STREAM + ";charset=UTF-8")); HttpEntity<Object> request = new HttpEntity<>(msg, headers); try { //send msg by hermes RestAPI restTemplate.postForObject(serverAddress + "/topics/" + topic, request, Object.class); } catch (Exception e) { Tracer.logError("Send publish msg to hermes failed", e); } } private static class PublishMsg { private String assginee; private String desc; private String operation_time; private String tool_origin; private String priority; private String influence_bu; private String appid; public String getAssginee() { return assginee; } public void setAssginee(String assginee) { this.assginee = assginee; } public String getDesc() { return desc; } public void setDesc(String desc) { this.desc = desc; } public String getOperation_time() { return operation_time; } public void setOperation_time(String operation_time) { this.operation_time = operation_time; } public String getTool_origin() { return tool_origin; } public void setTool_origin(String tool_origin) { this.tool_origin = tool_origin; } public String getPriority() { return priority; } public void setPriority(String priority) { this.priority = priority; } public String getInfluence_bu() { return influence_bu; } public void setInfluence_bu(String influence_bu) { this.influence_bu = influence_bu; } public String getAppid() { return appid; } public void setAppid(String appid) { this.appid = appid; } } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/configuration/RoleConfiguration.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.spi.configuration; import com.ctrip.framework.apollo.portal.service.RoleInitializationService; import com.ctrip.framework.apollo.portal.service.RolePermissionService; import com.ctrip.framework.apollo.portal.spi.defaultimpl.DefaultRoleInitializationService; import com.ctrip.framework.apollo.portal.spi.defaultimpl.DefaultRolePermissionService; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; /** * @author Timothy Liu([email protected]) */ @Configuration public class RoleConfiguration { @Bean public RoleInitializationService roleInitializationService() { return new DefaultRoleInitializationService(); } @Bean public RolePermissionService rolePermissionService() { return new DefaultRolePermissionService(); } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.spi.configuration; import com.ctrip.framework.apollo.portal.service.RoleInitializationService; import com.ctrip.framework.apollo.portal.service.RolePermissionService; import com.ctrip.framework.apollo.portal.spi.defaultimpl.DefaultRoleInitializationService; import com.ctrip.framework.apollo.portal.spi.defaultimpl.DefaultRolePermissionService; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; /** * @author Timothy Liu([email protected]) */ @Configuration public class RoleConfiguration { @Bean public RoleInitializationService roleInitializationService() { return new DefaultRoleInitializationService(); } @Bean public RolePermissionService rolePermissionService() { return new DefaultRolePermissionService(); } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/ItemService.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.service; import com.ctrip.framework.apollo.common.constants.GsonType; import com.ctrip.framework.apollo.common.dto.ItemChangeSets; import com.ctrip.framework.apollo.common.dto.ItemDTO; import com.ctrip.framework.apollo.common.dto.NamespaceDTO; import com.ctrip.framework.apollo.common.dto.ReleaseDTO; import com.ctrip.framework.apollo.common.exception.BadRequestException; import com.ctrip.framework.apollo.common.utils.BeanUtils; import com.ctrip.framework.apollo.core.enums.ConfigFileFormat; import com.ctrip.framework.apollo.portal.api.AdminServiceAPI.ItemAPI; import com.ctrip.framework.apollo.portal.api.AdminServiceAPI.NamespaceAPI; import com.ctrip.framework.apollo.portal.api.AdminServiceAPI.ReleaseAPI; import com.ctrip.framework.apollo.portal.environment.Env; import com.ctrip.framework.apollo.core.utils.StringUtils; import com.ctrip.framework.apollo.portal.api.AdminServiceAPI; import com.ctrip.framework.apollo.portal.component.txtresolver.ConfigTextResolver; import com.ctrip.framework.apollo.portal.constant.TracerEventType; import com.ctrip.framework.apollo.portal.entity.model.NamespaceTextModel; import com.ctrip.framework.apollo.portal.entity.vo.ItemDiffs; import com.ctrip.framework.apollo.portal.entity.vo.NamespaceIdentifier; import com.ctrip.framework.apollo.portal.spi.UserInfoHolder; import com.ctrip.framework.apollo.tracer.Tracer; import com.google.gson.Gson; import java.util.HashMap; import java.util.concurrent.atomic.AtomicInteger; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.http.HttpStatus; import org.springframework.stereotype.Service; import org.springframework.util.CollectionUtils; import org.springframework.web.client.HttpClientErrorException; import java.util.LinkedList; import java.util.List; import java.util.Map; @Service public class ItemService { private static final Gson GSON = new Gson(); private final UserInfoHolder userInfoHolder; private final AdminServiceAPI.NamespaceAPI namespaceAPI; private final AdminServiceAPI.ItemAPI itemAPI; private final AdminServiceAPI.ReleaseAPI releaseAPI; private final ConfigTextResolver fileTextResolver; private final ConfigTextResolver propertyResolver; public ItemService( final UserInfoHolder userInfoHolder, final NamespaceAPI namespaceAPI, final ItemAPI itemAPI, final ReleaseAPI releaseAPI, final @Qualifier("fileTextResolver") ConfigTextResolver fileTextResolver, final @Qualifier("propertyResolver") ConfigTextResolver propertyResolver) { this.userInfoHolder = userInfoHolder; this.namespaceAPI = namespaceAPI; this.itemAPI = itemAPI; this.releaseAPI = releaseAPI; this.fileTextResolver = fileTextResolver; this.propertyResolver = propertyResolver; } /** * parse config text and update config items * * @return parse result */ public void updateConfigItemByText(NamespaceTextModel model) { String appId = model.getAppId(); Env env = model.getEnv(); String clusterName = model.getClusterName(); String namespaceName = model.getNamespaceName(); NamespaceDTO namespace = namespaceAPI.loadNamespace(appId, env, clusterName, namespaceName); if (namespace == null) { throw new BadRequestException( "namespace:" + namespaceName + " not exist in env:" + env + ", cluster:" + clusterName); } long namespaceId = namespace.getId(); String configText = model.getConfigText(); ConfigTextResolver resolver = model.getFormat() == ConfigFileFormat.Properties ? propertyResolver : fileTextResolver; ItemChangeSets changeSets = resolver.resolve(namespaceId, configText, itemAPI.findItems(appId, env, clusterName, namespaceName)); if (changeSets.isEmpty()) { return; } changeSets.setDataChangeLastModifiedBy(userInfoHolder.getUser().getUserId()); updateItems(appId, env, clusterName, namespaceName, changeSets); Tracer.logEvent(TracerEventType.MODIFY_NAMESPACE_BY_TEXT, String.format("%s+%s+%s+%s", appId, env, clusterName, namespaceName)); Tracer.logEvent(TracerEventType.MODIFY_NAMESPACE, String.format("%s+%s+%s+%s", appId, env, clusterName, namespaceName)); } public void updateItems(String appId, Env env, String clusterName, String namespaceName, ItemChangeSets changeSets){ itemAPI.updateItemsByChangeSet(appId, env, clusterName, namespaceName, changeSets); } public ItemDTO createItem(String appId, Env env, String clusterName, String namespaceName, ItemDTO item) { NamespaceDTO namespace = namespaceAPI.loadNamespace(appId, env, clusterName, namespaceName); if (namespace == null) { throw new BadRequestException( "namespace:" + namespaceName + " not exist in env:" + env + ", cluster:" + clusterName); } item.setNamespaceId(namespace.getId()); ItemDTO itemDTO = itemAPI.createItem(appId, env, clusterName, namespaceName, item); Tracer.logEvent(TracerEventType.MODIFY_NAMESPACE, String.format("%s+%s+%s+%s", appId, env, clusterName, namespaceName)); return itemDTO; } public void updateItem(String appId, Env env, String clusterName, String namespaceName, ItemDTO item) { itemAPI.updateItem(appId, env, clusterName, namespaceName, item.getId(), item); } public void deleteItem(Env env, long itemId, String userId) { itemAPI.deleteItem(env, itemId, userId); } public List<ItemDTO> findItems(String appId, Env env, String clusterName, String namespaceName) { return itemAPI.findItems(appId, env, clusterName, namespaceName); } public List<ItemDTO> findDeletedItems(String appId, Env env, String clusterName, String namespaceName) { return itemAPI.findDeletedItems(appId, env, clusterName, namespaceName); } public ItemDTO loadItem(Env env, String appId, String clusterName, String namespaceName, String key) { return itemAPI.loadItem(env, appId, clusterName, namespaceName, key); } public ItemDTO loadItemById(Env env, long itemId) { ItemDTO item = itemAPI.loadItemById(env, itemId); if (item == null) { throw new BadRequestException("item not found for itemId " + itemId); } return item; } public void syncItems(List<NamespaceIdentifier> comparedNamespaces, List<ItemDTO> sourceItems) { List<ItemDiffs> itemDiffs = compare(comparedNamespaces, sourceItems); for (ItemDiffs itemDiff : itemDiffs) { NamespaceIdentifier namespaceIdentifier = itemDiff.getNamespace(); ItemChangeSets changeSets = itemDiff.getDiffs(); changeSets.setDataChangeLastModifiedBy(userInfoHolder.getUser().getUserId()); String appId = namespaceIdentifier.getAppId(); Env env = namespaceIdentifier.getEnv(); String clusterName = namespaceIdentifier.getClusterName(); String namespaceName = namespaceIdentifier.getNamespaceName(); itemAPI.updateItemsByChangeSet(appId, env, clusterName, namespaceName, changeSets); Tracer.logEvent(TracerEventType.SYNC_NAMESPACE, String.format("%s+%s+%s+%s", appId, env, clusterName, namespaceName)); } } public void revokeItem(String appId, Env env, String clusterName, String namespaceName) { NamespaceDTO namespace = namespaceAPI.loadNamespace(appId, env, clusterName, namespaceName); if (namespace == null) { throw new BadRequestException( "namespace:" + namespaceName + " not exist in env:" + env + ", cluster:" + clusterName); } long namespaceId = namespace.getId(); Map<String, String> releaseItemDTOs = new HashMap<>(); ReleaseDTO latestRelease = releaseAPI.loadLatestRelease(appId,env,clusterName,namespaceName); if (latestRelease != null) { releaseItemDTOs = GSON.fromJson(latestRelease.getConfigurations(), GsonType.CONFIG); } List<ItemDTO> baseItems = itemAPI.findItems(appId, env, clusterName, namespaceName); Map<String, ItemDTO> oldKeyMapItem = BeanUtils.mapByKey("key", baseItems); Map<String, ItemDTO> deletedItemDTOs = new HashMap<>(); //deleted items for comment findDeletedItems(appId, env, clusterName, namespaceName).forEach(item -> { deletedItemDTOs.put(item.getKey(),item); }); ItemChangeSets changeSets = new ItemChangeSets(); AtomicInteger lineNum = new AtomicInteger(1); releaseItemDTOs.forEach((key,value) -> { ItemDTO oldItem = oldKeyMapItem.get(key); if (oldItem == null) { ItemDTO deletedItemDto = deletedItemDTOs.computeIfAbsent(key, k -> new ItemDTO()); changeSets.addCreateItem(buildNormalItem(0L, namespaceId,key,value,deletedItemDto.getComment(),lineNum.get())); } else if (!oldItem.getValue().equals(value) || lineNum.get() != oldItem .getLineNum()) { changeSets.addUpdateItem(buildNormalItem(oldItem.getId(), namespaceId, key, value, oldItem.getComment(), lineNum.get())); } oldKeyMapItem.remove(key); lineNum.set(lineNum.get() + 1); }); oldKeyMapItem.forEach((key, value) -> changeSets.addDeleteItem(oldKeyMapItem.get(key))); changeSets.setDataChangeLastModifiedBy(userInfoHolder.getUser().getUserId()); updateItems(appId, env, clusterName, namespaceName, changeSets); Tracer.logEvent(TracerEventType.MODIFY_NAMESPACE_BY_TEXT, String.format("%s+%s+%s+%s", appId, env, clusterName, namespaceName)); Tracer.logEvent(TracerEventType.MODIFY_NAMESPACE, String.format("%s+%s+%s+%s", appId, env, clusterName, namespaceName)); } public List<ItemDiffs> compare(List<NamespaceIdentifier> comparedNamespaces, List<ItemDTO> sourceItems) { List<ItemDiffs> result = new LinkedList<>(); for (NamespaceIdentifier namespace : comparedNamespaces) { ItemDiffs itemDiffs = new ItemDiffs(namespace); try { itemDiffs.setDiffs(parseChangeSets(namespace, sourceItems)); } catch (BadRequestException e) { itemDiffs.setDiffs(new ItemChangeSets()); itemDiffs.setExtInfo("该集群下没有名为 " + namespace.getNamespaceName() + " 的namespace"); } result.add(itemDiffs); } return result; } private long getNamespaceId(NamespaceIdentifier namespaceIdentifier) { String appId = namespaceIdentifier.getAppId(); String clusterName = namespaceIdentifier.getClusterName(); String namespaceName = namespaceIdentifier.getNamespaceName(); Env env = namespaceIdentifier.getEnv(); NamespaceDTO namespaceDTO = null; try { namespaceDTO = namespaceAPI.loadNamespace(appId, env, clusterName, namespaceName); } catch (HttpClientErrorException e) { if (e.getStatusCode() == HttpStatus.NOT_FOUND) { throw new BadRequestException(String.format( "namespace not exist. appId:%s, env:%s, clusterName:%s, namespaceName:%s", appId, env, clusterName, namespaceName)); } throw e; } return namespaceDTO.getId(); } private ItemChangeSets parseChangeSets(NamespaceIdentifier namespace, List<ItemDTO> sourceItems) { ItemChangeSets changeSets = new ItemChangeSets(); List<ItemDTO> targetItems = itemAPI.findItems(namespace.getAppId(), namespace.getEnv(), namespace.getClusterName(), namespace.getNamespaceName()); long namespaceId = getNamespaceId(namespace); if (CollectionUtils.isEmpty(targetItems)) {//all source items is added int lineNum = 1; for (ItemDTO sourceItem : sourceItems) { changeSets.addCreateItem(buildItem(namespaceId, lineNum++, sourceItem)); } } else { Map<String, ItemDTO> targetItemMap = BeanUtils.mapByKey("key", targetItems); String key, sourceValue, sourceComment; ItemDTO targetItem = null; int maxLineNum = targetItems.size();//append to last for (ItemDTO sourceItem : sourceItems) { key = sourceItem.getKey(); sourceValue = sourceItem.getValue(); sourceComment = sourceItem.getComment(); targetItem = targetItemMap.get(key); if (targetItem == null) {//added items changeSets.addCreateItem(buildItem(namespaceId, ++maxLineNum, sourceItem)); } else if (isModified(sourceValue, targetItem.getValue(), sourceComment, targetItem.getComment())) {//modified items targetItem.setValue(sourceValue); targetItem.setComment(sourceComment); changeSets.addUpdateItem(targetItem); } } } return changeSets; } private ItemDTO buildItem(long namespaceId, int lineNum, ItemDTO sourceItem) { ItemDTO createdItem = new ItemDTO(); BeanUtils.copyEntityProperties(sourceItem, createdItem); createdItem.setLineNum(lineNum); createdItem.setNamespaceId(namespaceId); return createdItem; } private ItemDTO buildNormalItem(Long id, Long namespaceId, String key, String value, String comment, int lineNum) { ItemDTO item = new ItemDTO(key, value, comment, lineNum); item.setId(id); item.setNamespaceId(namespaceId); return item; } private boolean isModified(String sourceValue, String targetValue, String sourceComment, String targetComment) { if (!sourceValue.equals(targetValue)) { return true; } if (sourceComment == null) { return !StringUtils.isEmpty(targetComment); } if (targetComment != null) { return !sourceComment.equals(targetComment); } return false; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.service; import com.ctrip.framework.apollo.common.constants.GsonType; import com.ctrip.framework.apollo.common.dto.ItemChangeSets; import com.ctrip.framework.apollo.common.dto.ItemDTO; import com.ctrip.framework.apollo.common.dto.NamespaceDTO; import com.ctrip.framework.apollo.common.dto.ReleaseDTO; import com.ctrip.framework.apollo.common.exception.BadRequestException; import com.ctrip.framework.apollo.common.utils.BeanUtils; import com.ctrip.framework.apollo.core.enums.ConfigFileFormat; import com.ctrip.framework.apollo.portal.api.AdminServiceAPI.ItemAPI; import com.ctrip.framework.apollo.portal.api.AdminServiceAPI.NamespaceAPI; import com.ctrip.framework.apollo.portal.api.AdminServiceAPI.ReleaseAPI; import com.ctrip.framework.apollo.portal.environment.Env; import com.ctrip.framework.apollo.core.utils.StringUtils; import com.ctrip.framework.apollo.portal.api.AdminServiceAPI; import com.ctrip.framework.apollo.portal.component.txtresolver.ConfigTextResolver; import com.ctrip.framework.apollo.portal.constant.TracerEventType; import com.ctrip.framework.apollo.portal.entity.model.NamespaceTextModel; import com.ctrip.framework.apollo.portal.entity.vo.ItemDiffs; import com.ctrip.framework.apollo.portal.entity.vo.NamespaceIdentifier; import com.ctrip.framework.apollo.portal.spi.UserInfoHolder; import com.ctrip.framework.apollo.tracer.Tracer; import com.google.gson.Gson; import java.util.HashMap; import java.util.concurrent.atomic.AtomicInteger; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.http.HttpStatus; import org.springframework.stereotype.Service; import org.springframework.util.CollectionUtils; import org.springframework.web.client.HttpClientErrorException; import java.util.LinkedList; import java.util.List; import java.util.Map; @Service public class ItemService { private static final Gson GSON = new Gson(); private final UserInfoHolder userInfoHolder; private final AdminServiceAPI.NamespaceAPI namespaceAPI; private final AdminServiceAPI.ItemAPI itemAPI; private final AdminServiceAPI.ReleaseAPI releaseAPI; private final ConfigTextResolver fileTextResolver; private final ConfigTextResolver propertyResolver; public ItemService( final UserInfoHolder userInfoHolder, final NamespaceAPI namespaceAPI, final ItemAPI itemAPI, final ReleaseAPI releaseAPI, final @Qualifier("fileTextResolver") ConfigTextResolver fileTextResolver, final @Qualifier("propertyResolver") ConfigTextResolver propertyResolver) { this.userInfoHolder = userInfoHolder; this.namespaceAPI = namespaceAPI; this.itemAPI = itemAPI; this.releaseAPI = releaseAPI; this.fileTextResolver = fileTextResolver; this.propertyResolver = propertyResolver; } /** * parse config text and update config items * * @return parse result */ public void updateConfigItemByText(NamespaceTextModel model) { String appId = model.getAppId(); Env env = model.getEnv(); String clusterName = model.getClusterName(); String namespaceName = model.getNamespaceName(); NamespaceDTO namespace = namespaceAPI.loadNamespace(appId, env, clusterName, namespaceName); if (namespace == null) { throw new BadRequestException( "namespace:" + namespaceName + " not exist in env:" + env + ", cluster:" + clusterName); } long namespaceId = namespace.getId(); String configText = model.getConfigText(); ConfigTextResolver resolver = model.getFormat() == ConfigFileFormat.Properties ? propertyResolver : fileTextResolver; ItemChangeSets changeSets = resolver.resolve(namespaceId, configText, itemAPI.findItems(appId, env, clusterName, namespaceName)); if (changeSets.isEmpty()) { return; } changeSets.setDataChangeLastModifiedBy(userInfoHolder.getUser().getUserId()); updateItems(appId, env, clusterName, namespaceName, changeSets); Tracer.logEvent(TracerEventType.MODIFY_NAMESPACE_BY_TEXT, String.format("%s+%s+%s+%s", appId, env, clusterName, namespaceName)); Tracer.logEvent(TracerEventType.MODIFY_NAMESPACE, String.format("%s+%s+%s+%s", appId, env, clusterName, namespaceName)); } public void updateItems(String appId, Env env, String clusterName, String namespaceName, ItemChangeSets changeSets){ itemAPI.updateItemsByChangeSet(appId, env, clusterName, namespaceName, changeSets); } public ItemDTO createItem(String appId, Env env, String clusterName, String namespaceName, ItemDTO item) { NamespaceDTO namespace = namespaceAPI.loadNamespace(appId, env, clusterName, namespaceName); if (namespace == null) { throw new BadRequestException( "namespace:" + namespaceName + " not exist in env:" + env + ", cluster:" + clusterName); } item.setNamespaceId(namespace.getId()); ItemDTO itemDTO = itemAPI.createItem(appId, env, clusterName, namespaceName, item); Tracer.logEvent(TracerEventType.MODIFY_NAMESPACE, String.format("%s+%s+%s+%s", appId, env, clusterName, namespaceName)); return itemDTO; } public void updateItem(String appId, Env env, String clusterName, String namespaceName, ItemDTO item) { itemAPI.updateItem(appId, env, clusterName, namespaceName, item.getId(), item); } public void deleteItem(Env env, long itemId, String userId) { itemAPI.deleteItem(env, itemId, userId); } public List<ItemDTO> findItems(String appId, Env env, String clusterName, String namespaceName) { return itemAPI.findItems(appId, env, clusterName, namespaceName); } public List<ItemDTO> findDeletedItems(String appId, Env env, String clusterName, String namespaceName) { return itemAPI.findDeletedItems(appId, env, clusterName, namespaceName); } public ItemDTO loadItem(Env env, String appId, String clusterName, String namespaceName, String key) { return itemAPI.loadItem(env, appId, clusterName, namespaceName, key); } public ItemDTO loadItemById(Env env, long itemId) { ItemDTO item = itemAPI.loadItemById(env, itemId); if (item == null) { throw new BadRequestException("item not found for itemId " + itemId); } return item; } public void syncItems(List<NamespaceIdentifier> comparedNamespaces, List<ItemDTO> sourceItems) { List<ItemDiffs> itemDiffs = compare(comparedNamespaces, sourceItems); for (ItemDiffs itemDiff : itemDiffs) { NamespaceIdentifier namespaceIdentifier = itemDiff.getNamespace(); ItemChangeSets changeSets = itemDiff.getDiffs(); changeSets.setDataChangeLastModifiedBy(userInfoHolder.getUser().getUserId()); String appId = namespaceIdentifier.getAppId(); Env env = namespaceIdentifier.getEnv(); String clusterName = namespaceIdentifier.getClusterName(); String namespaceName = namespaceIdentifier.getNamespaceName(); itemAPI.updateItemsByChangeSet(appId, env, clusterName, namespaceName, changeSets); Tracer.logEvent(TracerEventType.SYNC_NAMESPACE, String.format("%s+%s+%s+%s", appId, env, clusterName, namespaceName)); } } public void revokeItem(String appId, Env env, String clusterName, String namespaceName) { NamespaceDTO namespace = namespaceAPI.loadNamespace(appId, env, clusterName, namespaceName); if (namespace == null) { throw new BadRequestException( "namespace:" + namespaceName + " not exist in env:" + env + ", cluster:" + clusterName); } long namespaceId = namespace.getId(); Map<String, String> releaseItemDTOs = new HashMap<>(); ReleaseDTO latestRelease = releaseAPI.loadLatestRelease(appId,env,clusterName,namespaceName); if (latestRelease != null) { releaseItemDTOs = GSON.fromJson(latestRelease.getConfigurations(), GsonType.CONFIG); } List<ItemDTO> baseItems = itemAPI.findItems(appId, env, clusterName, namespaceName); Map<String, ItemDTO> oldKeyMapItem = BeanUtils.mapByKey("key", baseItems); Map<String, ItemDTO> deletedItemDTOs = new HashMap<>(); //deleted items for comment findDeletedItems(appId, env, clusterName, namespaceName).forEach(item -> { deletedItemDTOs.put(item.getKey(),item); }); ItemChangeSets changeSets = new ItemChangeSets(); AtomicInteger lineNum = new AtomicInteger(1); releaseItemDTOs.forEach((key,value) -> { ItemDTO oldItem = oldKeyMapItem.get(key); if (oldItem == null) { ItemDTO deletedItemDto = deletedItemDTOs.computeIfAbsent(key, k -> new ItemDTO()); changeSets.addCreateItem(buildNormalItem(0L, namespaceId,key,value,deletedItemDto.getComment(),lineNum.get())); } else if (!oldItem.getValue().equals(value) || lineNum.get() != oldItem .getLineNum()) { changeSets.addUpdateItem(buildNormalItem(oldItem.getId(), namespaceId, key, value, oldItem.getComment(), lineNum.get())); } oldKeyMapItem.remove(key); lineNum.set(lineNum.get() + 1); }); oldKeyMapItem.forEach((key, value) -> changeSets.addDeleteItem(oldKeyMapItem.get(key))); changeSets.setDataChangeLastModifiedBy(userInfoHolder.getUser().getUserId()); updateItems(appId, env, clusterName, namespaceName, changeSets); Tracer.logEvent(TracerEventType.MODIFY_NAMESPACE_BY_TEXT, String.format("%s+%s+%s+%s", appId, env, clusterName, namespaceName)); Tracer.logEvent(TracerEventType.MODIFY_NAMESPACE, String.format("%s+%s+%s+%s", appId, env, clusterName, namespaceName)); } public List<ItemDiffs> compare(List<NamespaceIdentifier> comparedNamespaces, List<ItemDTO> sourceItems) { List<ItemDiffs> result = new LinkedList<>(); for (NamespaceIdentifier namespace : comparedNamespaces) { ItemDiffs itemDiffs = new ItemDiffs(namespace); try { itemDiffs.setDiffs(parseChangeSets(namespace, sourceItems)); } catch (BadRequestException e) { itemDiffs.setDiffs(new ItemChangeSets()); itemDiffs.setExtInfo("该集群下没有名为 " + namespace.getNamespaceName() + " 的namespace"); } result.add(itemDiffs); } return result; } private long getNamespaceId(NamespaceIdentifier namespaceIdentifier) { String appId = namespaceIdentifier.getAppId(); String clusterName = namespaceIdentifier.getClusterName(); String namespaceName = namespaceIdentifier.getNamespaceName(); Env env = namespaceIdentifier.getEnv(); NamespaceDTO namespaceDTO = null; try { namespaceDTO = namespaceAPI.loadNamespace(appId, env, clusterName, namespaceName); } catch (HttpClientErrorException e) { if (e.getStatusCode() == HttpStatus.NOT_FOUND) { throw new BadRequestException(String.format( "namespace not exist. appId:%s, env:%s, clusterName:%s, namespaceName:%s", appId, env, clusterName, namespaceName)); } throw e; } return namespaceDTO.getId(); } private ItemChangeSets parseChangeSets(NamespaceIdentifier namespace, List<ItemDTO> sourceItems) { ItemChangeSets changeSets = new ItemChangeSets(); List<ItemDTO> targetItems = itemAPI.findItems(namespace.getAppId(), namespace.getEnv(), namespace.getClusterName(), namespace.getNamespaceName()); long namespaceId = getNamespaceId(namespace); if (CollectionUtils.isEmpty(targetItems)) {//all source items is added int lineNum = 1; for (ItemDTO sourceItem : sourceItems) { changeSets.addCreateItem(buildItem(namespaceId, lineNum++, sourceItem)); } } else { Map<String, ItemDTO> targetItemMap = BeanUtils.mapByKey("key", targetItems); String key, sourceValue, sourceComment; ItemDTO targetItem = null; int maxLineNum = targetItems.size();//append to last for (ItemDTO sourceItem : sourceItems) { key = sourceItem.getKey(); sourceValue = sourceItem.getValue(); sourceComment = sourceItem.getComment(); targetItem = targetItemMap.get(key); if (targetItem == null) {//added items changeSets.addCreateItem(buildItem(namespaceId, ++maxLineNum, sourceItem)); } else if (isModified(sourceValue, targetItem.getValue(), sourceComment, targetItem.getComment())) {//modified items targetItem.setValue(sourceValue); targetItem.setComment(sourceComment); changeSets.addUpdateItem(targetItem); } } } return changeSets; } private ItemDTO buildItem(long namespaceId, int lineNum, ItemDTO sourceItem) { ItemDTO createdItem = new ItemDTO(); BeanUtils.copyEntityProperties(sourceItem, createdItem); createdItem.setLineNum(lineNum); createdItem.setNamespaceId(namespaceId); return createdItem; } private ItemDTO buildNormalItem(Long id, Long namespaceId, String key, String value, String comment, int lineNum) { ItemDTO item = new ItemDTO(key, value, comment, lineNum); item.setId(id); item.setNamespaceId(namespaceId); return item; } private boolean isModified(String sourceValue, String targetValue, String sourceComment, String targetComment) { if (!sourceValue.equals(targetValue)) { return true; } if (sourceComment == null) { return !StringUtils.isEmpty(targetComment); } if (targetComment != null) { return !sourceComment.equals(targetComment); } return false; } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-portal/src/main/java/com/ctrip/framework/apollo/openapi/v1/controller/NamespaceBranchController.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.openapi.v1.controller; /** * Created by qianjie on 8/10/17. */ import com.ctrip.framework.apollo.common.dto.GrayReleaseRuleDTO; import com.ctrip.framework.apollo.common.dto.NamespaceDTO; import com.ctrip.framework.apollo.common.exception.BadRequestException; import com.ctrip.framework.apollo.common.utils.BeanUtils; import com.ctrip.framework.apollo.common.utils.RequestPrecondition; import com.ctrip.framework.apollo.portal.environment.Env; import com.ctrip.framework.apollo.core.utils.StringUtils; import com.ctrip.framework.apollo.openapi.auth.ConsumerPermissionValidator; import com.ctrip.framework.apollo.openapi.dto.OpenGrayReleaseRuleDTO; import com.ctrip.framework.apollo.openapi.dto.OpenNamespaceDTO; import com.ctrip.framework.apollo.openapi.util.OpenApiBeanUtils; import com.ctrip.framework.apollo.portal.entity.bo.NamespaceBO; import com.ctrip.framework.apollo.portal.service.NamespaceBranchService; import com.ctrip.framework.apollo.portal.service.ReleaseService; import com.ctrip.framework.apollo.portal.spi.UserService; import org.springframework.security.access.AccessDeniedException; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PutMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import javax.servlet.http.HttpServletRequest; @RestController("openapiNamespaceBranchController") @RequestMapping("/openapi/v1/envs/{env}") public class NamespaceBranchController { private final ConsumerPermissionValidator consumerPermissionValidator; private final ReleaseService releaseService; private final NamespaceBranchService namespaceBranchService; private final UserService userService; public NamespaceBranchController( final ConsumerPermissionValidator consumerPermissionValidator, final ReleaseService releaseService, final NamespaceBranchService namespaceBranchService, final UserService userService) { this.consumerPermissionValidator = consumerPermissionValidator; this.releaseService = releaseService; this.namespaceBranchService = namespaceBranchService; this.userService = userService; } @GetMapping(value = "/apps/{appId}/clusters/{clusterName}/namespaces/{namespaceName}/branches") public OpenNamespaceDTO findBranch(@PathVariable String appId, @PathVariable String env, @PathVariable String clusterName, @PathVariable String namespaceName) { NamespaceBO namespaceBO = namespaceBranchService.findBranch(appId, Env.valueOf(env.toUpperCase()), clusterName, namespaceName); if (namespaceBO == null) { return null; } return OpenApiBeanUtils.transformFromNamespaceBO(namespaceBO); } @PreAuthorize(value = "@consumerPermissionValidator.hasCreateNamespacePermission(#request, #appId)") @PostMapping(value = "/apps/{appId}/clusters/{clusterName}/namespaces/{namespaceName}/branches") public OpenNamespaceDTO createBranch(@PathVariable String appId, @PathVariable String env, @PathVariable String clusterName, @PathVariable String namespaceName, @RequestParam("operator") String operator, HttpServletRequest request) { RequestPrecondition.checkArguments(!StringUtils.isContainEmpty(operator),"operator can not be empty"); if (userService.findByUserId(operator) == null) { throw new BadRequestException("operator " + operator + " not exists"); } NamespaceDTO namespaceDTO = namespaceBranchService.createBranch(appId, Env.valueOf(env.toUpperCase()), clusterName, namespaceName, operator); if (namespaceDTO == null) { return null; } return BeanUtils.transform(OpenNamespaceDTO.class, namespaceDTO); } @PreAuthorize(value = "@consumerPermissionValidator.hasModifyNamespacePermission(#request, #appId, #namespaceName, #env)") @DeleteMapping(value = "/apps/{appId}/clusters/{clusterName}/namespaces/{namespaceName}/branches/{branchName}") public void deleteBranch(@PathVariable String appId, @PathVariable String env, @PathVariable String clusterName, @PathVariable String namespaceName, @PathVariable String branchName, @RequestParam("operator") String operator, HttpServletRequest request) { RequestPrecondition.checkArguments(!StringUtils.isContainEmpty(operator),"operator can not be empty"); if (userService.findByUserId(operator) == null) { throw new BadRequestException("operator " + operator + " not exists"); } boolean canDelete = consumerPermissionValidator.hasReleaseNamespacePermission(request, appId, namespaceName, env) || (consumerPermissionValidator.hasModifyNamespacePermission(request, appId, namespaceName, env) && releaseService.loadLatestRelease(appId, Env.valueOf(env), branchName, namespaceName) == null); if (!canDelete) { throw new AccessDeniedException("Forbidden operation. " + "Caused by: 1.you don't have release permission " + "or 2. you don't have modification permission " + "or 3. you have modification permission but branch has been released"); } namespaceBranchService.deleteBranch(appId, Env.valueOf(env.toUpperCase()), clusterName, namespaceName, branchName, operator); } @GetMapping(value = "/apps/{appId}/clusters/{clusterName}/namespaces/{namespaceName}/branches/{branchName}/rules") public OpenGrayReleaseRuleDTO getBranchGrayRules(@PathVariable String appId, @PathVariable String env, @PathVariable String clusterName, @PathVariable String namespaceName, @PathVariable String branchName) { GrayReleaseRuleDTO grayReleaseRuleDTO = namespaceBranchService.findBranchGrayRules(appId, Env.valueOf(env.toUpperCase()), clusterName, namespaceName, branchName); if (grayReleaseRuleDTO == null) { return null; } return OpenApiBeanUtils.transformFromGrayReleaseRuleDTO(grayReleaseRuleDTO); } @PreAuthorize(value = "@consumerPermissionValidator.hasModifyNamespacePermission(#request, #appId, #namespaceName, #env)") @PutMapping(value = "/apps/{appId}/clusters/{clusterName}/namespaces/{namespaceName}/branches/{branchName}/rules") public void updateBranchRules(@PathVariable String appId, @PathVariable String env, @PathVariable String clusterName, @PathVariable String namespaceName, @PathVariable String branchName, @RequestBody OpenGrayReleaseRuleDTO rules, @RequestParam("operator") String operator, HttpServletRequest request) { RequestPrecondition.checkArguments(!StringUtils.isContainEmpty(operator),"operator can not be empty"); if (userService.findByUserId(operator) == null) { throw new BadRequestException("operator " + operator + " not exists"); } rules.setAppId(appId); rules.setClusterName(clusterName); rules.setNamespaceName(namespaceName); rules.setBranchName(branchName); GrayReleaseRuleDTO grayReleaseRuleDTO = OpenApiBeanUtils.transformToGrayReleaseRuleDTO(rules); namespaceBranchService .updateBranchGrayRules(appId, Env.valueOf(env.toUpperCase()), clusterName, namespaceName, branchName, grayReleaseRuleDTO, operator); } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.openapi.v1.controller; /** * Created by qianjie on 8/10/17. */ import com.ctrip.framework.apollo.common.dto.GrayReleaseRuleDTO; import com.ctrip.framework.apollo.common.dto.NamespaceDTO; import com.ctrip.framework.apollo.common.exception.BadRequestException; import com.ctrip.framework.apollo.common.utils.BeanUtils; import com.ctrip.framework.apollo.common.utils.RequestPrecondition; import com.ctrip.framework.apollo.portal.environment.Env; import com.ctrip.framework.apollo.core.utils.StringUtils; import com.ctrip.framework.apollo.openapi.auth.ConsumerPermissionValidator; import com.ctrip.framework.apollo.openapi.dto.OpenGrayReleaseRuleDTO; import com.ctrip.framework.apollo.openapi.dto.OpenNamespaceDTO; import com.ctrip.framework.apollo.openapi.util.OpenApiBeanUtils; import com.ctrip.framework.apollo.portal.entity.bo.NamespaceBO; import com.ctrip.framework.apollo.portal.service.NamespaceBranchService; import com.ctrip.framework.apollo.portal.service.ReleaseService; import com.ctrip.framework.apollo.portal.spi.UserService; import org.springframework.security.access.AccessDeniedException; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PutMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import javax.servlet.http.HttpServletRequest; @RestController("openapiNamespaceBranchController") @RequestMapping("/openapi/v1/envs/{env}") public class NamespaceBranchController { private final ConsumerPermissionValidator consumerPermissionValidator; private final ReleaseService releaseService; private final NamespaceBranchService namespaceBranchService; private final UserService userService; public NamespaceBranchController( final ConsumerPermissionValidator consumerPermissionValidator, final ReleaseService releaseService, final NamespaceBranchService namespaceBranchService, final UserService userService) { this.consumerPermissionValidator = consumerPermissionValidator; this.releaseService = releaseService; this.namespaceBranchService = namespaceBranchService; this.userService = userService; } @GetMapping(value = "/apps/{appId}/clusters/{clusterName}/namespaces/{namespaceName}/branches") public OpenNamespaceDTO findBranch(@PathVariable String appId, @PathVariable String env, @PathVariable String clusterName, @PathVariable String namespaceName) { NamespaceBO namespaceBO = namespaceBranchService.findBranch(appId, Env.valueOf(env.toUpperCase()), clusterName, namespaceName); if (namespaceBO == null) { return null; } return OpenApiBeanUtils.transformFromNamespaceBO(namespaceBO); } @PreAuthorize(value = "@consumerPermissionValidator.hasCreateNamespacePermission(#request, #appId)") @PostMapping(value = "/apps/{appId}/clusters/{clusterName}/namespaces/{namespaceName}/branches") public OpenNamespaceDTO createBranch(@PathVariable String appId, @PathVariable String env, @PathVariable String clusterName, @PathVariable String namespaceName, @RequestParam("operator") String operator, HttpServletRequest request) { RequestPrecondition.checkArguments(!StringUtils.isContainEmpty(operator),"operator can not be empty"); if (userService.findByUserId(operator) == null) { throw new BadRequestException("operator " + operator + " not exists"); } NamespaceDTO namespaceDTO = namespaceBranchService.createBranch(appId, Env.valueOf(env.toUpperCase()), clusterName, namespaceName, operator); if (namespaceDTO == null) { return null; } return BeanUtils.transform(OpenNamespaceDTO.class, namespaceDTO); } @PreAuthorize(value = "@consumerPermissionValidator.hasModifyNamespacePermission(#request, #appId, #namespaceName, #env)") @DeleteMapping(value = "/apps/{appId}/clusters/{clusterName}/namespaces/{namespaceName}/branches/{branchName}") public void deleteBranch(@PathVariable String appId, @PathVariable String env, @PathVariable String clusterName, @PathVariable String namespaceName, @PathVariable String branchName, @RequestParam("operator") String operator, HttpServletRequest request) { RequestPrecondition.checkArguments(!StringUtils.isContainEmpty(operator),"operator can not be empty"); if (userService.findByUserId(operator) == null) { throw new BadRequestException("operator " + operator + " not exists"); } boolean canDelete = consumerPermissionValidator.hasReleaseNamespacePermission(request, appId, namespaceName, env) || (consumerPermissionValidator.hasModifyNamespacePermission(request, appId, namespaceName, env) && releaseService.loadLatestRelease(appId, Env.valueOf(env), branchName, namespaceName) == null); if (!canDelete) { throw new AccessDeniedException("Forbidden operation. " + "Caused by: 1.you don't have release permission " + "or 2. you don't have modification permission " + "or 3. you have modification permission but branch has been released"); } namespaceBranchService.deleteBranch(appId, Env.valueOf(env.toUpperCase()), clusterName, namespaceName, branchName, operator); } @GetMapping(value = "/apps/{appId}/clusters/{clusterName}/namespaces/{namespaceName}/branches/{branchName}/rules") public OpenGrayReleaseRuleDTO getBranchGrayRules(@PathVariable String appId, @PathVariable String env, @PathVariable String clusterName, @PathVariable String namespaceName, @PathVariable String branchName) { GrayReleaseRuleDTO grayReleaseRuleDTO = namespaceBranchService.findBranchGrayRules(appId, Env.valueOf(env.toUpperCase()), clusterName, namespaceName, branchName); if (grayReleaseRuleDTO == null) { return null; } return OpenApiBeanUtils.transformFromGrayReleaseRuleDTO(grayReleaseRuleDTO); } @PreAuthorize(value = "@consumerPermissionValidator.hasModifyNamespacePermission(#request, #appId, #namespaceName, #env)") @PutMapping(value = "/apps/{appId}/clusters/{clusterName}/namespaces/{namespaceName}/branches/{branchName}/rules") public void updateBranchRules(@PathVariable String appId, @PathVariable String env, @PathVariable String clusterName, @PathVariable String namespaceName, @PathVariable String branchName, @RequestBody OpenGrayReleaseRuleDTO rules, @RequestParam("operator") String operator, HttpServletRequest request) { RequestPrecondition.checkArguments(!StringUtils.isContainEmpty(operator),"operator can not be empty"); if (userService.findByUserId(operator) == null) { throw new BadRequestException("operator " + operator + " not exists"); } rules.setAppId(appId); rules.setClusterName(clusterName); rules.setNamespaceName(namespaceName); rules.setBranchName(branchName); GrayReleaseRuleDTO grayReleaseRuleDTO = OpenApiBeanUtils.transformToGrayReleaseRuleDTO(rules); namespaceBranchService .updateBranchGrayRules(appId, Env.valueOf(env.toUpperCase()), clusterName, namespaceName, branchName, grayReleaseRuleDTO, operator); } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-biz/src/test/java/com/ctrip/framework/apollo/biz/service/NamespaceBranchServiceTest.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.biz.service; import com.ctrip.framework.apollo.biz.AbstractIntegrationTest; import com.ctrip.framework.apollo.biz.entity.GrayReleaseRule; import com.ctrip.framework.apollo.biz.entity.Namespace; import com.ctrip.framework.apollo.biz.entity.ReleaseHistory; import com.ctrip.framework.apollo.common.constants.NamespaceBranchStatus; import com.ctrip.framework.apollo.common.constants.ReleaseOperation; import org.junit.Assert; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Pageable; import org.springframework.test.context.jdbc.Sql; public class NamespaceBranchServiceTest extends AbstractIntegrationTest { @Autowired private NamespaceBranchService namespaceBranchService; @Autowired private ReleaseHistoryService releaseHistoryService; private String testApp = "test"; private String testCluster = "default"; private String testNamespace = "application"; private String testBranchName = "child-cluster"; private String operator = "apollo"; private Pageable pageable = PageRequest.of(0, 10); @Test @Sql(scripts = "/sql/namespace-branch-test.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD) @Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD) public void testFindBranch() { Namespace branch = namespaceBranchService.findBranch(testApp, testCluster, testNamespace); Assert.assertNotNull(branch); Assert.assertEquals(testBranchName, branch.getClusterName()); } @Test @Sql(scripts = "/sql/namespace-branch-test.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD) @Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD) public void testUpdateBranchGrayRulesWithUpdateOnce() { GrayReleaseRule rule = instanceGrayReleaseRule(); namespaceBranchService.updateBranchGrayRules(testApp, testCluster, testNamespace, testBranchName, rule); GrayReleaseRule activeRule = namespaceBranchService.findBranchGrayRules(testApp, testCluster, testNamespace, testBranchName); Assert.assertNotNull(activeRule); Assert.assertEquals(rule.getAppId(), activeRule.getAppId()); Assert.assertEquals(rule.getRules(), activeRule.getRules()); Assert.assertEquals(Long.valueOf(0), activeRule.getReleaseId()); Page<ReleaseHistory> releaseHistories = releaseHistoryService.findReleaseHistoriesByNamespace (testApp, testCluster, testNamespace, pageable); ReleaseHistory releaseHistory = releaseHistories.getContent().get(0); Assert.assertEquals(1, releaseHistories.getTotalElements()); Assert.assertEquals(ReleaseOperation.APPLY_GRAY_RULES, releaseHistory.getOperation()); Assert.assertEquals(0, releaseHistory.getReleaseId()); Assert.assertEquals(0, releaseHistory.getPreviousReleaseId()); Assert.assertTrue(releaseHistory.getOperationContext().contains(rule.getRules())); } @Test @Sql(scripts = "/sql/namespace-branch-test.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD) @Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD) public void testUpdateBranchGrayRulesWithUpdateTwice() { GrayReleaseRule firstRule = instanceGrayReleaseRule(); namespaceBranchService.updateBranchGrayRules(testApp, testCluster, testNamespace, testBranchName, firstRule); GrayReleaseRule secondRule = instanceGrayReleaseRule(); secondRule.setRules("[{\"clientAppId\":\"branch-test\",\"clientIpList\":[\"10.38.57.112\"]}]"); namespaceBranchService.updateBranchGrayRules(testApp, testCluster, testNamespace, testBranchName, secondRule); GrayReleaseRule activeRule = namespaceBranchService.findBranchGrayRules(testApp, testCluster, testNamespace, testBranchName); Assert.assertNotNull(secondRule); Assert.assertEquals(secondRule.getAppId(), activeRule.getAppId()); Assert.assertEquals(secondRule.getRules(), activeRule.getRules()); Assert.assertEquals(Long.valueOf(0), activeRule.getReleaseId()); Page<ReleaseHistory> releaseHistories = releaseHistoryService.findReleaseHistoriesByNamespace (testApp, testCluster, testNamespace, pageable); ReleaseHistory firstReleaseHistory = releaseHistories.getContent().get(1); ReleaseHistory secondReleaseHistory = releaseHistories.getContent().get(0); Assert.assertEquals(2, releaseHistories.getTotalElements()); Assert.assertEquals(ReleaseOperation.APPLY_GRAY_RULES, firstReleaseHistory.getOperation()); Assert.assertEquals(ReleaseOperation.APPLY_GRAY_RULES, secondReleaseHistory.getOperation()); Assert.assertTrue(firstReleaseHistory.getOperationContext().contains(firstRule.getRules())); Assert.assertFalse(firstReleaseHistory.getOperationContext().contains(secondRule.getRules())); Assert.assertTrue(secondReleaseHistory.getOperationContext().contains(firstRule.getRules())); Assert.assertTrue(secondReleaseHistory.getOperationContext().contains(secondRule.getRules())); } @Test @Sql(scripts = "/sql/namespace-branch-test.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD) @Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD) public void testUpdateRulesReleaseIdWithOldRuleNotExist() { long latestReleaseId = 100; namespaceBranchService .updateRulesReleaseId(testApp, testCluster, testNamespace, testBranchName, latestReleaseId, operator); GrayReleaseRule activeRule = namespaceBranchService.findBranchGrayRules(testApp, testCluster, testNamespace, testBranchName); Assert.assertNull(activeRule); } @Test @Sql(scripts = "/sql/namespace-branch-test.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD) @Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD) public void testUpdateRulesReleaseIdWithOldRuleExist() { GrayReleaseRule rule = instanceGrayReleaseRule(); namespaceBranchService.updateBranchGrayRules(testApp, testCluster, testNamespace, testBranchName, rule); long latestReleaseId = 100; namespaceBranchService .updateRulesReleaseId(testApp, testCluster, testNamespace, testBranchName, latestReleaseId, operator); GrayReleaseRule activeRule = namespaceBranchService.findBranchGrayRules(testApp, testCluster, testNamespace, testBranchName); Assert.assertNotNull(activeRule); Assert.assertEquals(Long.valueOf(latestReleaseId), activeRule.getReleaseId()); Assert.assertEquals(rule.getRules(), activeRule.getRules()); Assert.assertEquals(NamespaceBranchStatus.ACTIVE, activeRule.getBranchStatus()); } @Test @Sql(scripts = "/sql/namespace-branch-test.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD) @Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD) public void testDeleteBranch() { GrayReleaseRule rule = instanceGrayReleaseRule(); namespaceBranchService.updateBranchGrayRules(testApp, testCluster, testNamespace, testBranchName, rule); namespaceBranchService.deleteBranch(testApp, testCluster, testNamespace, testBranchName, NamespaceBranchStatus.DELETED, operator); Namespace branch = namespaceBranchService.findBranch(testApp, testCluster, testNamespace); Assert.assertNull(branch); GrayReleaseRule latestRule = namespaceBranchService.findBranchGrayRules(testApp, testCluster, testNamespace, testBranchName); Assert.assertNotNull(latestRule); Assert.assertEquals(NamespaceBranchStatus.DELETED, latestRule.getBranchStatus()); Assert.assertEquals("[]", latestRule.getRules()); Page<ReleaseHistory> releaseHistories = releaseHistoryService.findReleaseHistoriesByNamespace (testApp, testCluster, testNamespace, pageable); ReleaseHistory firstReleaseHistory = releaseHistories.getContent().get(1); ReleaseHistory secondReleaseHistory = releaseHistories.getContent().get(0); Assert.assertEquals(2, releaseHistories.getTotalElements()); Assert.assertEquals(ReleaseOperation.APPLY_GRAY_RULES, firstReleaseHistory.getOperation()); Assert.assertEquals(ReleaseOperation.ABANDON_GRAY_RELEASE, secondReleaseHistory.getOperation()); } private GrayReleaseRule instanceGrayReleaseRule() { GrayReleaseRule rule = new GrayReleaseRule(); rule.setAppId(testApp); rule.setClusterName(testCluster); rule.setNamespaceName(testNamespace); rule.setBranchName(testBranchName); rule.setBranchStatus(NamespaceBranchStatus.ACTIVE); rule.setRules("[{\"clientAppId\":\"test\",\"clientIpList\":[\"1.0.0.4\"]}]"); return rule; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.biz.service; import com.ctrip.framework.apollo.biz.AbstractIntegrationTest; import com.ctrip.framework.apollo.biz.entity.GrayReleaseRule; import com.ctrip.framework.apollo.biz.entity.Namespace; import com.ctrip.framework.apollo.biz.entity.ReleaseHistory; import com.ctrip.framework.apollo.common.constants.NamespaceBranchStatus; import com.ctrip.framework.apollo.common.constants.ReleaseOperation; import org.junit.Assert; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Pageable; import org.springframework.test.context.jdbc.Sql; public class NamespaceBranchServiceTest extends AbstractIntegrationTest { @Autowired private NamespaceBranchService namespaceBranchService; @Autowired private ReleaseHistoryService releaseHistoryService; private String testApp = "test"; private String testCluster = "default"; private String testNamespace = "application"; private String testBranchName = "child-cluster"; private String operator = "apollo"; private Pageable pageable = PageRequest.of(0, 10); @Test @Sql(scripts = "/sql/namespace-branch-test.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD) @Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD) public void testFindBranch() { Namespace branch = namespaceBranchService.findBranch(testApp, testCluster, testNamespace); Assert.assertNotNull(branch); Assert.assertEquals(testBranchName, branch.getClusterName()); } @Test @Sql(scripts = "/sql/namespace-branch-test.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD) @Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD) public void testUpdateBranchGrayRulesWithUpdateOnce() { GrayReleaseRule rule = instanceGrayReleaseRule(); namespaceBranchService.updateBranchGrayRules(testApp, testCluster, testNamespace, testBranchName, rule); GrayReleaseRule activeRule = namespaceBranchService.findBranchGrayRules(testApp, testCluster, testNamespace, testBranchName); Assert.assertNotNull(activeRule); Assert.assertEquals(rule.getAppId(), activeRule.getAppId()); Assert.assertEquals(rule.getRules(), activeRule.getRules()); Assert.assertEquals(Long.valueOf(0), activeRule.getReleaseId()); Page<ReleaseHistory> releaseHistories = releaseHistoryService.findReleaseHistoriesByNamespace (testApp, testCluster, testNamespace, pageable); ReleaseHistory releaseHistory = releaseHistories.getContent().get(0); Assert.assertEquals(1, releaseHistories.getTotalElements()); Assert.assertEquals(ReleaseOperation.APPLY_GRAY_RULES, releaseHistory.getOperation()); Assert.assertEquals(0, releaseHistory.getReleaseId()); Assert.assertEquals(0, releaseHistory.getPreviousReleaseId()); Assert.assertTrue(releaseHistory.getOperationContext().contains(rule.getRules())); } @Test @Sql(scripts = "/sql/namespace-branch-test.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD) @Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD) public void testUpdateBranchGrayRulesWithUpdateTwice() { GrayReleaseRule firstRule = instanceGrayReleaseRule(); namespaceBranchService.updateBranchGrayRules(testApp, testCluster, testNamespace, testBranchName, firstRule); GrayReleaseRule secondRule = instanceGrayReleaseRule(); secondRule.setRules("[{\"clientAppId\":\"branch-test\",\"clientIpList\":[\"10.38.57.112\"]}]"); namespaceBranchService.updateBranchGrayRules(testApp, testCluster, testNamespace, testBranchName, secondRule); GrayReleaseRule activeRule = namespaceBranchService.findBranchGrayRules(testApp, testCluster, testNamespace, testBranchName); Assert.assertNotNull(secondRule); Assert.assertEquals(secondRule.getAppId(), activeRule.getAppId()); Assert.assertEquals(secondRule.getRules(), activeRule.getRules()); Assert.assertEquals(Long.valueOf(0), activeRule.getReleaseId()); Page<ReleaseHistory> releaseHistories = releaseHistoryService.findReleaseHistoriesByNamespace (testApp, testCluster, testNamespace, pageable); ReleaseHistory firstReleaseHistory = releaseHistories.getContent().get(1); ReleaseHistory secondReleaseHistory = releaseHistories.getContent().get(0); Assert.assertEquals(2, releaseHistories.getTotalElements()); Assert.assertEquals(ReleaseOperation.APPLY_GRAY_RULES, firstReleaseHistory.getOperation()); Assert.assertEquals(ReleaseOperation.APPLY_GRAY_RULES, secondReleaseHistory.getOperation()); Assert.assertTrue(firstReleaseHistory.getOperationContext().contains(firstRule.getRules())); Assert.assertFalse(firstReleaseHistory.getOperationContext().contains(secondRule.getRules())); Assert.assertTrue(secondReleaseHistory.getOperationContext().contains(firstRule.getRules())); Assert.assertTrue(secondReleaseHistory.getOperationContext().contains(secondRule.getRules())); } @Test @Sql(scripts = "/sql/namespace-branch-test.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD) @Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD) public void testUpdateRulesReleaseIdWithOldRuleNotExist() { long latestReleaseId = 100; namespaceBranchService .updateRulesReleaseId(testApp, testCluster, testNamespace, testBranchName, latestReleaseId, operator); GrayReleaseRule activeRule = namespaceBranchService.findBranchGrayRules(testApp, testCluster, testNamespace, testBranchName); Assert.assertNull(activeRule); } @Test @Sql(scripts = "/sql/namespace-branch-test.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD) @Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD) public void testUpdateRulesReleaseIdWithOldRuleExist() { GrayReleaseRule rule = instanceGrayReleaseRule(); namespaceBranchService.updateBranchGrayRules(testApp, testCluster, testNamespace, testBranchName, rule); long latestReleaseId = 100; namespaceBranchService .updateRulesReleaseId(testApp, testCluster, testNamespace, testBranchName, latestReleaseId, operator); GrayReleaseRule activeRule = namespaceBranchService.findBranchGrayRules(testApp, testCluster, testNamespace, testBranchName); Assert.assertNotNull(activeRule); Assert.assertEquals(Long.valueOf(latestReleaseId), activeRule.getReleaseId()); Assert.assertEquals(rule.getRules(), activeRule.getRules()); Assert.assertEquals(NamespaceBranchStatus.ACTIVE, activeRule.getBranchStatus()); } @Test @Sql(scripts = "/sql/namespace-branch-test.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD) @Sql(scripts = "/sql/clean.sql", executionPhase = Sql.ExecutionPhase.AFTER_TEST_METHOD) public void testDeleteBranch() { GrayReleaseRule rule = instanceGrayReleaseRule(); namespaceBranchService.updateBranchGrayRules(testApp, testCluster, testNamespace, testBranchName, rule); namespaceBranchService.deleteBranch(testApp, testCluster, testNamespace, testBranchName, NamespaceBranchStatus.DELETED, operator); Namespace branch = namespaceBranchService.findBranch(testApp, testCluster, testNamespace); Assert.assertNull(branch); GrayReleaseRule latestRule = namespaceBranchService.findBranchGrayRules(testApp, testCluster, testNamespace, testBranchName); Assert.assertNotNull(latestRule); Assert.assertEquals(NamespaceBranchStatus.DELETED, latestRule.getBranchStatus()); Assert.assertEquals("[]", latestRule.getRules()); Page<ReleaseHistory> releaseHistories = releaseHistoryService.findReleaseHistoriesByNamespace (testApp, testCluster, testNamespace, pageable); ReleaseHistory firstReleaseHistory = releaseHistories.getContent().get(1); ReleaseHistory secondReleaseHistory = releaseHistories.getContent().get(0); Assert.assertEquals(2, releaseHistories.getTotalElements()); Assert.assertEquals(ReleaseOperation.APPLY_GRAY_RULES, firstReleaseHistory.getOperation()); Assert.assertEquals(ReleaseOperation.ABANDON_GRAY_RELEASE, secondReleaseHistory.getOperation()); } private GrayReleaseRule instanceGrayReleaseRule() { GrayReleaseRule rule = new GrayReleaseRule(); rule.setAppId(testApp); rule.setClusterName(testCluster); rule.setNamespaceName(testNamespace); rule.setBranchName(testBranchName); rule.setBranchStatus(NamespaceBranchStatus.ACTIVE); rule.setRules("[{\"clientAppId\":\"test\",\"clientIpList\":[\"1.0.0.4\"]}]"); return rule; } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-openapi/src/main/java/com/ctrip/framework/apollo/openapi/dto/NamespaceReleaseDTO.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.openapi.dto; public class NamespaceReleaseDTO { private String releaseTitle; private String releaseComment; private String releasedBy; private boolean isEmergencyPublish; public String getReleaseTitle() { return releaseTitle; } public void setReleaseTitle(String releaseTitle) { this.releaseTitle = releaseTitle; } public String getReleaseComment() { return releaseComment; } public void setReleaseComment(String releaseComment) { this.releaseComment = releaseComment; } public String getReleasedBy() { return releasedBy; } public void setReleasedBy(String releasedBy) { this.releasedBy = releasedBy; } public boolean isEmergencyPublish() { return isEmergencyPublish; } public void setEmergencyPublish(boolean emergencyPublish) { isEmergencyPublish = emergencyPublish; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.openapi.dto; public class NamespaceReleaseDTO { private String releaseTitle; private String releaseComment; private String releasedBy; private boolean isEmergencyPublish; public String getReleaseTitle() { return releaseTitle; } public void setReleaseTitle(String releaseTitle) { this.releaseTitle = releaseTitle; } public String getReleaseComment() { return releaseComment; } public void setReleaseComment(String releaseComment) { this.releaseComment = releaseComment; } public String getReleasedBy() { return releasedBy; } public void setReleasedBy(String releasedBy) { this.releasedBy = releasedBy; } public boolean isEmergencyPublish() { return isEmergencyPublish; } public void setEmergencyPublish(boolean emergencyPublish) { isEmergencyPublish = emergencyPublish; } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/spi/defaultImpl/RoleInitializationServiceTest.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.spi.defaultImpl; import com.ctrip.framework.apollo.common.entity.App; import com.ctrip.framework.apollo.portal.environment.Env; import com.ctrip.framework.apollo.portal.AbstractUnitTest; import com.ctrip.framework.apollo.portal.component.config.PortalConfig; import com.ctrip.framework.apollo.portal.constant.PermissionType; import com.ctrip.framework.apollo.portal.entity.bo.UserInfo; import com.ctrip.framework.apollo.portal.entity.po.Permission; import com.ctrip.framework.apollo.portal.entity.po.Role; import com.ctrip.framework.apollo.portal.service.RolePermissionService; import com.ctrip.framework.apollo.portal.spi.UserInfoHolder; import com.ctrip.framework.apollo.portal.spi.defaultimpl.DefaultRoleInitializationService; import com.ctrip.framework.apollo.portal.util.RoleUtils; import com.google.common.collect.Sets; import org.junit.Test; import org.mockito.InjectMocks; import org.mockito.Mock; import java.util.ArrayList; import java.util.List; import static org.mockito.Mockito.*; public class RoleInitializationServiceTest extends AbstractUnitTest { private final String APP_ID = "1000"; private final String APP_NAME = "app-test"; private final String CLUSTER = "cluster-test"; private final String NAMESPACE = "namespace-test"; private final String CURRENT_USER = "user"; @Mock private RolePermissionService rolePermissionService; @Mock private UserInfoHolder userInfoHolder; @Mock private PortalConfig portalConfig; @InjectMocks private DefaultRoleInitializationService roleInitializationService; @Test public void testInitAppRoleHasInitBefore(){ when(rolePermissionService.findRoleByRoleName(anyString())).thenReturn(mockRole(RoleUtils.buildAppMasterRoleName(APP_ID))); roleInitializationService.initAppRoles(mockApp()); verify(rolePermissionService, times(1)).findRoleByRoleName(RoleUtils.buildAppMasterRoleName(APP_ID)); verify(rolePermissionService, times(0)).assignRoleToUsers(anyString(), anySet(), anyString()); } @Test public void testInitAppRole(){ when(rolePermissionService.findRoleByRoleName(anyString())).thenReturn(null); when(userInfoHolder.getUser()).thenReturn(mockUser()); when(rolePermissionService.createPermission(any())).thenReturn(mockPermission()); when(portalConfig.portalSupportedEnvs()).thenReturn(mockPortalSupportedEnvs()); roleInitializationService.initAppRoles(mockApp()); verify(rolePermissionService, times(7)).findRoleByRoleName(anyString()); verify(rolePermissionService, times(1)).assignRoleToUsers( RoleUtils.buildAppMasterRoleName(APP_ID), Sets.newHashSet(CURRENT_USER), CURRENT_USER); verify(rolePermissionService, times(7)).createPermission(any()); verify(rolePermissionService, times(8)).createRoleWithPermissions(any(), anySet()); } @Test public void testInitNamespaceRoleHasExisted(){ String modifyNamespaceRoleName = RoleUtils.buildModifyNamespaceRoleName(APP_ID, NAMESPACE); when(rolePermissionService.findRoleByRoleName(modifyNamespaceRoleName)). thenReturn(mockRole(modifyNamespaceRoleName)); String releaseNamespaceRoleName = RoleUtils.buildReleaseNamespaceRoleName(APP_ID, NAMESPACE); when(rolePermissionService.findRoleByRoleName(releaseNamespaceRoleName)). thenReturn(mockRole(releaseNamespaceRoleName)); roleInitializationService.initNamespaceRoles(APP_ID, NAMESPACE, CURRENT_USER); verify(rolePermissionService, times(2)).findRoleByRoleName(anyString()); verify(rolePermissionService, times(0)).createPermission(any()); verify(rolePermissionService, times(0)).createRoleWithPermissions(any(), anySet()); } @Test public void testInitNamespaceRoleNotExisted(){ String modifyNamespaceRoleName = RoleUtils.buildModifyNamespaceRoleName(APP_ID, NAMESPACE); when(rolePermissionService.findRoleByRoleName(modifyNamespaceRoleName)). thenReturn(null); String releaseNamespaceRoleName = RoleUtils.buildReleaseNamespaceRoleName(APP_ID, NAMESPACE); when(rolePermissionService.findRoleByRoleName(releaseNamespaceRoleName)). thenReturn(null); when(userInfoHolder.getUser()).thenReturn(mockUser()); when(rolePermissionService.createPermission(any())).thenReturn(mockPermission()); roleInitializationService.initNamespaceRoles(APP_ID, NAMESPACE, CURRENT_USER); verify(rolePermissionService, times(2)).findRoleByRoleName(anyString()); verify(rolePermissionService, times(2)).createPermission(any()); verify(rolePermissionService, times(2)).createRoleWithPermissions(any(), anySet()); } @Test public void testInitNamespaceRoleModifyNSExisted(){ String modifyNamespaceRoleName = RoleUtils.buildModifyNamespaceRoleName(APP_ID, NAMESPACE); when(rolePermissionService.findRoleByRoleName(modifyNamespaceRoleName)). thenReturn(mockRole(modifyNamespaceRoleName)); String releaseNamespaceRoleName = RoleUtils.buildReleaseNamespaceRoleName(APP_ID, NAMESPACE); when(rolePermissionService.findRoleByRoleName(releaseNamespaceRoleName)). thenReturn(null); when(userInfoHolder.getUser()).thenReturn(mockUser()); when(rolePermissionService.createPermission(any())).thenReturn(mockPermission()); roleInitializationService.initNamespaceRoles(APP_ID, NAMESPACE, CURRENT_USER); verify(rolePermissionService, times(2)).findRoleByRoleName(anyString()); verify(rolePermissionService, times(1)).createPermission(any()); verify(rolePermissionService, times(1)).createRoleWithPermissions(any(), anySet()); } private App mockApp(){ App app = new App(); app.setAppId(APP_ID); app.setName(APP_NAME); app.setOrgName("xx"); app.setOrgId("1"); app.setOwnerName(CURRENT_USER); app.setDataChangeCreatedBy(CURRENT_USER); return app; } private Role mockRole(String roleName){ Role role = new Role(); role.setRoleName(roleName); return role; } private UserInfo mockUser(){ UserInfo userInfo = new UserInfo(); userInfo.setUserId(CURRENT_USER); return userInfo; } private Permission mockPermission(){ Permission permission = new Permission(); permission.setPermissionType(PermissionType.MODIFY_NAMESPACE); permission.setTargetId(RoleUtils.buildNamespaceTargetId(APP_ID, NAMESPACE)); return permission; } private List<Env> mockPortalSupportedEnvs(){ List<Env> envArray = new ArrayList<>(); envArray.add(Env.DEV); envArray.add(Env.FAT); return envArray; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.spi.defaultImpl; import com.ctrip.framework.apollo.common.entity.App; import com.ctrip.framework.apollo.portal.environment.Env; import com.ctrip.framework.apollo.portal.AbstractUnitTest; import com.ctrip.framework.apollo.portal.component.config.PortalConfig; import com.ctrip.framework.apollo.portal.constant.PermissionType; import com.ctrip.framework.apollo.portal.entity.bo.UserInfo; import com.ctrip.framework.apollo.portal.entity.po.Permission; import com.ctrip.framework.apollo.portal.entity.po.Role; import com.ctrip.framework.apollo.portal.service.RolePermissionService; import com.ctrip.framework.apollo.portal.spi.UserInfoHolder; import com.ctrip.framework.apollo.portal.spi.defaultimpl.DefaultRoleInitializationService; import com.ctrip.framework.apollo.portal.util.RoleUtils; import com.google.common.collect.Sets; import org.junit.Test; import org.mockito.InjectMocks; import org.mockito.Mock; import java.util.ArrayList; import java.util.List; import static org.mockito.Mockito.*; public class RoleInitializationServiceTest extends AbstractUnitTest { private final String APP_ID = "1000"; private final String APP_NAME = "app-test"; private final String CLUSTER = "cluster-test"; private final String NAMESPACE = "namespace-test"; private final String CURRENT_USER = "user"; @Mock private RolePermissionService rolePermissionService; @Mock private UserInfoHolder userInfoHolder; @Mock private PortalConfig portalConfig; @InjectMocks private DefaultRoleInitializationService roleInitializationService; @Test public void testInitAppRoleHasInitBefore(){ when(rolePermissionService.findRoleByRoleName(anyString())).thenReturn(mockRole(RoleUtils.buildAppMasterRoleName(APP_ID))); roleInitializationService.initAppRoles(mockApp()); verify(rolePermissionService, times(1)).findRoleByRoleName(RoleUtils.buildAppMasterRoleName(APP_ID)); verify(rolePermissionService, times(0)).assignRoleToUsers(anyString(), anySet(), anyString()); } @Test public void testInitAppRole(){ when(rolePermissionService.findRoleByRoleName(anyString())).thenReturn(null); when(userInfoHolder.getUser()).thenReturn(mockUser()); when(rolePermissionService.createPermission(any())).thenReturn(mockPermission()); when(portalConfig.portalSupportedEnvs()).thenReturn(mockPortalSupportedEnvs()); roleInitializationService.initAppRoles(mockApp()); verify(rolePermissionService, times(7)).findRoleByRoleName(anyString()); verify(rolePermissionService, times(1)).assignRoleToUsers( RoleUtils.buildAppMasterRoleName(APP_ID), Sets.newHashSet(CURRENT_USER), CURRENT_USER); verify(rolePermissionService, times(7)).createPermission(any()); verify(rolePermissionService, times(8)).createRoleWithPermissions(any(), anySet()); } @Test public void testInitNamespaceRoleHasExisted(){ String modifyNamespaceRoleName = RoleUtils.buildModifyNamespaceRoleName(APP_ID, NAMESPACE); when(rolePermissionService.findRoleByRoleName(modifyNamespaceRoleName)). thenReturn(mockRole(modifyNamespaceRoleName)); String releaseNamespaceRoleName = RoleUtils.buildReleaseNamespaceRoleName(APP_ID, NAMESPACE); when(rolePermissionService.findRoleByRoleName(releaseNamespaceRoleName)). thenReturn(mockRole(releaseNamespaceRoleName)); roleInitializationService.initNamespaceRoles(APP_ID, NAMESPACE, CURRENT_USER); verify(rolePermissionService, times(2)).findRoleByRoleName(anyString()); verify(rolePermissionService, times(0)).createPermission(any()); verify(rolePermissionService, times(0)).createRoleWithPermissions(any(), anySet()); } @Test public void testInitNamespaceRoleNotExisted(){ String modifyNamespaceRoleName = RoleUtils.buildModifyNamespaceRoleName(APP_ID, NAMESPACE); when(rolePermissionService.findRoleByRoleName(modifyNamespaceRoleName)). thenReturn(null); String releaseNamespaceRoleName = RoleUtils.buildReleaseNamespaceRoleName(APP_ID, NAMESPACE); when(rolePermissionService.findRoleByRoleName(releaseNamespaceRoleName)). thenReturn(null); when(userInfoHolder.getUser()).thenReturn(mockUser()); when(rolePermissionService.createPermission(any())).thenReturn(mockPermission()); roleInitializationService.initNamespaceRoles(APP_ID, NAMESPACE, CURRENT_USER); verify(rolePermissionService, times(2)).findRoleByRoleName(anyString()); verify(rolePermissionService, times(2)).createPermission(any()); verify(rolePermissionService, times(2)).createRoleWithPermissions(any(), anySet()); } @Test public void testInitNamespaceRoleModifyNSExisted(){ String modifyNamespaceRoleName = RoleUtils.buildModifyNamespaceRoleName(APP_ID, NAMESPACE); when(rolePermissionService.findRoleByRoleName(modifyNamespaceRoleName)). thenReturn(mockRole(modifyNamespaceRoleName)); String releaseNamespaceRoleName = RoleUtils.buildReleaseNamespaceRoleName(APP_ID, NAMESPACE); when(rolePermissionService.findRoleByRoleName(releaseNamespaceRoleName)). thenReturn(null); when(userInfoHolder.getUser()).thenReturn(mockUser()); when(rolePermissionService.createPermission(any())).thenReturn(mockPermission()); roleInitializationService.initNamespaceRoles(APP_ID, NAMESPACE, CURRENT_USER); verify(rolePermissionService, times(2)).findRoleByRoleName(anyString()); verify(rolePermissionService, times(1)).createPermission(any()); verify(rolePermissionService, times(1)).createRoleWithPermissions(any(), anySet()); } private App mockApp(){ App app = new App(); app.setAppId(APP_ID); app.setName(APP_NAME); app.setOrgName("xx"); app.setOrgId("1"); app.setOwnerName(CURRENT_USER); app.setDataChangeCreatedBy(CURRENT_USER); return app; } private Role mockRole(String roleName){ Role role = new Role(); role.setRoleName(roleName); return role; } private UserInfo mockUser(){ UserInfo userInfo = new UserInfo(); userInfo.setUserId(CURRENT_USER); return userInfo; } private Permission mockPermission(){ Permission permission = new Permission(); permission.setPermissionType(PermissionType.MODIFY_NAMESPACE); permission.setTargetId(RoleUtils.buildNamespaceTargetId(APP_ID, NAMESPACE)); return permission; } private List<Env> mockPortalSupportedEnvs(){ List<Env> envArray = new ArrayList<>(); envArray.add(Env.DEV); envArray.add(Env.FAT); return envArray; } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-biz/src/main/java/com/ctrip/framework/apollo/biz/repository/ClusterRepository.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.biz.repository; import com.ctrip.framework.apollo.biz.entity.Cluster; import org.springframework.data.repository.PagingAndSortingRepository; import java.util.List; public interface ClusterRepository extends PagingAndSortingRepository<Cluster, Long> { List<Cluster> findByAppIdAndParentClusterId(String appId, Long parentClusterId); List<Cluster> findByAppId(String appId); Cluster findByAppIdAndName(String appId, String name); List<Cluster> findByParentClusterId(Long parentClusterId); }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.biz.repository; import com.ctrip.framework.apollo.biz.entity.Cluster; import org.springframework.data.repository.PagingAndSortingRepository; import java.util.List; public interface ClusterRepository extends PagingAndSortingRepository<Cluster, Long> { List<Cluster> findByAppIdAndParentClusterId(String appId, Long parentClusterId); List<Cluster> findByAppId(String appId); Cluster findByAppIdAndName(String appId, String name); List<Cluster> findByParentClusterId(Long parentClusterId); }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./docs/zh/faq/common-issues-in-deployment-and-development-phase.md
### 1. windows怎么执行build.sh? 安装[Git Bash](https://git-for-windows.github.io/),然后运行 “./build.sh” 注意前面 “./” ### 2. 本地运行时Portal一直报Env is down. 默认config service启动在8080端口,admin service启动在8090端口。请确认这两个端口是否被其它应用程序占用。 如果还伴有异常信息:org.springframework.web.client.HttpClientErrorException: 405 Method Not Allowed,一般是由于本地启动了`ShadowSocks`,因为`ShadowSocks`默认会占用8090端口。 1.1.0版本增加了**系统信息**页面,可以通过`管理员工具` -> `系统信息`查看当前各个环境的Meta Server以及admin service信息,有助于排查问题。 ### 3. admin server 或者 config server 注册了内网IP,导致portal或者client访问不了admin server或config server 请参考[网络策略](zh/deployment/distributed-deployment-guide?id=_14-网络策略)。 ### 4. Portal如何增加环境? #### 4.1 1.6.0及以上的版本 1.6.0版本增加了自定义环境的功能,可以在不修改代码的情况增加环境 1. protaldb增加环境,参考[3.1 调整ApolloPortalDB配置](zh/deployment/distributed-deployment-guide?id=_31-调整apolloportaldb配置) 2. 为apollo-portal添加新增环境对应的meta server地址,具体参考:[2.2.1.1.2.4 配置apollo-portal的meta service信息](zh/deployment/distributed-deployment-guide?id=_221124-配置apollo-portal的meta-service信息)。apollo-client在新的环境下使用时也需要做好相应的配置,具体参考:[1.2.2 Apollo Meta Server](zh/usage/java-sdk-user-guide?id=_122-apollo-meta-server)。 >注1:一套Portal可以管理多个环境,但是每个环境都需要独立部署一套Config Service、Admin Service和ApolloConfigDB,具体请参考:[2.1.2 创建ApolloConfigDB](zh/deployment/distributed-deployment-guide?id=_212-创建apolloconfigdb),[3.2 调整ApolloConfigDB配置](zh/deployment/distributed-deployment-guide?id=_32-调整apolloconfigdb配置),[2.2.1.1.2 配置数据库连接信息](zh/deployment/distributed-deployment-guide?id=_22112-配置数据库连接信息) > 注2:如果是为已经运行了一段时间的Apollo配置中心增加环境,别忘了参考[2.1.2.4 从别的环境导入ApolloConfigDB的项目数据](zh/deployment/distributed-deployment-guide?id=_2124-从别的环境导入apolloconfigdb的项目数据)对新的环境做初始化 #### 4.2 1.5.1及之前的版本 ##### 4.2.1 添加Apollo预先定义好的环境 如果需要添加的环境是Apollo预先定义的环境(DEV, FAT, UAT, PRO),需要两步操作: 1. protaldb增加环境,参考[3.1 调整ApolloPortalDB配置](zh/deployment/distributed-deployment-guide?id=_31-调整apolloportaldb配置) 2. 为apollo-portal添加新增环境对应的meta server地址,具体参考:[2.2.1.1.2.4 配置apollo-portal的meta service信息](zh/deployment/distributed-deployment-guide?id=_221124-配置apollo-portal的meta-service信息)。apollo-client在新的环境下使用时也需要做好相应的配置,具体参考:[1.2.2 Apollo Meta Server](zh/usage/java-sdk-user-guide?id=_122-apollo-meta-server)。 >注1:一套Portal可以管理多个环境,但是每个环境都需要独立部署一套Config Service、Admin Service和ApolloConfigDB,具体请参考:[2.1.2 创建ApolloConfigDB](zh/deployment/distributed-deployment-guide?id=_212-创建apolloconfigdb),[3.2 调整ApolloConfigDB配置](zh/deployment/distributed-deployment-guide?id=_32-调整apolloconfigdb配置),[2.2.1.1.2 配置数据库连接信息](zh/deployment/distributed-deployment-guide?id=_22112-配置数据库连接信息) > 注2:如果是为已经运行了一段时间的Apollo配置中心增加环境,别忘了参考[2.1.2.4 从别的环境导入ApolloConfigDB的项目数据](zh/deployment/distributed-deployment-guide?id=_2124-从别的环境导入apolloconfigdb的项目数据)对新的环境做初始化 ##### 4.2.2 添加自定义的环境 如果需要添加的环境不是Apollo预先定义的环境,请参照如下步骤操作: 1. 假设需要添加的环境名称叫beta 2. 修改[com.ctrip.framework.apollo.core.enums.Env](https://github.com/ctripcorp/apollo/blob/master/apollo-core/src/main/java/com/ctrip/framework/apollo/core/enums/Env.java)类,在其中加入`BETA`枚举: ```java public enum Env{ LOCAL, DEV, BETA, FWS, FAT, UAT, LPT, PRO, TOOLS, UNKNOWN; ... } ``` 3. 修改[com.ctrip.framework.apollo.core.enums.EnvUtils](https://github.com/ctripcorp/apollo/blob/master/apollo-core/src/main/java/com/ctrip/framework/apollo/core/enums/EnvUtils.java)类,在其中加入`BETA`枚举的转换逻辑: ```java public final class EnvUtils { public static Env transformEnv(String envName) { if (StringUtils.isBlank(envName)) { return Env.UNKNOWN; } switch (envName.trim().toUpperCase()) { ... case "BETA": return Env.BETA; ... default: return Env.UNKNOWN; } } } ``` 4. 修改[apollo-env.properties](https://github.com/ctripcorp/apollo/blob/master/apollo-portal/src/main/resources/apollo-env.properties),增加`beta.meta`占位符: ```properties local.meta=http://localhost:8080 dev.meta=${dev_meta} fat.meta=${fat_meta} beta.meta=${beta_meta} uat.meta=${uat_meta} lpt.meta=${lpt_meta} pro.meta=${pro_meta} ``` 5. 修改[com.ctrip.framework.apollo.core.internals.LegacyMetaServerProvider](https://github.com/ctripcorp/apollo/blob/master/apollo-core/src/main/java/com/ctrip/framework/apollo/core/internals/LegacyMetaServerProvider.java)类,增加读取`BETA`环境的meta server地址逻辑: ```java public class LegacyMetaServerProvider { ... domains.put(Env.BETA, getMetaServerAddress(prop, "beta_meta", "beta.meta")); ... } ``` 6. protaldb增加`BETA`环境,参考[3.1 调整ApolloPortalDB配置](zh/deployment/distributed-deployment-guide?id=_31-调整apolloportaldb配置) 7. 为apollo-portal添加新增环境对应的meta server地址,具体参考:[2.2.1.1.2.4 配置apollo-portal的meta service信息](zh/deployment/distributed-deployment-guide?id=_221124-配置apollo-portal的meta-service信息)。apollo-client在新的环境下使用时也需要做好相应的配置,具体参考:[1.2.2 Apollo Meta Server](zh/usage/java-sdk-user-guide?id=_122-apollo-meta-server)。 >注1:一套Portal可以管理多个环境,但是每个环境都需要独立部署一套Config Service、Admin Service和ApolloConfigDB,具体请参考:[2.1.2 创建ApolloConfigDB](zh/deployment/distributed-deployment-guide?id=_212-创建apolloconfigdb),[3.2 调整ApolloConfigDB配置](zh/deployment/distributed-deployment-guide?id=_32-调整apolloconfigdb配置),[2.2.1.1.2 配置数据库连接信息](zh/deployment/distributed-deployment-guide?id=_22112-配置数据库连接信息) > 注2:如果是为已经运行了一段时间的Apollo配置中心增加环境,别忘了参考[2.1.2.4 从别的环境导入ApolloConfigDB的项目数据](zh/deployment/distributed-deployment-guide?id=_2124-从别的环境导入apolloconfigdb的项目数据)对新的环境做初始化 ### 5. 如何删除应用、集群、Namespace? 0.11.0版本开始Apollo管理员增加了删除应用、集群和AppNamespace的页面,建议使用该页面进行删除。 页面入口: ![delete-app-cluster-namespace-entry](https://raw.githubusercontent.com/ctripcorp/apollo/master/doc/images/delete-app-cluster-namespace-entry.png) 页面详情: ![delete-app-cluster-namespace-detail](https://raw.githubusercontent.com/ctripcorp/apollo/master/doc/images/delete-app-cluster-namespace-detail.png) ### 6. 客户端多块网卡造成获取IP不准,如何解决? 获取客户端网卡逻辑在1.4.0版本有所调整,所以需要根据客户端版本区分 #### 6.1 apollo-client为1.3.0及之前的版本 如果有多网卡,且都是普通网卡的话,需要在/etc/hosts里面加一条映射关系来提升权重。 格式:`ip ${hostname}` 这里的${hostname}就是你在机器上执行hostname的结果。 比如正确IP为:192.168.1.50,hostname执行结果为:jim-ubuntu-pc 那么最终在hosts文件映射的记录为: ``` 192.168.1.50 jim-ubuntu-pc ``` #### 6.2 apollo-client为1.4.0及之后的版本 如果有多网卡,且都是普通网卡的话,可以通过调整它们在系统中的顺序来改变优先级,顺序在前的优先级更高。 ### 7. 通过Apollo动态调整Spring Boot的Logging level 可以参考[apollo-use-cases](https://github.com/ctripcorp/apollo-use-cases)项目中的[spring-cloud-logger](https://github.com/ctripcorp/apollo-use-cases/tree/master/spring-cloud-logger)和[spring-boot-logger](https://github.com/ctripcorp/apollo-use-cases/tree/master/spring-boot-logger)代码示例。 ### 8. 将Config Service和Admin Service注册到单独的Eureka Server上 Apollo默认自带了Eureka作为内部的注册中心实现,一般情况下不需要考虑为Apollo单独部署注册中心。 不过有些公司自己已经有了一套Eureka,如果希望把Apollo的Config Service和Admin Service也注册过去实现统一管理的话,可以按照如下步骤操作: #### 1. 配置Config Service不启动内置Eureka Server ##### 1.1 1.5.0及以上版本 为apollo-configservice配置`apollo.eureka.server.enabled=false`即可,通过bootstrap.yml或-D参数等方式皆可。 ##### 1.2 1.5.0之前的版本 修改[com.ctrip.framework.apollo.configservice.ConfigServiceApplication](https://github.com/ctripcorp/apollo/blob/master/apollo-configservice/src/main/java/com/ctrip/framework/apollo/configservice/ConfigServiceApplication.java),把`@EnableEurekaServer`改为`@EnableEurekaClient` ```java @EnableEurekaClient @EnableAspectJAutoProxy @EnableAutoConfiguration // (exclude = EurekaClientConfigBean.class) @Configuration @EnableTransactionManagement @PropertySource(value = {"classpath:configservice.properties"}) @ComponentScan(basePackageClasses = {ApolloCommonConfig.class, ApolloBizConfig.class, ConfigServiceApplication.class, ApolloMetaServiceConfig.class}) public class ConfigServiceApplication { ... } ``` #### 2. 修改ApolloConfigDB.ServerConfig表中的`eureka.service.url`,指向自己的Eureka地址 比如自己的Eureka服务地址是1.1.1.1:8761和2.2.2.2:8761,那么就将ApolloConfigDB.ServerConfig表中设置eureka.service.url为: ``` http://1.1.1.1:8761/eureka/,http://2.2.2.2:8761/eureka/ ``` 需要注意的是更改Eureka地址只需要改ApolloConfigDB.ServerConfig表中的`eureka.service.url`即可,不需要修改meta server地址。 > 默认情况下,meta service和config service是部署在同一个JVM进程,所以meta service的地址就是config service的地址,修改Eureka地址时不需要修改meta server地址。 ### 9. Spring Boot中使用`ConditionalOnProperty`读取不到配置 `@ConditionalOnProperty`功能从0.10.0版本开始支持,具体可以参考 [Spring Boot集成方式](zh/usage/java-sdk-user-guide?id=_3213-spring-boot集成方式(推荐)) ### 10. 多机房如何实现A机房的客户端就近读取A机房的config service,B机房的客户端就近读取B机房的config service? 请参考[Issue 1294](https://github.com/ctripcorp/apollo/issues/1294),该案例中由于中美机房相距甚远,所以需要config db两地部署,如果是同城多机房的话,两个机房的config service可以连同一个config db。 ### 11. apollo是否有支持HEAD请求的页面?阿里云slb配置健康检查只支持HEAD请求 apollo的每个服务都有`/health`页面的,该页面是apollo用来做健康检测的,支持各种请求方法,如GET, POST, HEAD等。 ### 12. apollo如何配置查看权限? 从1.1.0版本开始,apollo-portal增加了查看权限的支持,可以支持配置某个环境只允许项目成员查看私有Namespace的配置。 这里的项目成员是指: 1. 项目的管理员 2. 具备该私有Namespace在该环境下的修改或发布权限 配置方式很简单,用超级管理员账号登录后,进入`管理员工具 - 系统参数`页面新增或修改`configView.memberOnly.envs`配置项即可。 ![configView.memberOnly.envs](https://user-images.githubusercontent.com/837658/46456519-c155e100-c7e1-11e8-969b-8f332379fa29.png) ### 13. apollo如何放在独立的tomcat中跑? 有些公司的运维策略可能会要求必须使用独立的tomcat跑应用,不允许apollo默认的startup.sh方式运行,下面以apollo-configservice为例简述一下如何使apollo服务端运行在独立的tomcat中: 1. 获取apollo代码(生产部署建议用release的版本) 2. 修改apollo-configservice的pom.xml,增加`<packaging>war</packaging>` 3. 按照分布式部署文档配置build.sh,然后打包 4. 把apollo-configservice的war包放到tomcat下 * cp apollo-configservice/target/apollo-configservice-xxx.war ${tomcat-dir}/webapps/ROOT.war 运行tomcat的startup.sh 5. 运行tomcat的startup.sh 另外,apollo还有一些调优参数建议在tomcat的server.xml中配置一下,可以参考[application.properties](https://github.com/ctripcorp/apollo/blob/master/apollo-common/src/main/resources/application.properties#L12) ### 14. 注册中心Eureka如何替换为zookeeper? 许多公司微服务项目已经在使用zookeeper,如果出于方便服务管理的目的,希望Eureka替换为zookeeper的情况,可以参考[@hanyidreamer](https://github.com/hanyidreamer)贡献的改造步骤:[注册中心Eureka替换为zookeeper](https://blog.csdn.net/u014732209/article/details/89555535) ### 15. 本地多人同时开发,如何实现配置不一样且互不影响? 参考[#1560](https://github.com/ctripcorp/apollo/issues/1560) ### 16. Portal挂载到nginx/slb后如何设置相对路径? 一般情况下建议直接使用根目录来挂载portal,不过如果有些情况希望和其它应用共用nginx/slb,需要加上相对路径(如/apollo),那么可以按照下面的方式配置。 #### 16.1 Portal为1.7.0及以上版本 首先为apollo-portal增加-D参数`server.servlet.context-path=/apollo`或系统环境变量`SERVER_SERVLET_CONTEXT_PATH=/apollo`。 然后在nginx/slb上配置转发即可,以nginx为例: ``` location /apollo/ { proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://127.0.0.1:8070/apollo/; } ``` #### 16.2 Portal为1.6.0及以上版本 首先为portal加上`prefix.path=/apollo`配置参数,配置方式很简单,用超级管理员账号登录后,进入`管理员工具 - 系统参数`页面新增或修改`prefix.path`配置项即可。 然后在nginx/slb上配置转发即可,以nginx为例: ``` location /apollo/ { proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://127.0.0.1:8070/; } ```
### 1. windows怎么执行build.sh? 安装[Git Bash](https://git-for-windows.github.io/),然后运行 “./build.sh” 注意前面 “./” ### 2. 本地运行时Portal一直报Env is down. 默认config service启动在8080端口,admin service启动在8090端口。请确认这两个端口是否被其它应用程序占用。 如果还伴有异常信息:org.springframework.web.client.HttpClientErrorException: 405 Method Not Allowed,一般是由于本地启动了`ShadowSocks`,因为`ShadowSocks`默认会占用8090端口。 1.1.0版本增加了**系统信息**页面,可以通过`管理员工具` -> `系统信息`查看当前各个环境的Meta Server以及admin service信息,有助于排查问题。 ### 3. admin server 或者 config server 注册了内网IP,导致portal或者client访问不了admin server或config server 请参考[网络策略](zh/deployment/distributed-deployment-guide?id=_14-网络策略)。 ### 4. Portal如何增加环境? #### 4.1 1.6.0及以上的版本 1.6.0版本增加了自定义环境的功能,可以在不修改代码的情况增加环境 1. protaldb增加环境,参考[3.1 调整ApolloPortalDB配置](zh/deployment/distributed-deployment-guide?id=_31-调整apolloportaldb配置) 2. 为apollo-portal添加新增环境对应的meta server地址,具体参考:[2.2.1.1.2.4 配置apollo-portal的meta service信息](zh/deployment/distributed-deployment-guide?id=_221124-配置apollo-portal的meta-service信息)。apollo-client在新的环境下使用时也需要做好相应的配置,具体参考:[1.2.2 Apollo Meta Server](zh/usage/java-sdk-user-guide?id=_122-apollo-meta-server)。 >注1:一套Portal可以管理多个环境,但是每个环境都需要独立部署一套Config Service、Admin Service和ApolloConfigDB,具体请参考:[2.1.2 创建ApolloConfigDB](zh/deployment/distributed-deployment-guide?id=_212-创建apolloconfigdb),[3.2 调整ApolloConfigDB配置](zh/deployment/distributed-deployment-guide?id=_32-调整apolloconfigdb配置),[2.2.1.1.2 配置数据库连接信息](zh/deployment/distributed-deployment-guide?id=_22112-配置数据库连接信息) > 注2:如果是为已经运行了一段时间的Apollo配置中心增加环境,别忘了参考[2.1.2.4 从别的环境导入ApolloConfigDB的项目数据](zh/deployment/distributed-deployment-guide?id=_2124-从别的环境导入apolloconfigdb的项目数据)对新的环境做初始化 #### 4.2 1.5.1及之前的版本 ##### 4.2.1 添加Apollo预先定义好的环境 如果需要添加的环境是Apollo预先定义的环境(DEV, FAT, UAT, PRO),需要两步操作: 1. protaldb增加环境,参考[3.1 调整ApolloPortalDB配置](zh/deployment/distributed-deployment-guide?id=_31-调整apolloportaldb配置) 2. 为apollo-portal添加新增环境对应的meta server地址,具体参考:[2.2.1.1.2.4 配置apollo-portal的meta service信息](zh/deployment/distributed-deployment-guide?id=_221124-配置apollo-portal的meta-service信息)。apollo-client在新的环境下使用时也需要做好相应的配置,具体参考:[1.2.2 Apollo Meta Server](zh/usage/java-sdk-user-guide?id=_122-apollo-meta-server)。 >注1:一套Portal可以管理多个环境,但是每个环境都需要独立部署一套Config Service、Admin Service和ApolloConfigDB,具体请参考:[2.1.2 创建ApolloConfigDB](zh/deployment/distributed-deployment-guide?id=_212-创建apolloconfigdb),[3.2 调整ApolloConfigDB配置](zh/deployment/distributed-deployment-guide?id=_32-调整apolloconfigdb配置),[2.2.1.1.2 配置数据库连接信息](zh/deployment/distributed-deployment-guide?id=_22112-配置数据库连接信息) > 注2:如果是为已经运行了一段时间的Apollo配置中心增加环境,别忘了参考[2.1.2.4 从别的环境导入ApolloConfigDB的项目数据](zh/deployment/distributed-deployment-guide?id=_2124-从别的环境导入apolloconfigdb的项目数据)对新的环境做初始化 ##### 4.2.2 添加自定义的环境 如果需要添加的环境不是Apollo预先定义的环境,请参照如下步骤操作: 1. 假设需要添加的环境名称叫beta 2. 修改[com.ctrip.framework.apollo.core.enums.Env](https://github.com/ctripcorp/apollo/blob/master/apollo-core/src/main/java/com/ctrip/framework/apollo/core/enums/Env.java)类,在其中加入`BETA`枚举: ```java public enum Env{ LOCAL, DEV, BETA, FWS, FAT, UAT, LPT, PRO, TOOLS, UNKNOWN; ... } ``` 3. 修改[com.ctrip.framework.apollo.core.enums.EnvUtils](https://github.com/ctripcorp/apollo/blob/master/apollo-core/src/main/java/com/ctrip/framework/apollo/core/enums/EnvUtils.java)类,在其中加入`BETA`枚举的转换逻辑: ```java public final class EnvUtils { public static Env transformEnv(String envName) { if (StringUtils.isBlank(envName)) { return Env.UNKNOWN; } switch (envName.trim().toUpperCase()) { ... case "BETA": return Env.BETA; ... default: return Env.UNKNOWN; } } } ``` 4. 修改[apollo-env.properties](https://github.com/ctripcorp/apollo/blob/master/apollo-portal/src/main/resources/apollo-env.properties),增加`beta.meta`占位符: ```properties local.meta=http://localhost:8080 dev.meta=${dev_meta} fat.meta=${fat_meta} beta.meta=${beta_meta} uat.meta=${uat_meta} lpt.meta=${lpt_meta} pro.meta=${pro_meta} ``` 5. 修改[com.ctrip.framework.apollo.core.internals.LegacyMetaServerProvider](https://github.com/ctripcorp/apollo/blob/master/apollo-core/src/main/java/com/ctrip/framework/apollo/core/internals/LegacyMetaServerProvider.java)类,增加读取`BETA`环境的meta server地址逻辑: ```java public class LegacyMetaServerProvider { ... domains.put(Env.BETA, getMetaServerAddress(prop, "beta_meta", "beta.meta")); ... } ``` 6. protaldb增加`BETA`环境,参考[3.1 调整ApolloPortalDB配置](zh/deployment/distributed-deployment-guide?id=_31-调整apolloportaldb配置) 7. 为apollo-portal添加新增环境对应的meta server地址,具体参考:[2.2.1.1.2.4 配置apollo-portal的meta service信息](zh/deployment/distributed-deployment-guide?id=_221124-配置apollo-portal的meta-service信息)。apollo-client在新的环境下使用时也需要做好相应的配置,具体参考:[1.2.2 Apollo Meta Server](zh/usage/java-sdk-user-guide?id=_122-apollo-meta-server)。 >注1:一套Portal可以管理多个环境,但是每个环境都需要独立部署一套Config Service、Admin Service和ApolloConfigDB,具体请参考:[2.1.2 创建ApolloConfigDB](zh/deployment/distributed-deployment-guide?id=_212-创建apolloconfigdb),[3.2 调整ApolloConfigDB配置](zh/deployment/distributed-deployment-guide?id=_32-调整apolloconfigdb配置),[2.2.1.1.2 配置数据库连接信息](zh/deployment/distributed-deployment-guide?id=_22112-配置数据库连接信息) > 注2:如果是为已经运行了一段时间的Apollo配置中心增加环境,别忘了参考[2.1.2.4 从别的环境导入ApolloConfigDB的项目数据](zh/deployment/distributed-deployment-guide?id=_2124-从别的环境导入apolloconfigdb的项目数据)对新的环境做初始化 ### 5. 如何删除应用、集群、Namespace? 0.11.0版本开始Apollo管理员增加了删除应用、集群和AppNamespace的页面,建议使用该页面进行删除。 页面入口: ![delete-app-cluster-namespace-entry](https://raw.githubusercontent.com/ctripcorp/apollo/master/doc/images/delete-app-cluster-namespace-entry.png) 页面详情: ![delete-app-cluster-namespace-detail](https://raw.githubusercontent.com/ctripcorp/apollo/master/doc/images/delete-app-cluster-namespace-detail.png) ### 6. 客户端多块网卡造成获取IP不准,如何解决? 获取客户端网卡逻辑在1.4.0版本有所调整,所以需要根据客户端版本区分 #### 6.1 apollo-client为1.3.0及之前的版本 如果有多网卡,且都是普通网卡的话,需要在/etc/hosts里面加一条映射关系来提升权重。 格式:`ip ${hostname}` 这里的${hostname}就是你在机器上执行hostname的结果。 比如正确IP为:192.168.1.50,hostname执行结果为:jim-ubuntu-pc 那么最终在hosts文件映射的记录为: ``` 192.168.1.50 jim-ubuntu-pc ``` #### 6.2 apollo-client为1.4.0及之后的版本 如果有多网卡,且都是普通网卡的话,可以通过调整它们在系统中的顺序来改变优先级,顺序在前的优先级更高。 ### 7. 通过Apollo动态调整Spring Boot的Logging level 可以参考[apollo-use-cases](https://github.com/ctripcorp/apollo-use-cases)项目中的[spring-cloud-logger](https://github.com/ctripcorp/apollo-use-cases/tree/master/spring-cloud-logger)和[spring-boot-logger](https://github.com/ctripcorp/apollo-use-cases/tree/master/spring-boot-logger)代码示例。 ### 8. 将Config Service和Admin Service注册到单独的Eureka Server上 Apollo默认自带了Eureka作为内部的注册中心实现,一般情况下不需要考虑为Apollo单独部署注册中心。 不过有些公司自己已经有了一套Eureka,如果希望把Apollo的Config Service和Admin Service也注册过去实现统一管理的话,可以按照如下步骤操作: #### 1. 配置Config Service不启动内置Eureka Server ##### 1.1 1.5.0及以上版本 为apollo-configservice配置`apollo.eureka.server.enabled=false`即可,通过bootstrap.yml或-D参数等方式皆可。 ##### 1.2 1.5.0之前的版本 修改[com.ctrip.framework.apollo.configservice.ConfigServiceApplication](https://github.com/ctripcorp/apollo/blob/master/apollo-configservice/src/main/java/com/ctrip/framework/apollo/configservice/ConfigServiceApplication.java),把`@EnableEurekaServer`改为`@EnableEurekaClient` ```java @EnableEurekaClient @EnableAspectJAutoProxy @EnableAutoConfiguration // (exclude = EurekaClientConfigBean.class) @Configuration @EnableTransactionManagement @PropertySource(value = {"classpath:configservice.properties"}) @ComponentScan(basePackageClasses = {ApolloCommonConfig.class, ApolloBizConfig.class, ConfigServiceApplication.class, ApolloMetaServiceConfig.class}) public class ConfigServiceApplication { ... } ``` #### 2. 修改ApolloConfigDB.ServerConfig表中的`eureka.service.url`,指向自己的Eureka地址 比如自己的Eureka服务地址是1.1.1.1:8761和2.2.2.2:8761,那么就将ApolloConfigDB.ServerConfig表中设置eureka.service.url为: ``` http://1.1.1.1:8761/eureka/,http://2.2.2.2:8761/eureka/ ``` 需要注意的是更改Eureka地址只需要改ApolloConfigDB.ServerConfig表中的`eureka.service.url`即可,不需要修改meta server地址。 > 默认情况下,meta service和config service是部署在同一个JVM进程,所以meta service的地址就是config service的地址,修改Eureka地址时不需要修改meta server地址。 ### 9. Spring Boot中使用`ConditionalOnProperty`读取不到配置 `@ConditionalOnProperty`功能从0.10.0版本开始支持,具体可以参考 [Spring Boot集成方式](zh/usage/java-sdk-user-guide?id=_3213-spring-boot集成方式(推荐)) ### 10. 多机房如何实现A机房的客户端就近读取A机房的config service,B机房的客户端就近读取B机房的config service? 请参考[Issue 1294](https://github.com/ctripcorp/apollo/issues/1294),该案例中由于中美机房相距甚远,所以需要config db两地部署,如果是同城多机房的话,两个机房的config service可以连同一个config db。 ### 11. apollo是否有支持HEAD请求的页面?阿里云slb配置健康检查只支持HEAD请求 apollo的每个服务都有`/health`页面的,该页面是apollo用来做健康检测的,支持各种请求方法,如GET, POST, HEAD等。 ### 12. apollo如何配置查看权限? 从1.1.0版本开始,apollo-portal增加了查看权限的支持,可以支持配置某个环境只允许项目成员查看私有Namespace的配置。 这里的项目成员是指: 1. 项目的管理员 2. 具备该私有Namespace在该环境下的修改或发布权限 配置方式很简单,用超级管理员账号登录后,进入`管理员工具 - 系统参数`页面新增或修改`configView.memberOnly.envs`配置项即可。 ![configView.memberOnly.envs](https://user-images.githubusercontent.com/837658/46456519-c155e100-c7e1-11e8-969b-8f332379fa29.png) ### 13. apollo如何放在独立的tomcat中跑? 有些公司的运维策略可能会要求必须使用独立的tomcat跑应用,不允许apollo默认的startup.sh方式运行,下面以apollo-configservice为例简述一下如何使apollo服务端运行在独立的tomcat中: 1. 获取apollo代码(生产部署建议用release的版本) 2. 修改apollo-configservice的pom.xml,增加`<packaging>war</packaging>` 3. 按照分布式部署文档配置build.sh,然后打包 4. 把apollo-configservice的war包放到tomcat下 * cp apollo-configservice/target/apollo-configservice-xxx.war ${tomcat-dir}/webapps/ROOT.war 运行tomcat的startup.sh 5. 运行tomcat的startup.sh 另外,apollo还有一些调优参数建议在tomcat的server.xml中配置一下,可以参考[application.properties](https://github.com/ctripcorp/apollo/blob/master/apollo-common/src/main/resources/application.properties#L12) ### 14. 注册中心Eureka如何替换为zookeeper? 许多公司微服务项目已经在使用zookeeper,如果出于方便服务管理的目的,希望Eureka替换为zookeeper的情况,可以参考[@hanyidreamer](https://github.com/hanyidreamer)贡献的改造步骤:[注册中心Eureka替换为zookeeper](https://blog.csdn.net/u014732209/article/details/89555535) ### 15. 本地多人同时开发,如何实现配置不一样且互不影响? 参考[#1560](https://github.com/ctripcorp/apollo/issues/1560) ### 16. Portal挂载到nginx/slb后如何设置相对路径? 一般情况下建议直接使用根目录来挂载portal,不过如果有些情况希望和其它应用共用nginx/slb,需要加上相对路径(如/apollo),那么可以按照下面的方式配置。 #### 16.1 Portal为1.7.0及以上版本 首先为apollo-portal增加-D参数`server.servlet.context-path=/apollo`或系统环境变量`SERVER_SERVLET_CONTEXT_PATH=/apollo`。 然后在nginx/slb上配置转发即可,以nginx为例: ``` location /apollo/ { proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://127.0.0.1:8070/apollo/; } ``` #### 16.2 Portal为1.6.0及以上版本 首先为portal加上`prefix.path=/apollo`配置参数,配置方式很简单,用超级管理员账号登录后,进入`管理员工具 - 系统参数`页面新增或修改`prefix.path`配置项即可。 然后在nginx/slb上配置转发即可,以nginx为例: ``` location /apollo/ { proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://127.0.0.1:8070/; } ```
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-core/src/main/java/com/ctrip/framework/apollo/core/signature/Signature.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.core.signature; import com.google.common.collect.Maps; import com.google.common.net.HttpHeaders; import java.net.MalformedURLException; import java.net.URL; import java.util.Map; /** * @author nisiyong */ public class Signature { /** * Authorization=Apollo {appId}:{sign} */ private static final String AUTHORIZATION_FORMAT = "Apollo %s:%s"; private static final String DELIMITER = "\n"; public static final String HTTP_HEADER_TIMESTAMP = "Timestamp"; public static String signature(String timestamp, String pathWithQuery, String secret) { String stringToSign = timestamp + DELIMITER + pathWithQuery; return HmacSha1Utils.signString(stringToSign, secret); } public static Map<String, String> buildHttpHeaders(String url, String appId, String secret) { long currentTimeMillis = System.currentTimeMillis(); String timestamp = String.valueOf(currentTimeMillis); String pathWithQuery = url2PathWithQuery(url); String signature = signature(timestamp, pathWithQuery, secret); Map<String, String> headers = Maps.newHashMap(); headers.put(HttpHeaders.AUTHORIZATION, String.format(AUTHORIZATION_FORMAT, appId, signature)); headers.put(HTTP_HEADER_TIMESTAMP, timestamp); return headers; } private static String url2PathWithQuery(String urlString) { try { URL url = new URL(urlString); String path = url.getPath(); String query = url.getQuery(); String pathWithQuery = path; if (query != null && query.length() > 0) { pathWithQuery += "?" + query; } return pathWithQuery; } catch (MalformedURLException e) { throw new IllegalArgumentException("Invalid url pattern: " + urlString, e); } } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.core.signature; import com.google.common.collect.Maps; import com.google.common.net.HttpHeaders; import java.net.MalformedURLException; import java.net.URL; import java.util.Map; /** * @author nisiyong */ public class Signature { /** * Authorization=Apollo {appId}:{sign} */ private static final String AUTHORIZATION_FORMAT = "Apollo %s:%s"; private static final String DELIMITER = "\n"; public static final String HTTP_HEADER_TIMESTAMP = "Timestamp"; public static String signature(String timestamp, String pathWithQuery, String secret) { String stringToSign = timestamp + DELIMITER + pathWithQuery; return HmacSha1Utils.signString(stringToSign, secret); } public static Map<String, String> buildHttpHeaders(String url, String appId, String secret) { long currentTimeMillis = System.currentTimeMillis(); String timestamp = String.valueOf(currentTimeMillis); String pathWithQuery = url2PathWithQuery(url); String signature = signature(timestamp, pathWithQuery, secret); Map<String, String> headers = Maps.newHashMap(); headers.put(HttpHeaders.AUTHORIZATION, String.format(AUTHORIZATION_FORMAT, appId, signature)); headers.put(HTTP_HEADER_TIMESTAMP, timestamp); return headers; } private static String url2PathWithQuery(String urlString) { try { URL url = new URL(urlString); String path = url.getPath(); String query = url.getQuery(); String pathWithQuery = path; if (query != null && query.length() > 0) { pathWithQuery += "?" + query; } return pathWithQuery; } catch (MalformedURLException e) { throw new IllegalArgumentException("Invalid url pattern: " + urlString, e); } } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-biz/src/main/java/com/ctrip/framework/apollo/biz/repository/InstanceConfigRepository.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.biz.repository; import com.ctrip.framework.apollo.biz.entity.InstanceConfig; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.PagingAndSortingRepository; import org.springframework.data.repository.query.Param; import java.util.Date; import java.util.List; import java.util.Set; public interface InstanceConfigRepository extends PagingAndSortingRepository<InstanceConfig, Long> { InstanceConfig findByInstanceIdAndConfigAppIdAndConfigNamespaceName(long instanceId, String configAppId, String configNamespaceName); Page<InstanceConfig> findByReleaseKeyAndDataChangeLastModifiedTimeAfter(String releaseKey, Date validDate, Pageable pageable); Page<InstanceConfig> findByConfigAppIdAndConfigClusterNameAndConfigNamespaceNameAndDataChangeLastModifiedTimeAfter( String appId, String clusterName, String namespaceName, Date validDate, Pageable pageable); List<InstanceConfig> findByConfigAppIdAndConfigClusterNameAndConfigNamespaceNameAndDataChangeLastModifiedTimeAfterAndReleaseKeyNotIn( String appId, String clusterName, String namespaceName, Date validDate, Set<String> releaseKey); @Modifying @Query("delete from InstanceConfig where ConfigAppId=?1 and ConfigClusterName=?2 and ConfigNamespaceName = ?3") int batchDelete(String appId, String clusterName, String namespaceName); @Query( value = "select b.Id from `InstanceConfig` a inner join `Instance` b on b.Id =" + " a.`InstanceId` where a.`ConfigAppId` = :configAppId and a.`ConfigClusterName` = " + ":clusterName and a.`ConfigNamespaceName` = :namespaceName and a.`DataChange_LastTime` " + "> :validDate and b.`AppId` = :instanceAppId", countQuery = "select count(1) from `InstanceConfig` a inner join `Instance` b on b.id =" + " a.`InstanceId` where a.`ConfigAppId` = :configAppId and a.`ConfigClusterName` = " + ":clusterName and a.`ConfigNamespaceName` = :namespaceName and a.`DataChange_LastTime` " + "> :validDate and b.`AppId` = :instanceAppId", nativeQuery = true) Page<Object> findInstanceIdsByNamespaceAndInstanceAppId( @Param("instanceAppId") String instanceAppId, @Param("configAppId") String configAppId, @Param("clusterName") String clusterName, @Param("namespaceName") String namespaceName, @Param("validDate") Date validDate, Pageable pageable); }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.biz.repository; import com.ctrip.framework.apollo.biz.entity.InstanceConfig; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.PagingAndSortingRepository; import org.springframework.data.repository.query.Param; import java.util.Date; import java.util.List; import java.util.Set; public interface InstanceConfigRepository extends PagingAndSortingRepository<InstanceConfig, Long> { InstanceConfig findByInstanceIdAndConfigAppIdAndConfigNamespaceName(long instanceId, String configAppId, String configNamespaceName); Page<InstanceConfig> findByReleaseKeyAndDataChangeLastModifiedTimeAfter(String releaseKey, Date validDate, Pageable pageable); Page<InstanceConfig> findByConfigAppIdAndConfigClusterNameAndConfigNamespaceNameAndDataChangeLastModifiedTimeAfter( String appId, String clusterName, String namespaceName, Date validDate, Pageable pageable); List<InstanceConfig> findByConfigAppIdAndConfigClusterNameAndConfigNamespaceNameAndDataChangeLastModifiedTimeAfterAndReleaseKeyNotIn( String appId, String clusterName, String namespaceName, Date validDate, Set<String> releaseKey); @Modifying @Query("delete from InstanceConfig where ConfigAppId=?1 and ConfigClusterName=?2 and ConfigNamespaceName = ?3") int batchDelete(String appId, String clusterName, String namespaceName); @Query( value = "select b.Id from `InstanceConfig` a inner join `Instance` b on b.Id =" + " a.`InstanceId` where a.`ConfigAppId` = :configAppId and a.`ConfigClusterName` = " + ":clusterName and a.`ConfigNamespaceName` = :namespaceName and a.`DataChange_LastTime` " + "> :validDate and b.`AppId` = :instanceAppId", countQuery = "select count(1) from `InstanceConfig` a inner join `Instance` b on b.id =" + " a.`InstanceId` where a.`ConfigAppId` = :configAppId and a.`ConfigClusterName` = " + ":clusterName and a.`ConfigNamespaceName` = :namespaceName and a.`DataChange_LastTime` " + "> :validDate and b.`AppId` = :instanceAppId", nativeQuery = true) Page<Object> findInstanceIdsByNamespaceAndInstanceAppId( @Param("instanceAppId") String instanceAppId, @Param("configAppId") String configAppId, @Param("clusterName") String clusterName, @Param("namespaceName") String namespaceName, @Param("validDate") Date validDate, Pageable pageable); }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-client/src/main/java/com/ctrip/framework/apollo/util/function/Functions.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.util.function; import java.util.Date; import com.ctrip.framework.apollo.exceptions.ApolloConfigException; import com.ctrip.framework.apollo.util.parser.ParserException; import com.ctrip.framework.apollo.util.parser.Parsers; import com.google.common.base.Function; /** * @author Jason Song([email protected]) */ public interface Functions { Function<String, Integer> TO_INT_FUNCTION = new Function<String, Integer>() { @Override public Integer apply(String input) { return Integer.parseInt(input); } }; Function<String, Long> TO_LONG_FUNCTION = new Function<String, Long>() { @Override public Long apply(String input) { return Long.parseLong(input); } }; Function<String, Short> TO_SHORT_FUNCTION = new Function<String, Short>() { @Override public Short apply(String input) { return Short.parseShort(input); } }; Function<String, Float> TO_FLOAT_FUNCTION = new Function<String, Float>() { @Override public Float apply(String input) { return Float.parseFloat(input); } }; Function<String, Double> TO_DOUBLE_FUNCTION = new Function<String, Double>() { @Override public Double apply(String input) { return Double.parseDouble(input); } }; Function<String, Byte> TO_BYTE_FUNCTION = new Function<String, Byte>() { @Override public Byte apply(String input) { return Byte.parseByte(input); } }; Function<String, Boolean> TO_BOOLEAN_FUNCTION = new Function<String, Boolean>() { @Override public Boolean apply(String input) { return Boolean.parseBoolean(input); } }; Function<String, Date> TO_DATE_FUNCTION = new Function<String, Date>() { @Override public Date apply(String input) { try { return Parsers.forDate().parse(input); } catch (ParserException ex) { throw new ApolloConfigException("Parse date failed", ex); } } }; Function<String, Long> TO_DURATION_FUNCTION = new Function<String, Long>() { @Override public Long apply(String input) { try { return Parsers.forDuration().parseToMillis(input); } catch (ParserException ex) { throw new ApolloConfigException("Parse duration failed", ex); } } }; }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.util.function; import java.util.Date; import com.ctrip.framework.apollo.exceptions.ApolloConfigException; import com.ctrip.framework.apollo.util.parser.ParserException; import com.ctrip.framework.apollo.util.parser.Parsers; import com.google.common.base.Function; /** * @author Jason Song([email protected]) */ public interface Functions { Function<String, Integer> TO_INT_FUNCTION = new Function<String, Integer>() { @Override public Integer apply(String input) { return Integer.parseInt(input); } }; Function<String, Long> TO_LONG_FUNCTION = new Function<String, Long>() { @Override public Long apply(String input) { return Long.parseLong(input); } }; Function<String, Short> TO_SHORT_FUNCTION = new Function<String, Short>() { @Override public Short apply(String input) { return Short.parseShort(input); } }; Function<String, Float> TO_FLOAT_FUNCTION = new Function<String, Float>() { @Override public Float apply(String input) { return Float.parseFloat(input); } }; Function<String, Double> TO_DOUBLE_FUNCTION = new Function<String, Double>() { @Override public Double apply(String input) { return Double.parseDouble(input); } }; Function<String, Byte> TO_BYTE_FUNCTION = new Function<String, Byte>() { @Override public Byte apply(String input) { return Byte.parseByte(input); } }; Function<String, Boolean> TO_BOOLEAN_FUNCTION = new Function<String, Boolean>() { @Override public Boolean apply(String input) { return Boolean.parseBoolean(input); } }; Function<String, Date> TO_DATE_FUNCTION = new Function<String, Date>() { @Override public Date apply(String input) { try { return Parsers.forDate().parse(input); } catch (ParserException ex) { throw new ApolloConfigException("Parse date failed", ex); } } }; Function<String, Long> TO_DURATION_FUNCTION = new Function<String, Long>() { @Override public Long apply(String input) { try { return Parsers.forDuration().parseToMillis(input); } catch (ParserException ex) { throw new ApolloConfigException("Parse duration failed", ex); } } }; }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-client/src/main/java/com/ctrip/framework/apollo/spring/spi/DefaultConfigPropertySourcesProcessorHelper.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.spring.spi; import com.ctrip.framework.apollo.core.spi.Ordered; import com.ctrip.framework.apollo.spring.annotation.ApolloAnnotationProcessor; import com.ctrip.framework.apollo.spring.annotation.SpringValueProcessor; import com.ctrip.framework.apollo.spring.property.SpringValueDefinitionProcessor; import com.ctrip.framework.apollo.spring.util.BeanRegistrationUtil; import java.util.HashMap; import java.util.Map; import org.springframework.beans.BeansException; import org.springframework.beans.factory.support.BeanDefinitionRegistry; import org.springframework.context.support.PropertySourcesPlaceholderConfigurer; public class DefaultConfigPropertySourcesProcessorHelper implements ConfigPropertySourcesProcessorHelper { @Override public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) throws BeansException { Map<String, Object> propertySourcesPlaceholderPropertyValues = new HashMap<>(); // to make sure the default PropertySourcesPlaceholderConfigurer's priority is higher than PropertyPlaceholderConfigurer propertySourcesPlaceholderPropertyValues.put("order", 0); BeanRegistrationUtil.registerBeanDefinitionIfNotExists(registry, PropertySourcesPlaceholderConfigurer.class.getName(), PropertySourcesPlaceholderConfigurer.class, propertySourcesPlaceholderPropertyValues); BeanRegistrationUtil.registerBeanDefinitionIfNotExists(registry, ApolloAnnotationProcessor.class.getName(), ApolloAnnotationProcessor.class); BeanRegistrationUtil.registerBeanDefinitionIfNotExists(registry, SpringValueProcessor.class.getName(), SpringValueProcessor.class); processSpringValueDefinition(registry); } /** * For Spring 3.x versions, the BeanDefinitionRegistryPostProcessor would not be instantiated if * it is added in postProcessBeanDefinitionRegistry phase, so we have to manually call the * postProcessBeanDefinitionRegistry method of SpringValueDefinitionProcessor here... */ private void processSpringValueDefinition(BeanDefinitionRegistry registry) { SpringValueDefinitionProcessor springValueDefinitionProcessor = new SpringValueDefinitionProcessor(); springValueDefinitionProcessor.postProcessBeanDefinitionRegistry(registry); } @Override public int getOrder() { return Ordered.LOWEST_PRECEDENCE; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.spring.spi; import com.ctrip.framework.apollo.core.spi.Ordered; import com.ctrip.framework.apollo.spring.annotation.ApolloAnnotationProcessor; import com.ctrip.framework.apollo.spring.annotation.SpringValueProcessor; import com.ctrip.framework.apollo.spring.property.SpringValueDefinitionProcessor; import com.ctrip.framework.apollo.spring.util.BeanRegistrationUtil; import java.util.HashMap; import java.util.Map; import org.springframework.beans.BeansException; import org.springframework.beans.factory.support.BeanDefinitionRegistry; import org.springframework.context.support.PropertySourcesPlaceholderConfigurer; public class DefaultConfigPropertySourcesProcessorHelper implements ConfigPropertySourcesProcessorHelper { @Override public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) throws BeansException { Map<String, Object> propertySourcesPlaceholderPropertyValues = new HashMap<>(); // to make sure the default PropertySourcesPlaceholderConfigurer's priority is higher than PropertyPlaceholderConfigurer propertySourcesPlaceholderPropertyValues.put("order", 0); BeanRegistrationUtil.registerBeanDefinitionIfNotExists(registry, PropertySourcesPlaceholderConfigurer.class.getName(), PropertySourcesPlaceholderConfigurer.class, propertySourcesPlaceholderPropertyValues); BeanRegistrationUtil.registerBeanDefinitionIfNotExists(registry, ApolloAnnotationProcessor.class.getName(), ApolloAnnotationProcessor.class); BeanRegistrationUtil.registerBeanDefinitionIfNotExists(registry, SpringValueProcessor.class.getName(), SpringValueProcessor.class); processSpringValueDefinition(registry); } /** * For Spring 3.x versions, the BeanDefinitionRegistryPostProcessor would not be instantiated if * it is added in postProcessBeanDefinitionRegistry phase, so we have to manually call the * postProcessBeanDefinitionRegistry method of SpringValueDefinitionProcessor here... */ private void processSpringValueDefinition(BeanDefinitionRegistry registry) { SpringValueDefinitionProcessor springValueDefinitionProcessor = new SpringValueDefinitionProcessor(); springValueDefinitionProcessor.postProcessBeanDefinitionRegistry(registry); } @Override public int getOrder() { return Ordered.LOWEST_PRECEDENCE; } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-client/src/main/java/com/ctrip/framework/apollo/util/ExceptionUtil.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.util; import java.util.List; import com.google.common.base.Strings; import com.google.common.collect.Lists; /** * @author Jason Song([email protected]) */ public class ExceptionUtil { /** * Assemble the detail message for the throwable with all of its cause included (at most 10 causes). * @param ex the exception * @return the message along with its causes */ public static String getDetailMessage(Throwable ex) { if (ex == null || Strings.isNullOrEmpty(ex.getMessage())) { return ""; } StringBuilder builder = new StringBuilder(ex.getMessage()); List<Throwable> causes = Lists.newLinkedList(); int counter = 0; Throwable current = ex; //retrieve up to 10 causes while (current.getCause() != null && counter < 10) { Throwable next = current.getCause(); causes.add(next); current = next; counter++; } for (Throwable cause : causes) { if (Strings.isNullOrEmpty(cause.getMessage())) { counter--; continue; } builder.append(" [Cause: ").append(cause.getMessage()); } builder.append(Strings.repeat("]", counter)); return builder.toString(); } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.util; import java.util.List; import com.google.common.base.Strings; import com.google.common.collect.Lists; /** * @author Jason Song([email protected]) */ public class ExceptionUtil { /** * Assemble the detail message for the throwable with all of its cause included (at most 10 causes). * @param ex the exception * @return the message along with its causes */ public static String getDetailMessage(Throwable ex) { if (ex == null || Strings.isNullOrEmpty(ex.getMessage())) { return ""; } StringBuilder builder = new StringBuilder(ex.getMessage()); List<Throwable> causes = Lists.newLinkedList(); int counter = 0; Throwable current = ex; //retrieve up to 10 causes while (current.getCause() != null && counter < 10) { Throwable next = current.getCause(); causes.add(next); current = next; counter++; } for (Throwable cause : causes) { if (Strings.isNullOrEmpty(cause.getMessage())) { counter--; continue; } builder.append(" [Cause: ").append(cause.getMessage()); } builder.append(Strings.repeat("]", counter)); return builder.toString(); } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-client/src/test/java/com/ctrip/framework/apollo/spring/spi/ApolloConfigRegistrarHelperTest.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.spring.spi; import static org.springframework.test.util.AssertionErrors.assertEquals; import com.ctrip.framework.apollo.spring.annotation.ApolloConfigRegistrar; import java.lang.reflect.Field; import org.junit.Test; import org.springframework.util.ReflectionUtils; public class ApolloConfigRegistrarHelperTest { @Test public void testHelperLoadingOrder() { ApolloConfigRegistrar apolloConfigRegistrar = new ApolloConfigRegistrar(); Field field = ReflectionUtils.findField(ApolloConfigRegistrar.class, "helper"); ReflectionUtils.makeAccessible(field); Object helper = ReflectionUtils.getField(field, apolloConfigRegistrar); assertEquals("helper is not TestRegistrarHelper instance", TestRegistrarHelper.class, helper.getClass()); } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.spring.spi; import static org.springframework.test.util.AssertionErrors.assertEquals; import com.ctrip.framework.apollo.spring.annotation.ApolloConfigRegistrar; import java.lang.reflect.Field; import org.junit.Test; import org.springframework.util.ReflectionUtils; public class ApolloConfigRegistrarHelperTest { @Test public void testHelperLoadingOrder() { ApolloConfigRegistrar apolloConfigRegistrar = new ApolloConfigRegistrar(); Field field = ReflectionUtils.findField(ApolloConfigRegistrar.class, "helper"); ReflectionUtils.makeAccessible(field); Object helper = ReflectionUtils.getField(field, apolloConfigRegistrar); assertEquals("helper is not TestRegistrarHelper instance", TestRegistrarHelper.class, helper.getClass()); } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/entity/model/AppModel.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.entity.model; import com.ctrip.framework.apollo.common.utils.InputValidator; import java.util.Set; import javax.validation.constraints.NotBlank; import javax.validation.constraints.Pattern; public class AppModel { @NotBlank(message = "name cannot be blank") private String name; @NotBlank(message = "appId cannot be blank") @Pattern( regexp = InputValidator.CLUSTER_NAMESPACE_VALIDATOR, message = "Invalid AppId format: " + InputValidator.INVALID_CLUSTER_NAMESPACE_MESSAGE ) private String appId; @NotBlank(message = "orgId cannot be blank") private String orgId; @NotBlank(message = "orgName cannot be blank") private String orgName; @NotBlank(message = "ownerName cannot be blank") private String ownerName; private Set<String> admins; public String getName() { return name; } public void setName(String name) { this.name = name; } public String getAppId() { return appId; } public void setAppId(String appId) { this.appId = appId; } public String getOrgId() { return orgId; } public void setOrgId(String orgId) { this.orgId = orgId; } public String getOrgName() { return orgName; } public void setOrgName(String orgName) { this.orgName = orgName; } public String getOwnerName() { return ownerName; } public void setOwnerName(String ownerName) { this.ownerName = ownerName; } public Set<String> getAdmins() { return admins; } public void setAdmins(Set<String> admins) { this.admins = admins; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.entity.model; import com.ctrip.framework.apollo.common.utils.InputValidator; import java.util.Set; import javax.validation.constraints.NotBlank; import javax.validation.constraints.Pattern; public class AppModel { @NotBlank(message = "name cannot be blank") private String name; @NotBlank(message = "appId cannot be blank") @Pattern( regexp = InputValidator.CLUSTER_NAMESPACE_VALIDATOR, message = "Invalid AppId format: " + InputValidator.INVALID_CLUSTER_NAMESPACE_MESSAGE ) private String appId; @NotBlank(message = "orgId cannot be blank") private String orgId; @NotBlank(message = "orgName cannot be blank") private String orgName; @NotBlank(message = "ownerName cannot be blank") private String ownerName; private Set<String> admins; public String getName() { return name; } public void setName(String name) { this.name = name; } public String getAppId() { return appId; } public void setAppId(String appId) { this.appId = appId; } public String getOrgId() { return orgId; } public void setOrgId(String orgId) { this.orgId = orgId; } public String getOrgName() { return orgName; } public void setOrgName(String orgName) { this.orgName = orgName; } public String getOwnerName() { return ownerName; } public void setOwnerName(String ownerName) { this.ownerName = ownerName; } public Set<String> getAdmins() { return admins; } public void setAdmins(Set<String> admins) { this.admins = admins; } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/ReleaseService.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.service; import com.ctrip.framework.apollo.common.constants.GsonType; import com.ctrip.framework.apollo.common.dto.ItemChangeSets; import com.ctrip.framework.apollo.common.dto.ReleaseDTO; import com.ctrip.framework.apollo.portal.environment.Env; import com.ctrip.framework.apollo.core.utils.StringUtils; import com.ctrip.framework.apollo.portal.api.AdminServiceAPI; import com.ctrip.framework.apollo.portal.constant.TracerEventType; import com.ctrip.framework.apollo.portal.entity.bo.KVEntity; import com.ctrip.framework.apollo.portal.entity.bo.ReleaseBO; import com.ctrip.framework.apollo.portal.entity.model.NamespaceGrayDelReleaseModel; import com.ctrip.framework.apollo.portal.entity.model.NamespaceReleaseModel; import com.ctrip.framework.apollo.portal.entity.vo.ReleaseCompareResult; import com.ctrip.framework.apollo.portal.enums.ChangeType; import com.ctrip.framework.apollo.portal.spi.UserInfoHolder; import com.ctrip.framework.apollo.tracer.Tracer; import com.google.common.base.Objects; import com.google.gson.Gson; import org.springframework.stereotype.Service; import org.springframework.util.CollectionUtils; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedHashSet; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Set; @Service public class ReleaseService { private static final Gson GSON = new Gson(); private final UserInfoHolder userInfoHolder; private final AdminServiceAPI.ReleaseAPI releaseAPI; public ReleaseService(final UserInfoHolder userInfoHolder, final AdminServiceAPI.ReleaseAPI releaseAPI) { this.userInfoHolder = userInfoHolder; this.releaseAPI = releaseAPI; } public ReleaseDTO publish(NamespaceReleaseModel model) { Env env = model.getEnv(); boolean isEmergencyPublish = model.isEmergencyPublish(); String appId = model.getAppId(); String clusterName = model.getClusterName(); String namespaceName = model.getNamespaceName(); String releaseBy = StringUtils.isEmpty(model.getReleasedBy()) ? userInfoHolder.getUser().getUserId() : model.getReleasedBy(); ReleaseDTO releaseDTO = releaseAPI.createRelease(appId, env, clusterName, namespaceName, model.getReleaseTitle(), model.getReleaseComment(), releaseBy, isEmergencyPublish); Tracer.logEvent(TracerEventType.RELEASE_NAMESPACE, String.format("%s+%s+%s+%s", appId, env, clusterName, namespaceName)); return releaseDTO; } //gray deletion release public ReleaseDTO publish(NamespaceGrayDelReleaseModel model, String releaseBy) { Env env = model.getEnv(); boolean isEmergencyPublish = model.isEmergencyPublish(); String appId = model.getAppId(); String clusterName = model.getClusterName(); String namespaceName = model.getNamespaceName(); ReleaseDTO releaseDTO = releaseAPI.createGrayDeletionRelease(appId, env, clusterName, namespaceName, model.getReleaseTitle(), model.getReleaseComment(), releaseBy, isEmergencyPublish, model.getGrayDelKeys()); Tracer.logEvent(TracerEventType.RELEASE_NAMESPACE, String.format("%s+%s+%s+%s", appId, env, clusterName, namespaceName)); return releaseDTO; } public ReleaseDTO updateAndPublish(String appId, Env env, String clusterName, String namespaceName, String releaseTitle, String releaseComment, String branchName, boolean isEmergencyPublish, boolean deleteBranch, ItemChangeSets changeSets) { return releaseAPI.updateAndPublish(appId, env, clusterName, namespaceName, releaseTitle, releaseComment, branchName, isEmergencyPublish, deleteBranch, changeSets); } public List<ReleaseBO> findAllReleases(String appId, Env env, String clusterName, String namespaceName, int page, int size) { List<ReleaseDTO> releaseDTOs = releaseAPI.findAllReleases(appId, env, clusterName, namespaceName, page, size); if (CollectionUtils.isEmpty(releaseDTOs)) { return Collections.emptyList(); } List<ReleaseBO> releases = new LinkedList<>(); for (ReleaseDTO releaseDTO : releaseDTOs) { ReleaseBO release = new ReleaseBO(); release.setBaseInfo(releaseDTO); Set<KVEntity> kvEntities = new LinkedHashSet<>(); Map<String, String> configurations = GSON.fromJson(releaseDTO.getConfigurations(), GsonType.CONFIG); Set<Map.Entry<String, String>> entries = configurations.entrySet(); for (Map.Entry<String, String> entry : entries) { kvEntities.add(new KVEntity(entry.getKey(), entry.getValue())); } release.setItems(kvEntities); //为了减少数据量 releaseDTO.setConfigurations(""); releases.add(release); } return releases; } public List<ReleaseDTO> findActiveReleases(String appId, Env env, String clusterName, String namespaceName, int page, int size) { return releaseAPI.findActiveReleases(appId, env, clusterName, namespaceName, page, size); } public ReleaseDTO findReleaseById(Env env, long releaseId) { Set<Long> releaseIds = new HashSet<>(1); releaseIds.add(releaseId); List<ReleaseDTO> releases = findReleaseByIds(env, releaseIds); if (CollectionUtils.isEmpty(releases)) { return null; } return releases.get(0); } public List<ReleaseDTO> findReleaseByIds(Env env, Set<Long> releaseIds) { return releaseAPI.findReleaseByIds(env, releaseIds); } public ReleaseDTO loadLatestRelease(String appId, Env env, String clusterName, String namespaceName) { return releaseAPI.loadLatestRelease(appId, env, clusterName, namespaceName); } public void rollback(Env env, long releaseId, String operator) { releaseAPI.rollback(env, releaseId, operator); } public void rollbackTo(Env env, long releaseId, long toReleaseId, String operator) { releaseAPI.rollbackTo(env, releaseId, toReleaseId, operator); } public ReleaseCompareResult compare(Env env, long baseReleaseId, long toCompareReleaseId) { ReleaseDTO baseRelease = null; ReleaseDTO toCompareRelease = null; if (baseReleaseId != 0) { baseRelease = releaseAPI.loadRelease(env, baseReleaseId); } if (toCompareReleaseId != 0) { toCompareRelease = releaseAPI.loadRelease(env, toCompareReleaseId); } return compare(baseRelease, toCompareRelease); } public ReleaseCompareResult compare(ReleaseDTO baseRelease, ReleaseDTO toCompareRelease) { Map<String, String> baseReleaseConfiguration = baseRelease == null ? new HashMap<>() : GSON.fromJson(baseRelease.getConfigurations(), GsonType.CONFIG); Map<String, String> toCompareReleaseConfiguration = toCompareRelease == null ? new HashMap<>() : GSON.fromJson(toCompareRelease.getConfigurations(), GsonType.CONFIG); ReleaseCompareResult compareResult = new ReleaseCompareResult(); //added and modified in firstRelease for (Map.Entry<String, String> entry : baseReleaseConfiguration.entrySet()) { String key = entry.getKey(); String firstValue = entry.getValue(); String secondValue = toCompareReleaseConfiguration.get(key); //added if (secondValue == null) { compareResult.addEntityPair(ChangeType.DELETED, new KVEntity(key, firstValue), new KVEntity(key, null)); } else if (!Objects.equal(firstValue, secondValue)) { compareResult.addEntityPair(ChangeType.MODIFIED, new KVEntity(key, firstValue), new KVEntity(key, secondValue)); } } //deleted in firstRelease for (Map.Entry<String, String> entry : toCompareReleaseConfiguration.entrySet()) { String key = entry.getKey(); String value = entry.getValue(); if (baseReleaseConfiguration.get(key) == null) { compareResult .addEntityPair(ChangeType.ADDED, new KVEntity(key, ""), new KVEntity(key, value)); } } return compareResult; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.service; import com.ctrip.framework.apollo.common.constants.GsonType; import com.ctrip.framework.apollo.common.dto.ItemChangeSets; import com.ctrip.framework.apollo.common.dto.ReleaseDTO; import com.ctrip.framework.apollo.portal.environment.Env; import com.ctrip.framework.apollo.core.utils.StringUtils; import com.ctrip.framework.apollo.portal.api.AdminServiceAPI; import com.ctrip.framework.apollo.portal.constant.TracerEventType; import com.ctrip.framework.apollo.portal.entity.bo.KVEntity; import com.ctrip.framework.apollo.portal.entity.bo.ReleaseBO; import com.ctrip.framework.apollo.portal.entity.model.NamespaceGrayDelReleaseModel; import com.ctrip.framework.apollo.portal.entity.model.NamespaceReleaseModel; import com.ctrip.framework.apollo.portal.entity.vo.ReleaseCompareResult; import com.ctrip.framework.apollo.portal.enums.ChangeType; import com.ctrip.framework.apollo.portal.spi.UserInfoHolder; import com.ctrip.framework.apollo.tracer.Tracer; import com.google.common.base.Objects; import com.google.gson.Gson; import org.springframework.stereotype.Service; import org.springframework.util.CollectionUtils; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedHashSet; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Set; @Service public class ReleaseService { private static final Gson GSON = new Gson(); private final UserInfoHolder userInfoHolder; private final AdminServiceAPI.ReleaseAPI releaseAPI; public ReleaseService(final UserInfoHolder userInfoHolder, final AdminServiceAPI.ReleaseAPI releaseAPI) { this.userInfoHolder = userInfoHolder; this.releaseAPI = releaseAPI; } public ReleaseDTO publish(NamespaceReleaseModel model) { Env env = model.getEnv(); boolean isEmergencyPublish = model.isEmergencyPublish(); String appId = model.getAppId(); String clusterName = model.getClusterName(); String namespaceName = model.getNamespaceName(); String releaseBy = StringUtils.isEmpty(model.getReleasedBy()) ? userInfoHolder.getUser().getUserId() : model.getReleasedBy(); ReleaseDTO releaseDTO = releaseAPI.createRelease(appId, env, clusterName, namespaceName, model.getReleaseTitle(), model.getReleaseComment(), releaseBy, isEmergencyPublish); Tracer.logEvent(TracerEventType.RELEASE_NAMESPACE, String.format("%s+%s+%s+%s", appId, env, clusterName, namespaceName)); return releaseDTO; } //gray deletion release public ReleaseDTO publish(NamespaceGrayDelReleaseModel model, String releaseBy) { Env env = model.getEnv(); boolean isEmergencyPublish = model.isEmergencyPublish(); String appId = model.getAppId(); String clusterName = model.getClusterName(); String namespaceName = model.getNamespaceName(); ReleaseDTO releaseDTO = releaseAPI.createGrayDeletionRelease(appId, env, clusterName, namespaceName, model.getReleaseTitle(), model.getReleaseComment(), releaseBy, isEmergencyPublish, model.getGrayDelKeys()); Tracer.logEvent(TracerEventType.RELEASE_NAMESPACE, String.format("%s+%s+%s+%s", appId, env, clusterName, namespaceName)); return releaseDTO; } public ReleaseDTO updateAndPublish(String appId, Env env, String clusterName, String namespaceName, String releaseTitle, String releaseComment, String branchName, boolean isEmergencyPublish, boolean deleteBranch, ItemChangeSets changeSets) { return releaseAPI.updateAndPublish(appId, env, clusterName, namespaceName, releaseTitle, releaseComment, branchName, isEmergencyPublish, deleteBranch, changeSets); } public List<ReleaseBO> findAllReleases(String appId, Env env, String clusterName, String namespaceName, int page, int size) { List<ReleaseDTO> releaseDTOs = releaseAPI.findAllReleases(appId, env, clusterName, namespaceName, page, size); if (CollectionUtils.isEmpty(releaseDTOs)) { return Collections.emptyList(); } List<ReleaseBO> releases = new LinkedList<>(); for (ReleaseDTO releaseDTO : releaseDTOs) { ReleaseBO release = new ReleaseBO(); release.setBaseInfo(releaseDTO); Set<KVEntity> kvEntities = new LinkedHashSet<>(); Map<String, String> configurations = GSON.fromJson(releaseDTO.getConfigurations(), GsonType.CONFIG); Set<Map.Entry<String, String>> entries = configurations.entrySet(); for (Map.Entry<String, String> entry : entries) { kvEntities.add(new KVEntity(entry.getKey(), entry.getValue())); } release.setItems(kvEntities); //为了减少数据量 releaseDTO.setConfigurations(""); releases.add(release); } return releases; } public List<ReleaseDTO> findActiveReleases(String appId, Env env, String clusterName, String namespaceName, int page, int size) { return releaseAPI.findActiveReleases(appId, env, clusterName, namespaceName, page, size); } public ReleaseDTO findReleaseById(Env env, long releaseId) { Set<Long> releaseIds = new HashSet<>(1); releaseIds.add(releaseId); List<ReleaseDTO> releases = findReleaseByIds(env, releaseIds); if (CollectionUtils.isEmpty(releases)) { return null; } return releases.get(0); } public List<ReleaseDTO> findReleaseByIds(Env env, Set<Long> releaseIds) { return releaseAPI.findReleaseByIds(env, releaseIds); } public ReleaseDTO loadLatestRelease(String appId, Env env, String clusterName, String namespaceName) { return releaseAPI.loadLatestRelease(appId, env, clusterName, namespaceName); } public void rollback(Env env, long releaseId, String operator) { releaseAPI.rollback(env, releaseId, operator); } public void rollbackTo(Env env, long releaseId, long toReleaseId, String operator) { releaseAPI.rollbackTo(env, releaseId, toReleaseId, operator); } public ReleaseCompareResult compare(Env env, long baseReleaseId, long toCompareReleaseId) { ReleaseDTO baseRelease = null; ReleaseDTO toCompareRelease = null; if (baseReleaseId != 0) { baseRelease = releaseAPI.loadRelease(env, baseReleaseId); } if (toCompareReleaseId != 0) { toCompareRelease = releaseAPI.loadRelease(env, toCompareReleaseId); } return compare(baseRelease, toCompareRelease); } public ReleaseCompareResult compare(ReleaseDTO baseRelease, ReleaseDTO toCompareRelease) { Map<String, String> baseReleaseConfiguration = baseRelease == null ? new HashMap<>() : GSON.fromJson(baseRelease.getConfigurations(), GsonType.CONFIG); Map<String, String> toCompareReleaseConfiguration = toCompareRelease == null ? new HashMap<>() : GSON.fromJson(toCompareRelease.getConfigurations(), GsonType.CONFIG); ReleaseCompareResult compareResult = new ReleaseCompareResult(); //added and modified in firstRelease for (Map.Entry<String, String> entry : baseReleaseConfiguration.entrySet()) { String key = entry.getKey(); String firstValue = entry.getValue(); String secondValue = toCompareReleaseConfiguration.get(key); //added if (secondValue == null) { compareResult.addEntityPair(ChangeType.DELETED, new KVEntity(key, firstValue), new KVEntity(key, null)); } else if (!Objects.equal(firstValue, secondValue)) { compareResult.addEntityPair(ChangeType.MODIFIED, new KVEntity(key, firstValue), new KVEntity(key, secondValue)); } } //deleted in firstRelease for (Map.Entry<String, String> entry : toCompareReleaseConfiguration.entrySet()) { String key = entry.getKey(); String value = entry.getValue(); if (baseReleaseConfiguration.get(key) == null) { compareResult .addEntityPair(ChangeType.ADDED, new KVEntity(key, ""), new KVEntity(key, value)); } } return compareResult; } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-biz/src/main/java/com/ctrip/framework/apollo/biz/entity/InstanceConfig.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.biz.entity; import com.google.common.base.MoreObjects; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.PrePersist; import javax.persistence.PreUpdate; import javax.persistence.Table; /** * @author Jason Song([email protected]) */ @Entity @Table(name = "InstanceConfig") public class InstanceConfig { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "Id") private long id; @Column(name = "InstanceId") private long instanceId; @Column(name = "ConfigAppId", nullable = false) private String configAppId; @Column(name = "ConfigClusterName", nullable = false) private String configClusterName; @Column(name = "ConfigNamespaceName", nullable = false) private String configNamespaceName; @Column(name = "ReleaseKey", nullable = false) private String releaseKey; @Column(name = "ReleaseDeliveryTime", nullable = false) private Date releaseDeliveryTime; @Column(name = "DataChange_CreatedTime", nullable = false) private Date dataChangeCreatedTime; @Column(name = "DataChange_LastTime") private Date dataChangeLastModifiedTime; @PrePersist protected void prePersist() { if (this.dataChangeCreatedTime == null) { dataChangeCreatedTime = new Date(); } if (this.dataChangeLastModifiedTime == null) { dataChangeLastModifiedTime = dataChangeCreatedTime; } } @PreUpdate protected void preUpdate() { this.dataChangeLastModifiedTime = new Date(); } public long getId() { return id; } public void setId(long id) { this.id = id; } public long getInstanceId() { return instanceId; } public void setInstanceId(long instanceId) { this.instanceId = instanceId; } public String getConfigAppId() { return configAppId; } public void setConfigAppId(String configAppId) { this.configAppId = configAppId; } public String getConfigNamespaceName() { return configNamespaceName; } public void setConfigNamespaceName(String configNamespaceName) { this.configNamespaceName = configNamespaceName; } public String getReleaseKey() { return releaseKey; } public void setReleaseKey(String releaseKey) { this.releaseKey = releaseKey; } public Date getDataChangeCreatedTime() { return dataChangeCreatedTime; } public void setDataChangeCreatedTime(Date dataChangeCreatedTime) { this.dataChangeCreatedTime = dataChangeCreatedTime; } public Date getDataChangeLastModifiedTime() { return dataChangeLastModifiedTime; } public void setDataChangeLastModifiedTime(Date dataChangeLastModifiedTime) { this.dataChangeLastModifiedTime = dataChangeLastModifiedTime; } public String getConfigClusterName() { return configClusterName; } public void setConfigClusterName(String configClusterName) { this.configClusterName = configClusterName; } public Date getReleaseDeliveryTime() { return releaseDeliveryTime; } public void setReleaseDeliveryTime(Date releaseDeliveryTime) { this.releaseDeliveryTime = releaseDeliveryTime; } @Override public String toString() { return MoreObjects.toStringHelper(this) .omitNullValues() .add("id", id) .add("configAppId", configAppId) .add("configClusterName", configClusterName) .add("configNamespaceName", configNamespaceName) .add("releaseKey", releaseKey) .add("dataChangeCreatedTime", dataChangeCreatedTime) .add("dataChangeLastModifiedTime", dataChangeLastModifiedTime) .toString(); } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.biz.entity; import com.google.common.base.MoreObjects; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.PrePersist; import javax.persistence.PreUpdate; import javax.persistence.Table; /** * @author Jason Song([email protected]) */ @Entity @Table(name = "InstanceConfig") public class InstanceConfig { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "Id") private long id; @Column(name = "InstanceId") private long instanceId; @Column(name = "ConfigAppId", nullable = false) private String configAppId; @Column(name = "ConfigClusterName", nullable = false) private String configClusterName; @Column(name = "ConfigNamespaceName", nullable = false) private String configNamespaceName; @Column(name = "ReleaseKey", nullable = false) private String releaseKey; @Column(name = "ReleaseDeliveryTime", nullable = false) private Date releaseDeliveryTime; @Column(name = "DataChange_CreatedTime", nullable = false) private Date dataChangeCreatedTime; @Column(name = "DataChange_LastTime") private Date dataChangeLastModifiedTime; @PrePersist protected void prePersist() { if (this.dataChangeCreatedTime == null) { dataChangeCreatedTime = new Date(); } if (this.dataChangeLastModifiedTime == null) { dataChangeLastModifiedTime = dataChangeCreatedTime; } } @PreUpdate protected void preUpdate() { this.dataChangeLastModifiedTime = new Date(); } public long getId() { return id; } public void setId(long id) { this.id = id; } public long getInstanceId() { return instanceId; } public void setInstanceId(long instanceId) { this.instanceId = instanceId; } public String getConfigAppId() { return configAppId; } public void setConfigAppId(String configAppId) { this.configAppId = configAppId; } public String getConfigNamespaceName() { return configNamespaceName; } public void setConfigNamespaceName(String configNamespaceName) { this.configNamespaceName = configNamespaceName; } public String getReleaseKey() { return releaseKey; } public void setReleaseKey(String releaseKey) { this.releaseKey = releaseKey; } public Date getDataChangeCreatedTime() { return dataChangeCreatedTime; } public void setDataChangeCreatedTime(Date dataChangeCreatedTime) { this.dataChangeCreatedTime = dataChangeCreatedTime; } public Date getDataChangeLastModifiedTime() { return dataChangeLastModifiedTime; } public void setDataChangeLastModifiedTime(Date dataChangeLastModifiedTime) { this.dataChangeLastModifiedTime = dataChangeLastModifiedTime; } public String getConfigClusterName() { return configClusterName; } public void setConfigClusterName(String configClusterName) { this.configClusterName = configClusterName; } public Date getReleaseDeliveryTime() { return releaseDeliveryTime; } public void setReleaseDeliveryTime(Date releaseDeliveryTime) { this.releaseDeliveryTime = releaseDeliveryTime; } @Override public String toString() { return MoreObjects.toStringHelper(this) .omitNullValues() .add("id", id) .add("configAppId", configAppId) .add("configClusterName", configClusterName) .add("configNamespaceName", configNamespaceName) .add("releaseKey", releaseKey) .add("dataChangeCreatedTime", dataChangeCreatedTime) .add("dataChangeLastModifiedTime", dataChangeLastModifiedTime) .toString(); } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-openapi/src/test/java/com/ctrip/framework/apollo/openapi/client/service/NamespaceOpenApiServiceTest.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.openapi.client.service; import static org.junit.Assert.assertEquals; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import com.ctrip.framework.apollo.openapi.dto.OpenAppNamespaceDTO; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpPost; import org.apache.http.entity.StringEntity; import org.junit.Before; import org.junit.Test; import org.mockito.ArgumentCaptor; public class NamespaceOpenApiServiceTest extends AbstractOpenApiServiceTest { private NamespaceOpenApiService namespaceOpenApiService; private String someAppId; private String someEnv; private String someCluster; private String someNamespace; @Override @Before public void setUp() throws Exception { super.setUp(); someAppId = "someAppId"; someEnv = "someEnv"; someCluster = "someCluster"; someNamespace = "someNamespace"; StringEntity responseEntity = new StringEntity("{}"); when(someHttpResponse.getEntity()).thenReturn(responseEntity); namespaceOpenApiService = new NamespaceOpenApiService(httpClient, someBaseUrl, gson); } @Test public void testGetNamespace() throws Exception { final ArgumentCaptor<HttpGet> request = ArgumentCaptor.forClass(HttpGet.class); namespaceOpenApiService.getNamespace(someAppId, someEnv, someCluster, someNamespace); verify(httpClient, times(1)).execute(request.capture()); HttpGet get = request.getValue(); assertEquals(String .format("%s/envs/%s/apps/%s/clusters/%s/namespaces/%s", someBaseUrl, someEnv, someAppId, someCluster, someNamespace), get.getURI().toString()); } @Test(expected = RuntimeException.class) public void testGetNamespaceWithError() throws Exception { when(statusLine.getStatusCode()).thenReturn(404); namespaceOpenApiService.getNamespace(someAppId, someEnv, someCluster, someNamespace); } @Test public void testGetNamespaces() throws Exception { StringEntity responseEntity = new StringEntity("[]"); when(someHttpResponse.getEntity()).thenReturn(responseEntity); final ArgumentCaptor<HttpGet> request = ArgumentCaptor.forClass(HttpGet.class); namespaceOpenApiService.getNamespaces(someAppId, someEnv, someCluster); verify(httpClient, times(1)).execute(request.capture()); HttpGet get = request.getValue(); assertEquals(String .format("%s/envs/%s/apps/%s/clusters/%s/namespaces", someBaseUrl, someEnv, someAppId, someCluster), get.getURI().toString()); } @Test(expected = RuntimeException.class) public void testGetNamespacesWithError() throws Exception { when(statusLine.getStatusCode()).thenReturn(404); namespaceOpenApiService.getNamespaces(someAppId, someEnv, someCluster); } @Test public void testCreateAppNamespace() throws Exception { String someName = "someName"; String someCreatedBy = "someCreatedBy"; OpenAppNamespaceDTO appNamespaceDTO = new OpenAppNamespaceDTO(); appNamespaceDTO.setAppId(someAppId); appNamespaceDTO.setName(someName); appNamespaceDTO.setDataChangeCreatedBy(someCreatedBy); final ArgumentCaptor<HttpPost> request = ArgumentCaptor.forClass(HttpPost.class); namespaceOpenApiService.createAppNamespace(appNamespaceDTO); verify(httpClient, times(1)).execute(request.capture()); HttpPost post = request.getValue(); assertEquals(String.format("%s/apps/%s/appnamespaces", someBaseUrl, someAppId), post.getURI().toString()); } @Test(expected = RuntimeException.class) public void testCreateAppNamespaceWithError() throws Exception { String someName = "someName"; String someCreatedBy = "someCreatedBy"; OpenAppNamespaceDTO appNamespaceDTO = new OpenAppNamespaceDTO(); appNamespaceDTO.setAppId(someAppId); appNamespaceDTO.setName(someName); appNamespaceDTO.setDataChangeCreatedBy(someCreatedBy); when(statusLine.getStatusCode()).thenReturn(400); namespaceOpenApiService.createAppNamespace(appNamespaceDTO); } @Test public void testGetNamespaceLock() throws Exception { final ArgumentCaptor<HttpGet> request = ArgumentCaptor.forClass(HttpGet.class); namespaceOpenApiService.getNamespaceLock(someAppId, someEnv, someCluster, someNamespace); verify(httpClient, times(1)).execute(request.capture()); HttpGet post = request.getValue(); assertEquals(String .format("%s/envs/%s/apps/%s/clusters/%s/namespaces/%s/lock", someBaseUrl, someEnv, someAppId, someCluster, someNamespace), post.getURI().toString()); } @Test(expected = RuntimeException.class) public void testGetNamespaceLockWithError() throws Exception { when(statusLine.getStatusCode()).thenReturn(404); namespaceOpenApiService.getNamespaceLock(someAppId, someEnv, someCluster, someNamespace); } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.openapi.client.service; import static org.junit.Assert.assertEquals; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import com.ctrip.framework.apollo.openapi.dto.OpenAppNamespaceDTO; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpPost; import org.apache.http.entity.StringEntity; import org.junit.Before; import org.junit.Test; import org.mockito.ArgumentCaptor; public class NamespaceOpenApiServiceTest extends AbstractOpenApiServiceTest { private NamespaceOpenApiService namespaceOpenApiService; private String someAppId; private String someEnv; private String someCluster; private String someNamespace; @Override @Before public void setUp() throws Exception { super.setUp(); someAppId = "someAppId"; someEnv = "someEnv"; someCluster = "someCluster"; someNamespace = "someNamespace"; StringEntity responseEntity = new StringEntity("{}"); when(someHttpResponse.getEntity()).thenReturn(responseEntity); namespaceOpenApiService = new NamespaceOpenApiService(httpClient, someBaseUrl, gson); } @Test public void testGetNamespace() throws Exception { final ArgumentCaptor<HttpGet> request = ArgumentCaptor.forClass(HttpGet.class); namespaceOpenApiService.getNamespace(someAppId, someEnv, someCluster, someNamespace); verify(httpClient, times(1)).execute(request.capture()); HttpGet get = request.getValue(); assertEquals(String .format("%s/envs/%s/apps/%s/clusters/%s/namespaces/%s", someBaseUrl, someEnv, someAppId, someCluster, someNamespace), get.getURI().toString()); } @Test(expected = RuntimeException.class) public void testGetNamespaceWithError() throws Exception { when(statusLine.getStatusCode()).thenReturn(404); namespaceOpenApiService.getNamespace(someAppId, someEnv, someCluster, someNamespace); } @Test public void testGetNamespaces() throws Exception { StringEntity responseEntity = new StringEntity("[]"); when(someHttpResponse.getEntity()).thenReturn(responseEntity); final ArgumentCaptor<HttpGet> request = ArgumentCaptor.forClass(HttpGet.class); namespaceOpenApiService.getNamespaces(someAppId, someEnv, someCluster); verify(httpClient, times(1)).execute(request.capture()); HttpGet get = request.getValue(); assertEquals(String .format("%s/envs/%s/apps/%s/clusters/%s/namespaces", someBaseUrl, someEnv, someAppId, someCluster), get.getURI().toString()); } @Test(expected = RuntimeException.class) public void testGetNamespacesWithError() throws Exception { when(statusLine.getStatusCode()).thenReturn(404); namespaceOpenApiService.getNamespaces(someAppId, someEnv, someCluster); } @Test public void testCreateAppNamespace() throws Exception { String someName = "someName"; String someCreatedBy = "someCreatedBy"; OpenAppNamespaceDTO appNamespaceDTO = new OpenAppNamespaceDTO(); appNamespaceDTO.setAppId(someAppId); appNamespaceDTO.setName(someName); appNamespaceDTO.setDataChangeCreatedBy(someCreatedBy); final ArgumentCaptor<HttpPost> request = ArgumentCaptor.forClass(HttpPost.class); namespaceOpenApiService.createAppNamespace(appNamespaceDTO); verify(httpClient, times(1)).execute(request.capture()); HttpPost post = request.getValue(); assertEquals(String.format("%s/apps/%s/appnamespaces", someBaseUrl, someAppId), post.getURI().toString()); } @Test(expected = RuntimeException.class) public void testCreateAppNamespaceWithError() throws Exception { String someName = "someName"; String someCreatedBy = "someCreatedBy"; OpenAppNamespaceDTO appNamespaceDTO = new OpenAppNamespaceDTO(); appNamespaceDTO.setAppId(someAppId); appNamespaceDTO.setName(someName); appNamespaceDTO.setDataChangeCreatedBy(someCreatedBy); when(statusLine.getStatusCode()).thenReturn(400); namespaceOpenApiService.createAppNamespace(appNamespaceDTO); } @Test public void testGetNamespaceLock() throws Exception { final ArgumentCaptor<HttpGet> request = ArgumentCaptor.forClass(HttpGet.class); namespaceOpenApiService.getNamespaceLock(someAppId, someEnv, someCluster, someNamespace); verify(httpClient, times(1)).execute(request.capture()); HttpGet post = request.getValue(); assertEquals(String .format("%s/envs/%s/apps/%s/clusters/%s/namespaces/%s/lock", someBaseUrl, someEnv, someAppId, someCluster, someNamespace), post.getURI().toString()); } @Test(expected = RuntimeException.class) public void testGetNamespaceLockWithError() throws Exception { when(statusLine.getStatusCode()).thenReturn(404); namespaceOpenApiService.getNamespaceLock(someAppId, someEnv, someCluster, someNamespace); } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-common/src/main/java/com/ctrip/framework/apollo/common/dto/NamespaceLockDTO.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.common.dto; public class NamespaceLockDTO extends BaseDTO{ private long namespaceId; public long getNamespaceId() { return namespaceId; } public void setNamespaceId(long namespaceId) { this.namespaceId = namespaceId; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.common.dto; public class NamespaceLockDTO extends BaseDTO{ private long namespaceId; public long getNamespaceId() { return namespaceId; } public void setNamespaceId(long namespaceId) { this.namespaceId = namespaceId; } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/enricher/AdditionalUserInfoEnricher.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.enricher; import com.ctrip.framework.apollo.portal.enricher.adapter.UserInfoEnrichedAdapter; import com.ctrip.framework.apollo.portal.entity.bo.UserInfo; import java.util.Map; /** * @author vdisk <[email protected]> */ public interface AdditionalUserInfoEnricher { /** * enrich an additional user info for the dto list * * @param adapter enrich adapter * @param userInfoMap userInfo map */ void enrichAdditionalUserInfo(UserInfoEnrichedAdapter adapter, Map<String, UserInfo> userInfoMap); }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.enricher; import com.ctrip.framework.apollo.portal.enricher.adapter.UserInfoEnrichedAdapter; import com.ctrip.framework.apollo.portal.entity.bo.UserInfo; import java.util.Map; /** * @author vdisk <[email protected]> */ public interface AdditionalUserInfoEnricher { /** * enrich an additional user info for the dto list * * @param adapter enrich adapter * @param userInfoMap userInfo map */ void enrichAdditionalUserInfo(UserInfoEnrichedAdapter adapter, Map<String, UserInfo> userInfoMap); }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-portal/src/main/java/com/ctrip/framework/apollo/openapi/service/ConsumerService.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.openapi.service; import com.ctrip.framework.apollo.common.exception.BadRequestException; import com.ctrip.framework.apollo.openapi.entity.Consumer; import com.ctrip.framework.apollo.openapi.entity.ConsumerAudit; import com.ctrip.framework.apollo.openapi.entity.ConsumerRole; import com.ctrip.framework.apollo.openapi.entity.ConsumerToken; import com.ctrip.framework.apollo.openapi.repository.ConsumerAuditRepository; import com.ctrip.framework.apollo.openapi.repository.ConsumerRepository; import com.ctrip.framework.apollo.openapi.repository.ConsumerRoleRepository; import com.ctrip.framework.apollo.openapi.repository.ConsumerTokenRepository; import com.ctrip.framework.apollo.portal.component.config.PortalConfig; import com.ctrip.framework.apollo.portal.entity.bo.UserInfo; import com.ctrip.framework.apollo.portal.entity.po.Role; import com.ctrip.framework.apollo.portal.service.RolePermissionService; import com.ctrip.framework.apollo.portal.spi.UserInfoHolder; import com.ctrip.framework.apollo.portal.spi.UserService; import com.ctrip.framework.apollo.portal.util.RoleUtils; import com.google.common.base.Charsets; import com.google.common.base.Joiner; import com.google.common.base.Preconditions; import com.google.common.base.Strings; import com.google.common.hash.Hashing; import org.apache.commons.lang.time.FastDateFormat; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import java.util.Arrays; import java.util.Date; import java.util.List; /** * @author Jason Song([email protected]) */ @Service public class ConsumerService { private static final FastDateFormat TIMESTAMP_FORMAT = FastDateFormat.getInstance("yyyyMMddHHmmss"); private static final Joiner KEY_JOINER = Joiner.on("|"); private final UserInfoHolder userInfoHolder; private final ConsumerTokenRepository consumerTokenRepository; private final ConsumerRepository consumerRepository; private final ConsumerAuditRepository consumerAuditRepository; private final ConsumerRoleRepository consumerRoleRepository; private final PortalConfig portalConfig; private final RolePermissionService rolePermissionService; private final UserService userService; public ConsumerService( final UserInfoHolder userInfoHolder, final ConsumerTokenRepository consumerTokenRepository, final ConsumerRepository consumerRepository, final ConsumerAuditRepository consumerAuditRepository, final ConsumerRoleRepository consumerRoleRepository, final PortalConfig portalConfig, final RolePermissionService rolePermissionService, final UserService userService) { this.userInfoHolder = userInfoHolder; this.consumerTokenRepository = consumerTokenRepository; this.consumerRepository = consumerRepository; this.consumerAuditRepository = consumerAuditRepository; this.consumerRoleRepository = consumerRoleRepository; this.portalConfig = portalConfig; this.rolePermissionService = rolePermissionService; this.userService = userService; } public Consumer createConsumer(Consumer consumer) { String appId = consumer.getAppId(); Consumer managedConsumer = consumerRepository.findByAppId(appId); if (managedConsumer != null) { throw new BadRequestException("Consumer already exist"); } String ownerName = consumer.getOwnerName(); UserInfo owner = userService.findByUserId(ownerName); if (owner == null) { throw new BadRequestException(String.format("User does not exist. UserId = %s", ownerName)); } consumer.setOwnerEmail(owner.getEmail()); String operator = userInfoHolder.getUser().getUserId(); consumer.setDataChangeCreatedBy(operator); consumer.setDataChangeLastModifiedBy(operator); return consumerRepository.save(consumer); } public ConsumerToken generateAndSaveConsumerToken(Consumer consumer, Date expires) { Preconditions.checkArgument(consumer != null, "Consumer can not be null"); ConsumerToken consumerToken = generateConsumerToken(consumer, expires); consumerToken.setId(0); return consumerTokenRepository.save(consumerToken); } public ConsumerToken getConsumerTokenByAppId(String appId) { Consumer consumer = consumerRepository.findByAppId(appId); if (consumer == null) { return null; } return consumerTokenRepository.findByConsumerId(consumer.getId()); } public Long getConsumerIdByToken(String token) { if (Strings.isNullOrEmpty(token)) { return null; } ConsumerToken consumerToken = consumerTokenRepository.findTopByTokenAndExpiresAfter(token, new Date()); return consumerToken == null ? null : consumerToken.getConsumerId(); } public Consumer getConsumerByConsumerId(long consumerId) { return consumerRepository.findById(consumerId).orElse(null); } public List<ConsumerRole> assignNamespaceRoleToConsumer(String token, String appId, String namespaceName) { return assignNamespaceRoleToConsumer(token, appId, namespaceName, null); } @Transactional public List<ConsumerRole> assignNamespaceRoleToConsumer(String token, String appId, String namespaceName, String env) { Long consumerId = getConsumerIdByToken(token); if (consumerId == null) { throw new BadRequestException("Token is Illegal"); } Role namespaceModifyRole = rolePermissionService.findRoleByRoleName(RoleUtils.buildModifyNamespaceRoleName(appId, namespaceName, env)); Role namespaceReleaseRole = rolePermissionService.findRoleByRoleName(RoleUtils.buildReleaseNamespaceRoleName(appId, namespaceName, env)); if (namespaceModifyRole == null || namespaceReleaseRole == null) { throw new BadRequestException("Namespace's role does not exist. Please check whether namespace has created."); } long namespaceModifyRoleId = namespaceModifyRole.getId(); long namespaceReleaseRoleId = namespaceReleaseRole.getId(); ConsumerRole managedModifyRole = consumerRoleRepository.findByConsumerIdAndRoleId(consumerId, namespaceModifyRoleId); ConsumerRole managedReleaseRole = consumerRoleRepository.findByConsumerIdAndRoleId(consumerId, namespaceReleaseRoleId); if (managedModifyRole != null && managedReleaseRole != null) { return Arrays.asList(managedModifyRole, managedReleaseRole); } String operator = userInfoHolder.getUser().getUserId(); ConsumerRole namespaceModifyConsumerRole = createConsumerRole(consumerId, namespaceModifyRoleId, operator); ConsumerRole namespaceReleaseConsumerRole = createConsumerRole(consumerId, namespaceReleaseRoleId, operator); ConsumerRole createdModifyConsumerRole = consumerRoleRepository.save(namespaceModifyConsumerRole); ConsumerRole createdReleaseConsumerRole = consumerRoleRepository.save(namespaceReleaseConsumerRole); return Arrays.asList(createdModifyConsumerRole, createdReleaseConsumerRole); } @Transactional public ConsumerRole assignAppRoleToConsumer(String token, String appId) { Long consumerId = getConsumerIdByToken(token); if (consumerId == null) { throw new BadRequestException("Token is Illegal"); } Role masterRole = rolePermissionService.findRoleByRoleName(RoleUtils.buildAppMasterRoleName(appId)); if (masterRole == null) { throw new BadRequestException("App's role does not exist. Please check whether app has created."); } long roleId = masterRole.getId(); ConsumerRole managedModifyRole = consumerRoleRepository.findByConsumerIdAndRoleId(consumerId, roleId); if (managedModifyRole != null) { return managedModifyRole; } String operator = userInfoHolder.getUser().getUserId(); ConsumerRole consumerRole = createConsumerRole(consumerId, roleId, operator); return consumerRoleRepository.save(consumerRole); } @Transactional public void createConsumerAudits(Iterable<ConsumerAudit> consumerAudits) { consumerAuditRepository.saveAll(consumerAudits); } @Transactional public ConsumerToken createConsumerToken(ConsumerToken entity) { entity.setId(0); //for protection return consumerTokenRepository.save(entity); } private ConsumerToken generateConsumerToken(Consumer consumer, Date expires) { long consumerId = consumer.getId(); String createdBy = userInfoHolder.getUser().getUserId(); Date createdTime = new Date(); ConsumerToken consumerToken = new ConsumerToken(); consumerToken.setConsumerId(consumerId); consumerToken.setExpires(expires); consumerToken.setDataChangeCreatedBy(createdBy); consumerToken.setDataChangeCreatedTime(createdTime); consumerToken.setDataChangeLastModifiedBy(createdBy); consumerToken.setDataChangeLastModifiedTime(createdTime); generateAndEnrichToken(consumer, consumerToken); return consumerToken; } void generateAndEnrichToken(Consumer consumer, ConsumerToken consumerToken) { Preconditions.checkArgument(consumer != null); if (consumerToken.getDataChangeCreatedTime() == null) { consumerToken.setDataChangeCreatedTime(new Date()); } consumerToken.setToken(generateToken(consumer.getAppId(), consumerToken .getDataChangeCreatedTime(), portalConfig.consumerTokenSalt())); } String generateToken(String consumerAppId, Date generationTime, String consumerTokenSalt) { return Hashing.sha1().hashString(KEY_JOINER.join(consumerAppId, TIMESTAMP_FORMAT.format (generationTime), consumerTokenSalt), Charsets.UTF_8).toString(); } ConsumerRole createConsumerRole(Long consumerId, Long roleId, String operator) { ConsumerRole consumerRole = new ConsumerRole(); consumerRole.setConsumerId(consumerId); consumerRole.setRoleId(roleId); consumerRole.setDataChangeCreatedBy(operator); consumerRole.setDataChangeLastModifiedBy(operator); return consumerRole; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.openapi.service; import com.ctrip.framework.apollo.common.exception.BadRequestException; import com.ctrip.framework.apollo.openapi.entity.Consumer; import com.ctrip.framework.apollo.openapi.entity.ConsumerAudit; import com.ctrip.framework.apollo.openapi.entity.ConsumerRole; import com.ctrip.framework.apollo.openapi.entity.ConsumerToken; import com.ctrip.framework.apollo.openapi.repository.ConsumerAuditRepository; import com.ctrip.framework.apollo.openapi.repository.ConsumerRepository; import com.ctrip.framework.apollo.openapi.repository.ConsumerRoleRepository; import com.ctrip.framework.apollo.openapi.repository.ConsumerTokenRepository; import com.ctrip.framework.apollo.portal.component.config.PortalConfig; import com.ctrip.framework.apollo.portal.entity.bo.UserInfo; import com.ctrip.framework.apollo.portal.entity.po.Role; import com.ctrip.framework.apollo.portal.service.RolePermissionService; import com.ctrip.framework.apollo.portal.spi.UserInfoHolder; import com.ctrip.framework.apollo.portal.spi.UserService; import com.ctrip.framework.apollo.portal.util.RoleUtils; import com.google.common.base.Charsets; import com.google.common.base.Joiner; import com.google.common.base.Preconditions; import com.google.common.base.Strings; import com.google.common.hash.Hashing; import org.apache.commons.lang.time.FastDateFormat; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import java.util.Arrays; import java.util.Date; import java.util.List; /** * @author Jason Song([email protected]) */ @Service public class ConsumerService { private static final FastDateFormat TIMESTAMP_FORMAT = FastDateFormat.getInstance("yyyyMMddHHmmss"); private static final Joiner KEY_JOINER = Joiner.on("|"); private final UserInfoHolder userInfoHolder; private final ConsumerTokenRepository consumerTokenRepository; private final ConsumerRepository consumerRepository; private final ConsumerAuditRepository consumerAuditRepository; private final ConsumerRoleRepository consumerRoleRepository; private final PortalConfig portalConfig; private final RolePermissionService rolePermissionService; private final UserService userService; public ConsumerService( final UserInfoHolder userInfoHolder, final ConsumerTokenRepository consumerTokenRepository, final ConsumerRepository consumerRepository, final ConsumerAuditRepository consumerAuditRepository, final ConsumerRoleRepository consumerRoleRepository, final PortalConfig portalConfig, final RolePermissionService rolePermissionService, final UserService userService) { this.userInfoHolder = userInfoHolder; this.consumerTokenRepository = consumerTokenRepository; this.consumerRepository = consumerRepository; this.consumerAuditRepository = consumerAuditRepository; this.consumerRoleRepository = consumerRoleRepository; this.portalConfig = portalConfig; this.rolePermissionService = rolePermissionService; this.userService = userService; } public Consumer createConsumer(Consumer consumer) { String appId = consumer.getAppId(); Consumer managedConsumer = consumerRepository.findByAppId(appId); if (managedConsumer != null) { throw new BadRequestException("Consumer already exist"); } String ownerName = consumer.getOwnerName(); UserInfo owner = userService.findByUserId(ownerName); if (owner == null) { throw new BadRequestException(String.format("User does not exist. UserId = %s", ownerName)); } consumer.setOwnerEmail(owner.getEmail()); String operator = userInfoHolder.getUser().getUserId(); consumer.setDataChangeCreatedBy(operator); consumer.setDataChangeLastModifiedBy(operator); return consumerRepository.save(consumer); } public ConsumerToken generateAndSaveConsumerToken(Consumer consumer, Date expires) { Preconditions.checkArgument(consumer != null, "Consumer can not be null"); ConsumerToken consumerToken = generateConsumerToken(consumer, expires); consumerToken.setId(0); return consumerTokenRepository.save(consumerToken); } public ConsumerToken getConsumerTokenByAppId(String appId) { Consumer consumer = consumerRepository.findByAppId(appId); if (consumer == null) { return null; } return consumerTokenRepository.findByConsumerId(consumer.getId()); } public Long getConsumerIdByToken(String token) { if (Strings.isNullOrEmpty(token)) { return null; } ConsumerToken consumerToken = consumerTokenRepository.findTopByTokenAndExpiresAfter(token, new Date()); return consumerToken == null ? null : consumerToken.getConsumerId(); } public Consumer getConsumerByConsumerId(long consumerId) { return consumerRepository.findById(consumerId).orElse(null); } public List<ConsumerRole> assignNamespaceRoleToConsumer(String token, String appId, String namespaceName) { return assignNamespaceRoleToConsumer(token, appId, namespaceName, null); } @Transactional public List<ConsumerRole> assignNamespaceRoleToConsumer(String token, String appId, String namespaceName, String env) { Long consumerId = getConsumerIdByToken(token); if (consumerId == null) { throw new BadRequestException("Token is Illegal"); } Role namespaceModifyRole = rolePermissionService.findRoleByRoleName(RoleUtils.buildModifyNamespaceRoleName(appId, namespaceName, env)); Role namespaceReleaseRole = rolePermissionService.findRoleByRoleName(RoleUtils.buildReleaseNamespaceRoleName(appId, namespaceName, env)); if (namespaceModifyRole == null || namespaceReleaseRole == null) { throw new BadRequestException("Namespace's role does not exist. Please check whether namespace has created."); } long namespaceModifyRoleId = namespaceModifyRole.getId(); long namespaceReleaseRoleId = namespaceReleaseRole.getId(); ConsumerRole managedModifyRole = consumerRoleRepository.findByConsumerIdAndRoleId(consumerId, namespaceModifyRoleId); ConsumerRole managedReleaseRole = consumerRoleRepository.findByConsumerIdAndRoleId(consumerId, namespaceReleaseRoleId); if (managedModifyRole != null && managedReleaseRole != null) { return Arrays.asList(managedModifyRole, managedReleaseRole); } String operator = userInfoHolder.getUser().getUserId(); ConsumerRole namespaceModifyConsumerRole = createConsumerRole(consumerId, namespaceModifyRoleId, operator); ConsumerRole namespaceReleaseConsumerRole = createConsumerRole(consumerId, namespaceReleaseRoleId, operator); ConsumerRole createdModifyConsumerRole = consumerRoleRepository.save(namespaceModifyConsumerRole); ConsumerRole createdReleaseConsumerRole = consumerRoleRepository.save(namespaceReleaseConsumerRole); return Arrays.asList(createdModifyConsumerRole, createdReleaseConsumerRole); } @Transactional public ConsumerRole assignAppRoleToConsumer(String token, String appId) { Long consumerId = getConsumerIdByToken(token); if (consumerId == null) { throw new BadRequestException("Token is Illegal"); } Role masterRole = rolePermissionService.findRoleByRoleName(RoleUtils.buildAppMasterRoleName(appId)); if (masterRole == null) { throw new BadRequestException("App's role does not exist. Please check whether app has created."); } long roleId = masterRole.getId(); ConsumerRole managedModifyRole = consumerRoleRepository.findByConsumerIdAndRoleId(consumerId, roleId); if (managedModifyRole != null) { return managedModifyRole; } String operator = userInfoHolder.getUser().getUserId(); ConsumerRole consumerRole = createConsumerRole(consumerId, roleId, operator); return consumerRoleRepository.save(consumerRole); } @Transactional public void createConsumerAudits(Iterable<ConsumerAudit> consumerAudits) { consumerAuditRepository.saveAll(consumerAudits); } @Transactional public ConsumerToken createConsumerToken(ConsumerToken entity) { entity.setId(0); //for protection return consumerTokenRepository.save(entity); } private ConsumerToken generateConsumerToken(Consumer consumer, Date expires) { long consumerId = consumer.getId(); String createdBy = userInfoHolder.getUser().getUserId(); Date createdTime = new Date(); ConsumerToken consumerToken = new ConsumerToken(); consumerToken.setConsumerId(consumerId); consumerToken.setExpires(expires); consumerToken.setDataChangeCreatedBy(createdBy); consumerToken.setDataChangeCreatedTime(createdTime); consumerToken.setDataChangeLastModifiedBy(createdBy); consumerToken.setDataChangeLastModifiedTime(createdTime); generateAndEnrichToken(consumer, consumerToken); return consumerToken; } void generateAndEnrichToken(Consumer consumer, ConsumerToken consumerToken) { Preconditions.checkArgument(consumer != null); if (consumerToken.getDataChangeCreatedTime() == null) { consumerToken.setDataChangeCreatedTime(new Date()); } consumerToken.setToken(generateToken(consumer.getAppId(), consumerToken .getDataChangeCreatedTime(), portalConfig.consumerTokenSalt())); } String generateToken(String consumerAppId, Date generationTime, String consumerTokenSalt) { return Hashing.sha1().hashString(KEY_JOINER.join(consumerAppId, TIMESTAMP_FORMAT.format (generationTime), consumerTokenSalt), Charsets.UTF_8).toString(); } ConsumerRole createConsumerRole(Long consumerId, Long roleId, String operator) { ConsumerRole consumerRole = new ConsumerRole(); consumerRole.setConsumerId(consumerId); consumerRole.setRoleId(roleId); consumerRole.setDataChangeCreatedBy(operator); consumerRole.setDataChangeLastModifiedBy(operator); return consumerRole; } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/component/AdminServiceAddressLocator.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.component; import com.ctrip.framework.apollo.portal.environment.PortalMetaDomainService; import com.ctrip.framework.apollo.core.dto.ServiceDTO; import com.ctrip.framework.apollo.portal.environment.Env; import com.ctrip.framework.apollo.core.utils.ApolloThreadFactory; import com.ctrip.framework.apollo.tracer.Tracer; import com.google.common.collect.Lists; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.autoconfigure.http.HttpMessageConverters; import org.springframework.stereotype.Component; import org.springframework.util.CollectionUtils; import org.springframework.web.client.RestTemplate; import javax.annotation.PostConstruct; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; @Component public class AdminServiceAddressLocator { private static final long NORMAL_REFRESH_INTERVAL = 5 * 60 * 1000; private static final long OFFLINE_REFRESH_INTERVAL = 10 * 1000; private static final int RETRY_TIMES = 3; private static final String ADMIN_SERVICE_URL_PATH = "/services/admin"; private static final Logger logger = LoggerFactory.getLogger(AdminServiceAddressLocator.class); private ScheduledExecutorService refreshServiceAddressService; private RestTemplate restTemplate; private List<Env> allEnvs; private Map<Env, List<ServiceDTO>> cache = new ConcurrentHashMap<>(); private final PortalSettings portalSettings; private final RestTemplateFactory restTemplateFactory; private final PortalMetaDomainService portalMetaDomainService; public AdminServiceAddressLocator( final HttpMessageConverters httpMessageConverters, final PortalSettings portalSettings, final RestTemplateFactory restTemplateFactory, final PortalMetaDomainService portalMetaDomainService ) { this.portalSettings = portalSettings; this.restTemplateFactory = restTemplateFactory; this.portalMetaDomainService = portalMetaDomainService; } @PostConstruct public void init() { allEnvs = portalSettings.getAllEnvs(); //init restTemplate restTemplate = restTemplateFactory.getObject(); refreshServiceAddressService = Executors.newScheduledThreadPool(1, ApolloThreadFactory.create("ServiceLocator", true)); refreshServiceAddressService.schedule(new RefreshAdminServerAddressTask(), 1, TimeUnit.MILLISECONDS); } public List<ServiceDTO> getServiceList(Env env) { List<ServiceDTO> services = cache.get(env); if (CollectionUtils.isEmpty(services)) { return Collections.emptyList(); } List<ServiceDTO> randomConfigServices = Lists.newArrayList(services); Collections.shuffle(randomConfigServices); return randomConfigServices; } //maintain admin server address private class RefreshAdminServerAddressTask implements Runnable { @Override public void run() { boolean refreshSuccess = true; //refresh fail if get any env address fail for (Env env : allEnvs) { boolean currentEnvRefreshResult = refreshServerAddressCache(env); refreshSuccess = refreshSuccess && currentEnvRefreshResult; } if (refreshSuccess) { refreshServiceAddressService .schedule(new RefreshAdminServerAddressTask(), NORMAL_REFRESH_INTERVAL, TimeUnit.MILLISECONDS); } else { refreshServiceAddressService .schedule(new RefreshAdminServerAddressTask(), OFFLINE_REFRESH_INTERVAL, TimeUnit.MILLISECONDS); } } } private boolean refreshServerAddressCache(Env env) { for (int i = 0; i < RETRY_TIMES; i++) { try { ServiceDTO[] services = getAdminServerAddress(env); if (services == null || services.length == 0) { continue; } cache.put(env, Arrays.asList(services)); return true; } catch (Throwable e) { logger.error(String.format("Get admin server address from meta server failed. env: %s, meta server address:%s", env, portalMetaDomainService.getDomain(env)), e); Tracer .logError(String.format("Get admin server address from meta server failed. env: %s, meta server address:%s", env, portalMetaDomainService.getDomain(env)), e); } } return false; } private ServiceDTO[] getAdminServerAddress(Env env) { String domainName = portalMetaDomainService.getDomain(env); String url = domainName + ADMIN_SERVICE_URL_PATH; return restTemplate.getForObject(url, ServiceDTO[].class); } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.component; import com.ctrip.framework.apollo.portal.environment.PortalMetaDomainService; import com.ctrip.framework.apollo.core.dto.ServiceDTO; import com.ctrip.framework.apollo.portal.environment.Env; import com.ctrip.framework.apollo.core.utils.ApolloThreadFactory; import com.ctrip.framework.apollo.tracer.Tracer; import com.google.common.collect.Lists; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.autoconfigure.http.HttpMessageConverters; import org.springframework.stereotype.Component; import org.springframework.util.CollectionUtils; import org.springframework.web.client.RestTemplate; import javax.annotation.PostConstruct; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; @Component public class AdminServiceAddressLocator { private static final long NORMAL_REFRESH_INTERVAL = 5 * 60 * 1000; private static final long OFFLINE_REFRESH_INTERVAL = 10 * 1000; private static final int RETRY_TIMES = 3; private static final String ADMIN_SERVICE_URL_PATH = "/services/admin"; private static final Logger logger = LoggerFactory.getLogger(AdminServiceAddressLocator.class); private ScheduledExecutorService refreshServiceAddressService; private RestTemplate restTemplate; private List<Env> allEnvs; private Map<Env, List<ServiceDTO>> cache = new ConcurrentHashMap<>(); private final PortalSettings portalSettings; private final RestTemplateFactory restTemplateFactory; private final PortalMetaDomainService portalMetaDomainService; public AdminServiceAddressLocator( final HttpMessageConverters httpMessageConverters, final PortalSettings portalSettings, final RestTemplateFactory restTemplateFactory, final PortalMetaDomainService portalMetaDomainService ) { this.portalSettings = portalSettings; this.restTemplateFactory = restTemplateFactory; this.portalMetaDomainService = portalMetaDomainService; } @PostConstruct public void init() { allEnvs = portalSettings.getAllEnvs(); //init restTemplate restTemplate = restTemplateFactory.getObject(); refreshServiceAddressService = Executors.newScheduledThreadPool(1, ApolloThreadFactory.create("ServiceLocator", true)); refreshServiceAddressService.schedule(new RefreshAdminServerAddressTask(), 1, TimeUnit.MILLISECONDS); } public List<ServiceDTO> getServiceList(Env env) { List<ServiceDTO> services = cache.get(env); if (CollectionUtils.isEmpty(services)) { return Collections.emptyList(); } List<ServiceDTO> randomConfigServices = Lists.newArrayList(services); Collections.shuffle(randomConfigServices); return randomConfigServices; } //maintain admin server address private class RefreshAdminServerAddressTask implements Runnable { @Override public void run() { boolean refreshSuccess = true; //refresh fail if get any env address fail for (Env env : allEnvs) { boolean currentEnvRefreshResult = refreshServerAddressCache(env); refreshSuccess = refreshSuccess && currentEnvRefreshResult; } if (refreshSuccess) { refreshServiceAddressService .schedule(new RefreshAdminServerAddressTask(), NORMAL_REFRESH_INTERVAL, TimeUnit.MILLISECONDS); } else { refreshServiceAddressService .schedule(new RefreshAdminServerAddressTask(), OFFLINE_REFRESH_INTERVAL, TimeUnit.MILLISECONDS); } } } private boolean refreshServerAddressCache(Env env) { for (int i = 0; i < RETRY_TIMES; i++) { try { ServiceDTO[] services = getAdminServerAddress(env); if (services == null || services.length == 0) { continue; } cache.put(env, Arrays.asList(services)); return true; } catch (Throwable e) { logger.error(String.format("Get admin server address from meta server failed. env: %s, meta server address:%s", env, portalMetaDomainService.getDomain(env)), e); Tracer .logError(String.format("Get admin server address from meta server failed. env: %s, meta server address:%s", env, portalMetaDomainService.getDomain(env)), e); } } return false; } private ServiceDTO[] getAdminServerAddress(Env env) { String domainName = portalMetaDomainService.getDomain(env); String url = domainName + ADMIN_SERVICE_URL_PATH; return restTemplate.getForObject(url, ServiceDTO[].class); } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-core/src/main/java/com/ctrip/framework/apollo/core/utils/StringUtils.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.core.utils; import java.util.Collection; import java.util.Iterator; public class StringUtils { public static final String EMPTY = ""; /** * <p> * Checks if a String is empty ("") or null. * </p> * * <pre> * StringUtils.isEmpty(null) = true * StringUtils.isEmpty("") = true * StringUtils.isEmpty(" ") = false * StringUtils.isEmpty("bob") = false * StringUtils.isEmpty(" bob ") = false * </pre> * * <p> * NOTE: This method changed in Lang version 2.0. It no longer trims the String. That functionality is available in isBlank(). * </p> * * @param str the String to check, may be null * @return <code>true</code> if the String is empty or null */ public static boolean isEmpty(String str) { return str == null || str.length() == 0; } public static boolean isContainEmpty(String... args){ if (args == null){ return false; } for (String arg: args){ if (arg == null || "".equals(arg)){ return true; } } return false; } /** * <p> * Checks if a String is whitespace, empty ("") or null. * </p> * * <pre> * StringUtils.isBlank(null) = true * StringUtils.isBlank("") = true * StringUtils.isBlank(" ") = true * StringUtils.isBlank("bob") = false * StringUtils.isBlank(" bob ") = false * </pre> * * @param str the String to check, may be null * @return <code>true</code> if the String is null, empty or whitespace */ public static boolean isBlank(String str) { int strLen; if (str == null || (strLen = str.length()) == 0) { return true; } for (int i = 0; i < strLen; i++) { if (!Character.isWhitespace(str.charAt(i))) { return false; } } return true; } /** * <p> * Removes control characters (char &lt;= 32) from both ends of this String returning <code>null</code> if the String is empty * ("") after the trim or if it is <code>null</code>. * * <p> * The String is trimmed using {@link String#trim()}. Trim removes start and end characters &lt;= 32. To strip whitespace use * {@link #stripToNull(String)}. * </p> * * <pre> * StringUtils.trimToNull(null) = null * StringUtils.trimToNull("") = null * StringUtils.trimToNull(" ") = null * StringUtils.trimToNull("abc") = "abc" * StringUtils.trimToNull(" abc ") = "abc" * </pre> * * @param str the String to be trimmed, may be null * @return the trimmed String, <code>null</code> if only chars &lt;= 32, empty or null String input * @since 2.0 */ public static String trimToNull(String str) { String ts = trim(str); return isEmpty(ts) ? null : ts; } /** * <p> * Removes control characters (char &lt;= 32) from both ends of this String returning an empty String ("") if the String is empty * ("") after the trim or if it is <code>null</code>. * * <p> * The String is trimmed using {@link String#trim()}. Trim removes start and end characters &lt;= 32. To strip whitespace use * {@link #stripToEmpty(String)}. * </p> * * <pre> * StringUtils.trimToEmpty(null) = "" * StringUtils.trimToEmpty("") = "" * StringUtils.trimToEmpty(" ") = "" * StringUtils.trimToEmpty("abc") = "abc" * StringUtils.trimToEmpty(" abc ") = "abc" * </pre> * * @param str the String to be trimmed, may be null * @return the trimmed String, or an empty String if <code>null</code> input * @since 2.0 */ public static String trimToEmpty(String str) { return str == null ? EMPTY : str.trim(); } /** * <p> * Removes control characters (char &lt;= 32) from both ends of this String, handling <code>null</code> by returning * <code>null</code>. * </p> * * <p> * The String is trimmed using {@link String#trim()}. Trim removes start and end characters &lt;= 32. To strip whitespace use * {@link #strip(String)}. * </p> * * <p> * To trim your choice of characters, use the {@link #strip(String, String)} methods. * </p> * * <pre> * StringUtils.trim(null) = null * StringUtils.trim("") = "" * StringUtils.trim(" ") = "" * StringUtils.trim("abc") = "abc" * StringUtils.trim(" abc ") = "abc" * </pre> * * @param str the String to be trimmed, may be null * @return the trimmed string, <code>null</code> if null String input */ public static String trim(String str) { return str == null ? null : str.trim(); } /** * <p> * Compares two Strings, returning <code>true</code> if they are equal. * </p> * * <p> * <code>null</code>s are handled without exceptions. Two <code>null</code> references are considered to be equal. The comparison * is case sensitive. * </p> * * <pre> * StringUtils.equals(null, null) = true * StringUtils.equals(null, "abc") = false * StringUtils.equals("abc", null) = false * StringUtils.equals("abc", "abc") = true * StringUtils.equals("abc", "ABC") = false * </pre> * * @param str1 the first String, may be null * @param str2 the second String, may be null * @return <code>true</code> if the Strings are equal, case sensitive, or both <code>null</code> * @see java.lang.String#equals(Object) */ public static boolean equals(String str1, String str2) { return str1 == null ? str2 == null : str1.equals(str2); } /** * <p> * Compares two Strings, returning <code>true</code> if they are equal ignoring the case. * </p> * * <p> * <code>null</code>s are handled without exceptions. Two <code>null</code> references are considered equal. Comparison is case * insensitive. * </p> * * <pre> * StringUtils.equalsIgnoreCase(null, null) = true * StringUtils.equalsIgnoreCase(null, "abc") = false * StringUtils.equalsIgnoreCase("abc", null) = false * StringUtils.equalsIgnoreCase("abc", "abc") = true * StringUtils.equalsIgnoreCase("abc", "ABC") = true * </pre> * * @param str1 the first String, may be null * @param str2 the second String, may be null * @return <code>true</code> if the Strings are equal, case insensitive, or both <code>null</code> * @see java.lang.String#equalsIgnoreCase(String) */ public static boolean equalsIgnoreCase(String str1, String str2) { return str1 == null ? str2 == null : str1.equalsIgnoreCase(str2); } /** * <p> * Check if a String starts with a specified prefix. * </p> * * <p> * <code>null</code>s are handled without exceptions. Two <code>null</code> references are considered to be equal. The comparison * is case sensitive. * </p> * * <pre> * StringUtils.startsWith(null, null) = true * StringUtils.startsWith(null, "abc") = false * StringUtils.startsWith("abcdef", null) = false * StringUtils.startsWith("abcdef", "abc") = true * StringUtils.startsWith("ABCDEF", "abc") = false * </pre> * * @param str the String to check, may be null * @param prefix the prefix to find, may be null * @return <code>true</code> if the String starts with the prefix, case sensitive, or both <code>null</code> * @see java.lang.String#startsWith(String) * @since 2.4 */ public static boolean startsWith(String str, String prefix) { return startsWith(str, prefix, false); } /** * <p> * Check if a String starts with a specified prefix (optionally case insensitive). * </p> * * @param str the String to check, may be null * @param prefix the prefix to find, may be null * @param ignoreCase inidicates whether the compare should ignore case (case insensitive) or not. * @return <code>true</code> if the String starts with the prefix or both <code>null</code> * @see java.lang.String#startsWith(String) */ private static boolean startsWith(String str, String prefix, boolean ignoreCase) { if (str == null || prefix == null) { return str == null && prefix == null; } if (prefix.length() > str.length()) { return false; } return str.regionMatches(ignoreCase, 0, prefix, 0, prefix.length()); } /** * <p> * Case insensitive check if a String starts with a specified prefix. * </p> * * <p> * <code>null</code>s are handled without exceptions. Two <code>null</code> references are considered to be equal. The comparison * is case insensitive. * </p> * * <pre> * StringUtils.startsWithIgnoreCase(null, null) = true * StringUtils.startsWithIgnoreCase(null, "abc") = false * StringUtils.startsWithIgnoreCase("abcdef", null) = false * StringUtils.startsWithIgnoreCase("abcdef", "abc") = true * StringUtils.startsWithIgnoreCase("ABCDEF", "abc") = true * </pre> * * @param str the String to check, may be null * @param prefix the prefix to find, may be null * @return <code>true</code> if the String starts with the prefix, case insensitive, or both <code>null</code> * @see java.lang.String#startsWith(String) * @since 2.4 */ public static boolean startsWithIgnoreCase(String str, String prefix) { return startsWith(str, prefix, true); } /** * <p> * Checks if the String contains only unicode digits. A decimal point is not a unicode digit and returns false. * </p> * * <p> * <code>null</code> will return <code>false</code>. An empty String (length()=0) will return <code>true</code>. * </p> * * <pre> * StringUtils.isNumeric(null) = false * StringUtils.isNumeric("") = true * StringUtils.isNumeric(" ") = false * StringUtils.isNumeric("123") = true * StringUtils.isNumeric("12 3") = false * StringUtils.isNumeric("ab2c") = false * StringUtils.isNumeric("12-3") = false * StringUtils.isNumeric("12.3") = false * </pre> * * @param str the String to check, may be null * @return <code>true</code> if only contains digits, and is non-null */ public static boolean isNumeric(String str) { if (str == null) { return false; } int sz = str.length(); for (int i = 0; i < sz; i++) { if (!Character.isDigit(str.charAt(i))) { return false; } } return true; } public interface StringFormatter<T> { String format(T obj); } public static <T> String join(Collection<T> collection, String separator) { return join(collection, separator, new StringFormatter<T>() { @Override public String format(T obj) { return obj.toString(); } }); } public static <T> String join(Collection<T> collection, String separator, StringFormatter<T> formatter) { Iterator<T> iterator = collection.iterator(); // handle null, zero and one elements before building a buffer if (iterator == null) { return null; } if (!iterator.hasNext()) { return EMPTY; } T first = iterator.next(); if (!iterator.hasNext()) { return first == null ? "" : formatter.format(first); } // two or more elements StringBuilder buf = new StringBuilder(256); // Java default is 16, probably too small if (first != null) { buf.append(formatter.format(first)); } while (iterator.hasNext()) { buf.append(separator); T obj = iterator.next(); if (obj != null) { buf.append(formatter.format(obj)); } } return buf.toString(); } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.core.utils; import java.util.Collection; import java.util.Iterator; public class StringUtils { public static final String EMPTY = ""; /** * <p> * Checks if a String is empty ("") or null. * </p> * * <pre> * StringUtils.isEmpty(null) = true * StringUtils.isEmpty("") = true * StringUtils.isEmpty(" ") = false * StringUtils.isEmpty("bob") = false * StringUtils.isEmpty(" bob ") = false * </pre> * * <p> * NOTE: This method changed in Lang version 2.0. It no longer trims the String. That functionality is available in isBlank(). * </p> * * @param str the String to check, may be null * @return <code>true</code> if the String is empty or null */ public static boolean isEmpty(String str) { return str == null || str.length() == 0; } public static boolean isContainEmpty(String... args){ if (args == null){ return false; } for (String arg: args){ if (arg == null || "".equals(arg)){ return true; } } return false; } /** * <p> * Checks if a String is whitespace, empty ("") or null. * </p> * * <pre> * StringUtils.isBlank(null) = true * StringUtils.isBlank("") = true * StringUtils.isBlank(" ") = true * StringUtils.isBlank("bob") = false * StringUtils.isBlank(" bob ") = false * </pre> * * @param str the String to check, may be null * @return <code>true</code> if the String is null, empty or whitespace */ public static boolean isBlank(String str) { int strLen; if (str == null || (strLen = str.length()) == 0) { return true; } for (int i = 0; i < strLen; i++) { if (!Character.isWhitespace(str.charAt(i))) { return false; } } return true; } /** * <p> * Removes control characters (char &lt;= 32) from both ends of this String returning <code>null</code> if the String is empty * ("") after the trim or if it is <code>null</code>. * * <p> * The String is trimmed using {@link String#trim()}. Trim removes start and end characters &lt;= 32. To strip whitespace use * {@link #stripToNull(String)}. * </p> * * <pre> * StringUtils.trimToNull(null) = null * StringUtils.trimToNull("") = null * StringUtils.trimToNull(" ") = null * StringUtils.trimToNull("abc") = "abc" * StringUtils.trimToNull(" abc ") = "abc" * </pre> * * @param str the String to be trimmed, may be null * @return the trimmed String, <code>null</code> if only chars &lt;= 32, empty or null String input * @since 2.0 */ public static String trimToNull(String str) { String ts = trim(str); return isEmpty(ts) ? null : ts; } /** * <p> * Removes control characters (char &lt;= 32) from both ends of this String returning an empty String ("") if the String is empty * ("") after the trim or if it is <code>null</code>. * * <p> * The String is trimmed using {@link String#trim()}. Trim removes start and end characters &lt;= 32. To strip whitespace use * {@link #stripToEmpty(String)}. * </p> * * <pre> * StringUtils.trimToEmpty(null) = "" * StringUtils.trimToEmpty("") = "" * StringUtils.trimToEmpty(" ") = "" * StringUtils.trimToEmpty("abc") = "abc" * StringUtils.trimToEmpty(" abc ") = "abc" * </pre> * * @param str the String to be trimmed, may be null * @return the trimmed String, or an empty String if <code>null</code> input * @since 2.0 */ public static String trimToEmpty(String str) { return str == null ? EMPTY : str.trim(); } /** * <p> * Removes control characters (char &lt;= 32) from both ends of this String, handling <code>null</code> by returning * <code>null</code>. * </p> * * <p> * The String is trimmed using {@link String#trim()}. Trim removes start and end characters &lt;= 32. To strip whitespace use * {@link #strip(String)}. * </p> * * <p> * To trim your choice of characters, use the {@link #strip(String, String)} methods. * </p> * * <pre> * StringUtils.trim(null) = null * StringUtils.trim("") = "" * StringUtils.trim(" ") = "" * StringUtils.trim("abc") = "abc" * StringUtils.trim(" abc ") = "abc" * </pre> * * @param str the String to be trimmed, may be null * @return the trimmed string, <code>null</code> if null String input */ public static String trim(String str) { return str == null ? null : str.trim(); } /** * <p> * Compares two Strings, returning <code>true</code> if they are equal. * </p> * * <p> * <code>null</code>s are handled without exceptions. Two <code>null</code> references are considered to be equal. The comparison * is case sensitive. * </p> * * <pre> * StringUtils.equals(null, null) = true * StringUtils.equals(null, "abc") = false * StringUtils.equals("abc", null) = false * StringUtils.equals("abc", "abc") = true * StringUtils.equals("abc", "ABC") = false * </pre> * * @param str1 the first String, may be null * @param str2 the second String, may be null * @return <code>true</code> if the Strings are equal, case sensitive, or both <code>null</code> * @see java.lang.String#equals(Object) */ public static boolean equals(String str1, String str2) { return str1 == null ? str2 == null : str1.equals(str2); } /** * <p> * Compares two Strings, returning <code>true</code> if they are equal ignoring the case. * </p> * * <p> * <code>null</code>s are handled without exceptions. Two <code>null</code> references are considered equal. Comparison is case * insensitive. * </p> * * <pre> * StringUtils.equalsIgnoreCase(null, null) = true * StringUtils.equalsIgnoreCase(null, "abc") = false * StringUtils.equalsIgnoreCase("abc", null) = false * StringUtils.equalsIgnoreCase("abc", "abc") = true * StringUtils.equalsIgnoreCase("abc", "ABC") = true * </pre> * * @param str1 the first String, may be null * @param str2 the second String, may be null * @return <code>true</code> if the Strings are equal, case insensitive, or both <code>null</code> * @see java.lang.String#equalsIgnoreCase(String) */ public static boolean equalsIgnoreCase(String str1, String str2) { return str1 == null ? str2 == null : str1.equalsIgnoreCase(str2); } /** * <p> * Check if a String starts with a specified prefix. * </p> * * <p> * <code>null</code>s are handled without exceptions. Two <code>null</code> references are considered to be equal. The comparison * is case sensitive. * </p> * * <pre> * StringUtils.startsWith(null, null) = true * StringUtils.startsWith(null, "abc") = false * StringUtils.startsWith("abcdef", null) = false * StringUtils.startsWith("abcdef", "abc") = true * StringUtils.startsWith("ABCDEF", "abc") = false * </pre> * * @param str the String to check, may be null * @param prefix the prefix to find, may be null * @return <code>true</code> if the String starts with the prefix, case sensitive, or both <code>null</code> * @see java.lang.String#startsWith(String) * @since 2.4 */ public static boolean startsWith(String str, String prefix) { return startsWith(str, prefix, false); } /** * <p> * Check if a String starts with a specified prefix (optionally case insensitive). * </p> * * @param str the String to check, may be null * @param prefix the prefix to find, may be null * @param ignoreCase inidicates whether the compare should ignore case (case insensitive) or not. * @return <code>true</code> if the String starts with the prefix or both <code>null</code> * @see java.lang.String#startsWith(String) */ private static boolean startsWith(String str, String prefix, boolean ignoreCase) { if (str == null || prefix == null) { return str == null && prefix == null; } if (prefix.length() > str.length()) { return false; } return str.regionMatches(ignoreCase, 0, prefix, 0, prefix.length()); } /** * <p> * Case insensitive check if a String starts with a specified prefix. * </p> * * <p> * <code>null</code>s are handled without exceptions. Two <code>null</code> references are considered to be equal. The comparison * is case insensitive. * </p> * * <pre> * StringUtils.startsWithIgnoreCase(null, null) = true * StringUtils.startsWithIgnoreCase(null, "abc") = false * StringUtils.startsWithIgnoreCase("abcdef", null) = false * StringUtils.startsWithIgnoreCase("abcdef", "abc") = true * StringUtils.startsWithIgnoreCase("ABCDEF", "abc") = true * </pre> * * @param str the String to check, may be null * @param prefix the prefix to find, may be null * @return <code>true</code> if the String starts with the prefix, case insensitive, or both <code>null</code> * @see java.lang.String#startsWith(String) * @since 2.4 */ public static boolean startsWithIgnoreCase(String str, String prefix) { return startsWith(str, prefix, true); } /** * <p> * Checks if the String contains only unicode digits. A decimal point is not a unicode digit and returns false. * </p> * * <p> * <code>null</code> will return <code>false</code>. An empty String (length()=0) will return <code>true</code>. * </p> * * <pre> * StringUtils.isNumeric(null) = false * StringUtils.isNumeric("") = true * StringUtils.isNumeric(" ") = false * StringUtils.isNumeric("123") = true * StringUtils.isNumeric("12 3") = false * StringUtils.isNumeric("ab2c") = false * StringUtils.isNumeric("12-3") = false * StringUtils.isNumeric("12.3") = false * </pre> * * @param str the String to check, may be null * @return <code>true</code> if only contains digits, and is non-null */ public static boolean isNumeric(String str) { if (str == null) { return false; } int sz = str.length(); for (int i = 0; i < sz; i++) { if (!Character.isDigit(str.charAt(i))) { return false; } } return true; } public interface StringFormatter<T> { String format(T obj); } public static <T> String join(Collection<T> collection, String separator) { return join(collection, separator, new StringFormatter<T>() { @Override public String format(T obj) { return obj.toString(); } }); } public static <T> String join(Collection<T> collection, String separator, StringFormatter<T> formatter) { Iterator<T> iterator = collection.iterator(); // handle null, zero and one elements before building a buffer if (iterator == null) { return null; } if (!iterator.hasNext()) { return EMPTY; } T first = iterator.next(); if (!iterator.hasNext()) { return first == null ? "" : formatter.format(first); } // two or more elements StringBuilder buf = new StringBuilder(256); // Java default is 16, probably too small if (first != null) { buf.append(formatter.format(first)); } while (iterator.hasNext()) { buf.append(separator); T obj = iterator.next(); if (obj != null) { buf.append(formatter.format(obj)); } } return buf.toString(); } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./.github/ISSUE_TEMPLATE/feature_request_zh.md
--- name: 请求特性 about: 给这个项目提一些建议、想法 title: '' labels: '' assignees: '' --- **你的特性请求和某个问题有关吗?请描述** 清晰简洁地描述这个问题是什么。即,当碰到xxx时,总是感觉很麻烦 **清晰简洁地描述一下你希望的解决方案** **清晰简洁地描述一下这个特性的备选方案** **其它背景** 在这里添加和这个特性请求有关的背景说明、截图
--- name: 请求特性 about: 给这个项目提一些建议、想法 title: '' labels: '' assignees: '' --- **你的特性请求和某个问题有关吗?请描述** 清晰简洁地描述这个问题是什么。即,当碰到xxx时,总是感觉很麻烦 **清晰简洁地描述一下你希望的解决方案** **清晰简洁地描述一下这个特性的备选方案** **其它背景** 在这里添加和这个特性请求有关的背景说明、截图
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-common/src/main/java/com/ctrip/framework/apollo/common/dto/NamespaceDTO.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.common.dto; import com.ctrip.framework.apollo.common.utils.InputValidator; import javax.validation.constraints.Pattern; public class NamespaceDTO extends BaseDTO{ private long id; private String appId; private String clusterName; @Pattern( regexp = InputValidator.CLUSTER_NAMESPACE_VALIDATOR, message = "Invalid Namespace format: " + InputValidator.INVALID_CLUSTER_NAMESPACE_MESSAGE ) private String namespaceName; public long getId() { return id; } public void setId(long id) { this.id = id; } public String getAppId() { return appId; } public String getClusterName() { return clusterName; } public String getNamespaceName() { return namespaceName; } public void setAppId(String appId) { this.appId = appId; } public void setClusterName(String clusterName) { this.clusterName = clusterName; } public void setNamespaceName(String namespaceName) { this.namespaceName = namespaceName; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.common.dto; import com.ctrip.framework.apollo.common.utils.InputValidator; import javax.validation.constraints.Pattern; public class NamespaceDTO extends BaseDTO{ private long id; private String appId; private String clusterName; @Pattern( regexp = InputValidator.CLUSTER_NAMESPACE_VALIDATOR, message = "Invalid Namespace format: " + InputValidator.INVALID_CLUSTER_NAMESPACE_MESSAGE ) private String namespaceName; public long getId() { return id; } public void setId(long id) { this.id = id; } public String getAppId() { return appId; } public String getClusterName() { return clusterName; } public String getNamespaceName() { return namespaceName; } public void setAppId(String appId) { this.appId = appId; } public void setClusterName(String clusterName) { this.clusterName = clusterName; } public void setNamespaceName(String namespaceName) { this.namespaceName = namespaceName; } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-client/src/test/java/com/ctrip/framework/apollo/spring/spi/TestProcessorHelper.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.spring.spi; import org.springframework.beans.BeansException; import org.springframework.beans.factory.support.BeanDefinitionRegistry; public class TestProcessorHelper extends DefaultConfigPropertySourcesProcessorHelper { @Override public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) throws BeansException { super.postProcessBeanDefinitionRegistry(registry); } @Override public int getOrder() { return 0; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.spring.spi; import org.springframework.beans.BeansException; import org.springframework.beans.factory.support.BeanDefinitionRegistry; public class TestProcessorHelper extends DefaultConfigPropertySourcesProcessorHelper { @Override public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) throws BeansException { super.postProcessBeanDefinitionRegistry(registry); } @Override public int getOrder() { return 0; } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-client/src/main/java/com/ctrip/framework/apollo/spring/config/PropertySourcesConstants.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.spring.config; public interface PropertySourcesConstants { String APOLLO_PROPERTY_SOURCE_NAME = "ApolloPropertySources"; String APOLLO_BOOTSTRAP_PROPERTY_SOURCE_NAME = "ApolloBootstrapPropertySources"; String APOLLO_BOOTSTRAP_ENABLED = "apollo.bootstrap.enabled"; String APOLLO_BOOTSTRAP_EAGER_LOAD_ENABLED = "apollo.bootstrap.eagerLoad.enabled"; String APOLLO_BOOTSTRAP_NAMESPACES = "apollo.bootstrap.namespaces"; }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.spring.config; public interface PropertySourcesConstants { String APOLLO_PROPERTY_SOURCE_NAME = "ApolloPropertySources"; String APOLLO_BOOTSTRAP_PROPERTY_SOURCE_NAME = "ApolloBootstrapPropertySources"; String APOLLO_BOOTSTRAP_ENABLED = "apollo.bootstrap.enabled"; String APOLLO_BOOTSTRAP_EAGER_LOAD_ENABLED = "apollo.bootstrap.eagerLoad.enabled"; String APOLLO_BOOTSTRAP_NAMESPACES = "apollo.bootstrap.namespaces"; }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-openapi/src/main/java/com/ctrip/framework/apollo/openapi/dto/OpenAppDTO.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.openapi.dto; public class OpenAppDTO extends BaseDTO { private String name; private String appId; private String orgId; private String orgName; private String ownerName; private String ownerEmail; public String getAppId() { return appId; } public String getName() { return name; } public String getOrgId() { return orgId; } public String getOrgName() { return orgName; } public String getOwnerEmail() { return ownerEmail; } public String getOwnerName() { return ownerName; } public void setAppId(String appId) { this.appId = appId; } public void setName(String name) { this.name = name; } public void setOrgId(String orgId) { this.orgId = orgId; } public void setOrgName(String orgName) { this.orgName = orgName; } public void setOwnerEmail(String ownerEmail) { this.ownerEmail = ownerEmail; } public void setOwnerName(String ownerName) { this.ownerName = ownerName; } @Override public String toString() { final StringBuilder sb = new StringBuilder("OpenAppDTO{"); sb.append("name='").append(name).append('\''); sb.append(", appId='").append(appId).append('\''); sb.append(", orgId='").append(orgId).append('\''); sb.append(", orgName='").append(orgName).append('\''); sb.append(", ownerName='").append(ownerName).append('\''); sb.append(", ownerEmail='").append(ownerEmail).append('\''); sb.append(", dataChangeCreatedBy='").append(dataChangeCreatedBy).append('\''); sb.append(", dataChangeLastModifiedBy='").append(dataChangeLastModifiedBy).append('\''); sb.append(", dataChangeCreatedTime=").append(dataChangeCreatedTime); sb.append(", dataChangeLastModifiedTime=").append(dataChangeLastModifiedTime); sb.append('}'); return sb.toString(); } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.openapi.dto; public class OpenAppDTO extends BaseDTO { private String name; private String appId; private String orgId; private String orgName; private String ownerName; private String ownerEmail; public String getAppId() { return appId; } public String getName() { return name; } public String getOrgId() { return orgId; } public String getOrgName() { return orgName; } public String getOwnerEmail() { return ownerEmail; } public String getOwnerName() { return ownerName; } public void setAppId(String appId) { this.appId = appId; } public void setName(String name) { this.name = name; } public void setOrgId(String orgId) { this.orgId = orgId; } public void setOrgName(String orgName) { this.orgName = orgName; } public void setOwnerEmail(String ownerEmail) { this.ownerEmail = ownerEmail; } public void setOwnerName(String ownerName) { this.ownerName = ownerName; } @Override public String toString() { final StringBuilder sb = new StringBuilder("OpenAppDTO{"); sb.append("name='").append(name).append('\''); sb.append(", appId='").append(appId).append('\''); sb.append(", orgId='").append(orgId).append('\''); sb.append(", orgName='").append(orgName).append('\''); sb.append(", ownerName='").append(ownerName).append('\''); sb.append(", ownerEmail='").append(ownerEmail).append('\''); sb.append(", dataChangeCreatedBy='").append(dataChangeCreatedBy).append('\''); sb.append(", dataChangeLastModifiedBy='").append(dataChangeLastModifiedBy).append('\''); sb.append(", dataChangeCreatedTime=").append(dataChangeCreatedTime); sb.append(", dataChangeLastModifiedTime=").append(dataChangeLastModifiedTime); sb.append('}'); return sb.toString(); } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/util/RoleUtilsTest.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.util; import static org.junit.Assert.*; import org.junit.Test; public class RoleUtilsTest { @Test public void testExtractAppIdFromMasterRoleName() throws Exception { assertEquals("someApp", RoleUtils.extractAppIdFromMasterRoleName("Master+someApp")); assertEquals("someApp", RoleUtils.extractAppIdFromMasterRoleName("Master+someApp+xx")); assertNull(RoleUtils.extractAppIdFromMasterRoleName("ReleaseNamespace+app1+application")); } @Test public void testExtractAppIdFromRoleName() throws Exception { assertEquals("someApp", RoleUtils.extractAppIdFromRoleName("Master+someApp")); assertEquals("someApp", RoleUtils.extractAppIdFromRoleName("ModifyNamespace+someApp+xx")); assertEquals("app1", RoleUtils.extractAppIdFromRoleName("ReleaseNamespace+app1+application")); } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.util; import static org.junit.Assert.*; import org.junit.Test; public class RoleUtilsTest { @Test public void testExtractAppIdFromMasterRoleName() throws Exception { assertEquals("someApp", RoleUtils.extractAppIdFromMasterRoleName("Master+someApp")); assertEquals("someApp", RoleUtils.extractAppIdFromMasterRoleName("Master+someApp+xx")); assertNull(RoleUtils.extractAppIdFromMasterRoleName("ReleaseNamespace+app1+application")); } @Test public void testExtractAppIdFromRoleName() throws Exception { assertEquals("someApp", RoleUtils.extractAppIdFromRoleName("Master+someApp")); assertEquals("someApp", RoleUtils.extractAppIdFromRoleName("ModifyNamespace+someApp+xx")); assertEquals("app1", RoleUtils.extractAppIdFromRoleName("ReleaseNamespace+app1+application")); } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-core/src/main/java/com/ctrip/framework/apollo/core/utils/NetUtil.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.core.utils; import com.google.common.io.CharStreams; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import java.nio.charset.StandardCharsets; /** * Created by gl49 on 2018/6/8. */ public class NetUtil { private static final int DEFAULT_TIMEOUT_IN_SECONDS = 5000; /** * ping the url, return true if ping ok, false otherwise */ public static boolean pingUrl(String address) { try { URL urlObj = new URL(address); HttpURLConnection connection = (HttpURLConnection) urlObj.openConnection(); connection.setRequestMethod("GET"); connection.setUseCaches(false); connection.setConnectTimeout(DEFAULT_TIMEOUT_IN_SECONDS); connection.setReadTimeout(DEFAULT_TIMEOUT_IN_SECONDS); int statusCode = connection.getResponseCode(); cleanUpConnection(connection); return (200 <= statusCode && statusCode <= 399); } catch (Throwable ignore) { } return false; } /** * according to https://docs.oracle.com/javase/7/docs/technotes/guides/net/http-keepalive.html, we should clean up the * connection by reading the response body so that the connection could be reused. */ private static void cleanUpConnection(HttpURLConnection conn) { InputStreamReader isr = null; InputStreamReader esr = null; try { isr = new InputStreamReader(conn.getInputStream(), StandardCharsets.UTF_8); CharStreams.toString(isr); } catch (IOException e) { InputStream errorStream = conn.getErrorStream(); if (errorStream != null) { esr = new InputStreamReader(errorStream, StandardCharsets.UTF_8); try { CharStreams.toString(esr); } catch (IOException ioe) { //ignore } } } finally { if (isr != null) { try { isr.close(); } catch (IOException ex) { // ignore } } if (esr != null) { try { esr.close(); } catch (IOException ex) { // ignore } } } } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.core.utils; import com.google.common.io.CharStreams; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import java.nio.charset.StandardCharsets; /** * Created by gl49 on 2018/6/8. */ public class NetUtil { private static final int DEFAULT_TIMEOUT_IN_SECONDS = 5000; /** * ping the url, return true if ping ok, false otherwise */ public static boolean pingUrl(String address) { try { URL urlObj = new URL(address); HttpURLConnection connection = (HttpURLConnection) urlObj.openConnection(); connection.setRequestMethod("GET"); connection.setUseCaches(false); connection.setConnectTimeout(DEFAULT_TIMEOUT_IN_SECONDS); connection.setReadTimeout(DEFAULT_TIMEOUT_IN_SECONDS); int statusCode = connection.getResponseCode(); cleanUpConnection(connection); return (200 <= statusCode && statusCode <= 399); } catch (Throwable ignore) { } return false; } /** * according to https://docs.oracle.com/javase/7/docs/technotes/guides/net/http-keepalive.html, we should clean up the * connection by reading the response body so that the connection could be reused. */ private static void cleanUpConnection(HttpURLConnection conn) { InputStreamReader isr = null; InputStreamReader esr = null; try { isr = new InputStreamReader(conn.getInputStream(), StandardCharsets.UTF_8); CharStreams.toString(isr); } catch (IOException e) { InputStream errorStream = conn.getErrorStream(); if (errorStream != null) { esr = new InputStreamReader(errorStream, StandardCharsets.UTF_8); try { CharStreams.toString(esr); } catch (IOException ioe) { //ignore } } } finally { if (isr != null) { try { isr.close(); } catch (IOException ex) { // ignore } } if (esr != null) { try { esr.close(); } catch (IOException ex) { // ignore } } } } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-common/src/main/java/com/ctrip/framework/apollo/common/dto/AppDTO.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.common.dto; import com.ctrip.framework.apollo.common.utils.InputValidator; import javax.validation.constraints.Pattern; public class AppDTO extends BaseDTO{ private long id; private String name; @Pattern( regexp = InputValidator.CLUSTER_NAMESPACE_VALIDATOR, message = "Invalid AppId format: " + InputValidator.INVALID_CLUSTER_NAMESPACE_MESSAGE ) private String appId; private String orgId; private String orgName; private String ownerName; private String ownerDisplayName; private String ownerEmail; public long getId() { return id; } public void setId(long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getAppId() { return appId; } public void setAppId(String appId) { this.appId = appId; } public String getOrgId() { return orgId; } public void setOrgId(String orgId) { this.orgId = orgId; } public String getOrgName() { return orgName; } public void setOrgName(String orgName) { this.orgName = orgName; } public String getOwnerName() { return ownerName; } public void setOwnerName(String ownerName) { this.ownerName = ownerName; } public String getOwnerDisplayName() { return ownerDisplayName; } public void setOwnerDisplayName(String ownerDisplayName) { this.ownerDisplayName = ownerDisplayName; } public String getOwnerEmail() { return ownerEmail; } public void setOwnerEmail(String ownerEmail) { this.ownerEmail = ownerEmail; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.common.dto; import com.ctrip.framework.apollo.common.utils.InputValidator; import javax.validation.constraints.Pattern; public class AppDTO extends BaseDTO{ private long id; private String name; @Pattern( regexp = InputValidator.CLUSTER_NAMESPACE_VALIDATOR, message = "Invalid AppId format: " + InputValidator.INVALID_CLUSTER_NAMESPACE_MESSAGE ) private String appId; private String orgId; private String orgName; private String ownerName; private String ownerDisplayName; private String ownerEmail; public long getId() { return id; } public void setId(long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getAppId() { return appId; } public void setAppId(String appId) { this.appId = appId; } public String getOrgId() { return orgId; } public void setOrgId(String orgId) { this.orgId = orgId; } public String getOrgName() { return orgName; } public void setOrgName(String orgName) { this.orgName = orgName; } public String getOwnerName() { return ownerName; } public void setOwnerName(String ownerName) { this.ownerName = ownerName; } public String getOwnerDisplayName() { return ownerDisplayName; } public void setOwnerDisplayName(String ownerDisplayName) { this.ownerDisplayName = ownerDisplayName; } public String getOwnerEmail() { return ownerEmail; } public void setOwnerEmail(String ownerEmail) { this.ownerEmail = ownerEmail; } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/ReleaseHistoryService.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.service; import com.ctrip.framework.apollo.common.constants.GsonType; import com.ctrip.framework.apollo.common.dto.PageDTO; import com.ctrip.framework.apollo.common.dto.ReleaseDTO; import com.ctrip.framework.apollo.common.dto.ReleaseHistoryDTO; import com.ctrip.framework.apollo.common.entity.EntityPair; import com.ctrip.framework.apollo.common.utils.BeanUtils; import com.ctrip.framework.apollo.portal.api.AdminServiceAPI.ReleaseHistoryAPI; import com.ctrip.framework.apollo.portal.enricher.adapter.BaseDtoUserInfoEnrichedAdapter; import com.ctrip.framework.apollo.portal.environment.Env; import com.ctrip.framework.apollo.portal.api.AdminServiceAPI; import com.ctrip.framework.apollo.portal.entity.bo.ReleaseHistoryBO; import com.ctrip.framework.apollo.portal.util.RelativeDateFormat; import com.google.gson.Gson; import org.springframework.stereotype.Service; import java.util.ArrayList; import java.util.Collections; import java.util.Date; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import org.springframework.util.CollectionUtils; @Service public class ReleaseHistoryService { private final static Gson GSON = new Gson(); private final AdminServiceAPI.ReleaseHistoryAPI releaseHistoryAPI; private final ReleaseService releaseService; private final AdditionalUserInfoEnrichService additionalUserInfoEnrichService; public ReleaseHistoryService(final ReleaseHistoryAPI releaseHistoryAPI, final ReleaseService releaseService, AdditionalUserInfoEnrichService additionalUserInfoEnrichService) { this.releaseHistoryAPI = releaseHistoryAPI; this.releaseService = releaseService; this.additionalUserInfoEnrichService = additionalUserInfoEnrichService; } public ReleaseHistoryBO findLatestByReleaseIdAndOperation(Env env, long releaseId, int operation){ PageDTO<ReleaseHistoryDTO> pageDTO = releaseHistoryAPI.findByReleaseIdAndOperation(env, releaseId, operation, 0, 1); if (pageDTO != null && pageDTO.hasContent()){ ReleaseHistoryDTO releaseHistory = pageDTO.getContent().get(0); ReleaseDTO release = releaseService.findReleaseById(env, releaseHistory.getReleaseId()); return transformReleaseHistoryDTO2BO(releaseHistory, release); } return null; } public ReleaseHistoryBO findLatestByPreviousReleaseIdAndOperation(Env env, long previousReleaseId, int operation){ PageDTO<ReleaseHistoryDTO> pageDTO = releaseHistoryAPI.findByPreviousReleaseIdAndOperation(env, previousReleaseId, operation, 0, 1); if (pageDTO != null && pageDTO.hasContent()){ ReleaseHistoryDTO releaseHistory = pageDTO.getContent().get(0); ReleaseDTO release = releaseService.findReleaseById(env, releaseHistory.getReleaseId()); return transformReleaseHistoryDTO2BO(releaseHistory, release); } return null; } public List<ReleaseHistoryBO> findNamespaceReleaseHistory(String appId, Env env, String clusterName, String namespaceName, int page, int size) { PageDTO<ReleaseHistoryDTO> result = releaseHistoryAPI.findReleaseHistoriesByNamespace(appId, env, clusterName, namespaceName, page, size); if (result == null || !result.hasContent()) { return Collections.emptyList(); } List<ReleaseHistoryDTO> content = result.getContent(); Set<Long> releaseIds = new HashSet<>(); for (ReleaseHistoryDTO releaseHistoryDTO : content) { long releaseId = releaseHistoryDTO.getReleaseId(); if (releaseId != 0) { releaseIds.add(releaseId); } } List<ReleaseDTO> releases = releaseService.findReleaseByIds(env, releaseIds); return transformReleaseHistoryDTO2BO(content, releases); } private List<ReleaseHistoryBO> transformReleaseHistoryDTO2BO(List<ReleaseHistoryDTO> source, List<ReleaseDTO> releases) { if (CollectionUtils.isEmpty(source)) { return Collections.emptyList(); } this.additionalUserInfoEnrichService.enrichAdditionalUserInfo(source, BaseDtoUserInfoEnrichedAdapter::new); Map<Long, ReleaseDTO> releasesMap = BeanUtils.mapByKey("id", releases); List<ReleaseHistoryBO> bos = new ArrayList<>(source.size()); for (ReleaseHistoryDTO dto : source) { ReleaseDTO release = releasesMap.get(dto.getReleaseId()); bos.add(transformReleaseHistoryDTO2BO(dto, release)); } return bos; } private ReleaseHistoryBO transformReleaseHistoryDTO2BO(ReleaseHistoryDTO dto, ReleaseDTO release){ ReleaseHistoryBO bo = new ReleaseHistoryBO(); bo.setId(dto.getId()); bo.setAppId(dto.getAppId()); bo.setClusterName(dto.getClusterName()); bo.setNamespaceName(dto.getNamespaceName()); bo.setBranchName(dto.getBranchName()); bo.setReleaseId(dto.getReleaseId()); bo.setPreviousReleaseId(dto.getPreviousReleaseId()); bo.setOperator(dto.getDataChangeCreatedBy()); bo.setOperatorDisplayName(dto.getDataChangeCreatedByDisplayName()); bo.setOperation(dto.getOperation()); Date releaseTime = dto.getDataChangeLastModifiedTime(); bo.setReleaseTime(releaseTime); bo.setReleaseTimeFormatted(RelativeDateFormat.format(releaseTime)); bo.setOperationContext(dto.getOperationContext()); //set release info setReleaseInfoToReleaseHistoryBO(bo, release); return bo; } private void setReleaseInfoToReleaseHistoryBO(ReleaseHistoryBO bo, ReleaseDTO release) { if (release != null) { bo.setReleaseTitle(release.getName()); bo.setReleaseComment(release.getComment()); bo.setReleaseAbandoned(release.isAbandoned()); Map<String, String> configuration = GSON.fromJson(release.getConfigurations(), GsonType.CONFIG); List<EntityPair<String>> items = new ArrayList<>(configuration.size()); for (Map.Entry<String, String> entry : configuration.entrySet()) { EntityPair<String> entityPair = new EntityPair<>(entry.getKey(), entry.getValue()); items.add(entityPair); } bo.setConfiguration(items); } else { bo.setReleaseTitle("no release information"); bo.setConfiguration(null); } } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.service; import com.ctrip.framework.apollo.common.constants.GsonType; import com.ctrip.framework.apollo.common.dto.PageDTO; import com.ctrip.framework.apollo.common.dto.ReleaseDTO; import com.ctrip.framework.apollo.common.dto.ReleaseHistoryDTO; import com.ctrip.framework.apollo.common.entity.EntityPair; import com.ctrip.framework.apollo.common.utils.BeanUtils; import com.ctrip.framework.apollo.portal.api.AdminServiceAPI.ReleaseHistoryAPI; import com.ctrip.framework.apollo.portal.enricher.adapter.BaseDtoUserInfoEnrichedAdapter; import com.ctrip.framework.apollo.portal.environment.Env; import com.ctrip.framework.apollo.portal.api.AdminServiceAPI; import com.ctrip.framework.apollo.portal.entity.bo.ReleaseHistoryBO; import com.ctrip.framework.apollo.portal.util.RelativeDateFormat; import com.google.gson.Gson; import org.springframework.stereotype.Service; import java.util.ArrayList; import java.util.Collections; import java.util.Date; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import org.springframework.util.CollectionUtils; @Service public class ReleaseHistoryService { private final static Gson GSON = new Gson(); private final AdminServiceAPI.ReleaseHistoryAPI releaseHistoryAPI; private final ReleaseService releaseService; private final AdditionalUserInfoEnrichService additionalUserInfoEnrichService; public ReleaseHistoryService(final ReleaseHistoryAPI releaseHistoryAPI, final ReleaseService releaseService, AdditionalUserInfoEnrichService additionalUserInfoEnrichService) { this.releaseHistoryAPI = releaseHistoryAPI; this.releaseService = releaseService; this.additionalUserInfoEnrichService = additionalUserInfoEnrichService; } public ReleaseHistoryBO findLatestByReleaseIdAndOperation(Env env, long releaseId, int operation){ PageDTO<ReleaseHistoryDTO> pageDTO = releaseHistoryAPI.findByReleaseIdAndOperation(env, releaseId, operation, 0, 1); if (pageDTO != null && pageDTO.hasContent()){ ReleaseHistoryDTO releaseHistory = pageDTO.getContent().get(0); ReleaseDTO release = releaseService.findReleaseById(env, releaseHistory.getReleaseId()); return transformReleaseHistoryDTO2BO(releaseHistory, release); } return null; } public ReleaseHistoryBO findLatestByPreviousReleaseIdAndOperation(Env env, long previousReleaseId, int operation){ PageDTO<ReleaseHistoryDTO> pageDTO = releaseHistoryAPI.findByPreviousReleaseIdAndOperation(env, previousReleaseId, operation, 0, 1); if (pageDTO != null && pageDTO.hasContent()){ ReleaseHistoryDTO releaseHistory = pageDTO.getContent().get(0); ReleaseDTO release = releaseService.findReleaseById(env, releaseHistory.getReleaseId()); return transformReleaseHistoryDTO2BO(releaseHistory, release); } return null; } public List<ReleaseHistoryBO> findNamespaceReleaseHistory(String appId, Env env, String clusterName, String namespaceName, int page, int size) { PageDTO<ReleaseHistoryDTO> result = releaseHistoryAPI.findReleaseHistoriesByNamespace(appId, env, clusterName, namespaceName, page, size); if (result == null || !result.hasContent()) { return Collections.emptyList(); } List<ReleaseHistoryDTO> content = result.getContent(); Set<Long> releaseIds = new HashSet<>(); for (ReleaseHistoryDTO releaseHistoryDTO : content) { long releaseId = releaseHistoryDTO.getReleaseId(); if (releaseId != 0) { releaseIds.add(releaseId); } } List<ReleaseDTO> releases = releaseService.findReleaseByIds(env, releaseIds); return transformReleaseHistoryDTO2BO(content, releases); } private List<ReleaseHistoryBO> transformReleaseHistoryDTO2BO(List<ReleaseHistoryDTO> source, List<ReleaseDTO> releases) { if (CollectionUtils.isEmpty(source)) { return Collections.emptyList(); } this.additionalUserInfoEnrichService.enrichAdditionalUserInfo(source, BaseDtoUserInfoEnrichedAdapter::new); Map<Long, ReleaseDTO> releasesMap = BeanUtils.mapByKey("id", releases); List<ReleaseHistoryBO> bos = new ArrayList<>(source.size()); for (ReleaseHistoryDTO dto : source) { ReleaseDTO release = releasesMap.get(dto.getReleaseId()); bos.add(transformReleaseHistoryDTO2BO(dto, release)); } return bos; } private ReleaseHistoryBO transformReleaseHistoryDTO2BO(ReleaseHistoryDTO dto, ReleaseDTO release){ ReleaseHistoryBO bo = new ReleaseHistoryBO(); bo.setId(dto.getId()); bo.setAppId(dto.getAppId()); bo.setClusterName(dto.getClusterName()); bo.setNamespaceName(dto.getNamespaceName()); bo.setBranchName(dto.getBranchName()); bo.setReleaseId(dto.getReleaseId()); bo.setPreviousReleaseId(dto.getPreviousReleaseId()); bo.setOperator(dto.getDataChangeCreatedBy()); bo.setOperatorDisplayName(dto.getDataChangeCreatedByDisplayName()); bo.setOperation(dto.getOperation()); Date releaseTime = dto.getDataChangeLastModifiedTime(); bo.setReleaseTime(releaseTime); bo.setReleaseTimeFormatted(RelativeDateFormat.format(releaseTime)); bo.setOperationContext(dto.getOperationContext()); //set release info setReleaseInfoToReleaseHistoryBO(bo, release); return bo; } private void setReleaseInfoToReleaseHistoryBO(ReleaseHistoryBO bo, ReleaseDTO release) { if (release != null) { bo.setReleaseTitle(release.getName()); bo.setReleaseComment(release.getComment()); bo.setReleaseAbandoned(release.isAbandoned()); Map<String, String> configuration = GSON.fromJson(release.getConfigurations(), GsonType.CONFIG); List<EntityPair<String>> items = new ArrayList<>(configuration.size()); for (Map.Entry<String, String> entry : configuration.entrySet()) { EntityPair<String> entityPair = new EntityPair<>(entry.getKey(), entry.getValue()); items.add(entityPair); } bo.setConfiguration(items); } else { bo.setReleaseTitle("no release information"); bo.setConfiguration(null); } } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-common/src/main/java/com/ctrip/framework/apollo/common/dto/AccessKeyDTO.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.common.dto; public class AccessKeyDTO extends BaseDTO { private Long id; private String secret; private String appId; private Boolean enabled; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getSecret() { return secret; } public void setSecret(String secret) { this.secret = secret; } public String getAppId() { return appId; } public void setAppId(String appId) { this.appId = appId; } public Boolean getEnabled() { return enabled; } public void setEnabled(Boolean enabled) { this.enabled = enabled; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.common.dto; public class AccessKeyDTO extends BaseDTO { private Long id; private String secret; private String appId; private Boolean enabled; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getSecret() { return secret; } public void setSecret(String secret) { this.secret = secret; } public String getAppId() { return appId; } public void setAppId(String appId) { this.appId = appId; } public Boolean getEnabled() { return enabled; } public void setEnabled(Boolean enabled) { this.enabled = enabled; } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-configservice/src/test/java/com/ctrip/framework/apollo/configservice/service/AppNamespaceServiceWithCacheTest.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.configservice.service; import com.ctrip.framework.apollo.biz.config.BizConfig; import com.ctrip.framework.apollo.biz.repository.AppNamespaceRepository; import com.ctrip.framework.apollo.common.entity.AppNamespace; import com.google.common.collect.Lists; import com.google.common.collect.Sets; import org.awaitility.Awaitility; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.junit.MockitoJUnitRunner; import java.util.Calendar; import java.util.Collections; import java.util.Comparator; import java.util.Date; import java.util.List; import java.util.Set; import java.util.concurrent.TimeUnit; import static org.awaitility.Awaitility.await; import static org.junit.Assert.*; import static org.mockito.Mockito.when; /** * @author Jason Song([email protected]) */ @RunWith(MockitoJUnitRunner.Silent.class) public class AppNamespaceServiceWithCacheTest { private AppNamespaceServiceWithCache appNamespaceServiceWithCache; @Mock private AppNamespaceRepository appNamespaceRepository; @Mock private BizConfig bizConfig; private int scanInterval; private TimeUnit scanIntervalTimeUnit; private Comparator<AppNamespace> appNamespaceComparator = (o1, o2) -> (int) (o1.getId() - o2.getId()); @Before public void setUp() throws Exception { appNamespaceServiceWithCache = new AppNamespaceServiceWithCache(appNamespaceRepository, bizConfig); scanInterval = 50; scanIntervalTimeUnit = TimeUnit.MILLISECONDS; when(bizConfig.appNamespaceCacheRebuildInterval()).thenReturn(scanInterval); when(bizConfig.appNamespaceCacheRebuildIntervalTimeUnit()).thenReturn(scanIntervalTimeUnit); when(bizConfig.appNamespaceCacheScanInterval()).thenReturn(scanInterval); when(bizConfig.appNamespaceCacheScanIntervalTimeUnit()).thenReturn(scanIntervalTimeUnit); Awaitility.reset(); Awaitility.setDefaultTimeout(scanInterval * 100, scanIntervalTimeUnit); Awaitility.setDefaultPollInterval(scanInterval, scanIntervalTimeUnit); } @Test public void testAppNamespace() throws Exception { String someAppId = "someAppId"; String somePrivateNamespace = "somePrivateNamespace"; String somePrivateNamespaceWithIncorrectCase = somePrivateNamespace.toUpperCase(); long somePrivateNamespaceId = 1; String yetAnotherPrivateNamespace = "anotherPrivateNamespace"; long yetAnotherPrivateNamespaceId = 4; String anotherPublicNamespace = "anotherPublicNamespace"; long anotherPublicNamespaceId = 5; String somePublicAppId = "somePublicAppId"; String somePublicNamespace = "somePublicNamespace"; String somePublicNamespaceWithIncorrectCase = somePublicNamespace.toUpperCase(); long somePublicNamespaceId = 2; String anotherPrivateNamespace = "anotherPrivateNamespace"; long anotherPrivateNamespaceId = 3; AppNamespace somePrivateAppNamespace = assembleAppNamespace(somePrivateNamespaceId, someAppId, somePrivateNamespace, false); AppNamespace somePublicAppNamespace = assembleAppNamespace(somePublicNamespaceId, somePublicAppId, somePublicNamespace, true); AppNamespace anotherPrivateAppNamespace = assembleAppNamespace(anotherPrivateNamespaceId, somePublicAppId, anotherPrivateNamespace, false); AppNamespace yetAnotherPrivateAppNamespace = assembleAppNamespace (yetAnotherPrivateNamespaceId, someAppId, yetAnotherPrivateNamespace, false); AppNamespace anotherPublicAppNamespace = assembleAppNamespace(anotherPublicNamespaceId, someAppId, anotherPublicNamespace, true); Set<String> someAppIdNamespaces = Sets.newHashSet (somePrivateNamespace, yetAnotherPrivateNamespace, anotherPublicNamespace); Set<String> someAppIdNamespacesWithIncorrectCase = Sets.newHashSet (somePrivateNamespaceWithIncorrectCase, yetAnotherPrivateNamespace, anotherPublicNamespace); Set<String> somePublicAppIdNamespaces = Sets.newHashSet(somePublicNamespace, anotherPrivateNamespace); Set<String> publicNamespaces = Sets.newHashSet(somePublicNamespace, anotherPublicNamespace); Set<String> publicNamespacesWithIncorrectCase = Sets.newHashSet(somePublicNamespaceWithIncorrectCase, anotherPublicNamespace); List<Long> appNamespaceIds = Lists.newArrayList(somePrivateNamespaceId, somePublicNamespaceId, anotherPrivateNamespaceId, yetAnotherPrivateNamespaceId, anotherPublicNamespaceId); List<AppNamespace> allAppNamespaces = Lists.newArrayList(somePrivateAppNamespace, somePublicAppNamespace, anotherPrivateAppNamespace, yetAnotherPrivateAppNamespace, anotherPublicAppNamespace); // Test init appNamespaceServiceWithCache.afterPropertiesSet(); // Should have no record now assertNull(appNamespaceServiceWithCache.findByAppIdAndNamespace(someAppId, somePrivateNamespace)); assertNull(appNamespaceServiceWithCache.findByAppIdAndNamespace(someAppId, somePrivateNamespaceWithIncorrectCase)); assertNull(appNamespaceServiceWithCache.findByAppIdAndNamespace(someAppId, yetAnotherPrivateNamespace)); assertNull(appNamespaceServiceWithCache.findByAppIdAndNamespace(someAppId, anotherPublicNamespace)); assertTrue(appNamespaceServiceWithCache.findByAppIdAndNamespaces(someAppId, someAppIdNamespaces).isEmpty()); assertTrue(appNamespaceServiceWithCache.findByAppIdAndNamespaces(someAppId, someAppIdNamespacesWithIncorrectCase) .isEmpty()); assertNull(appNamespaceServiceWithCache.findByAppIdAndNamespace(somePublicAppId, somePublicNamespace)); assertNull(appNamespaceServiceWithCache.findByAppIdAndNamespace(somePublicAppId, somePublicNamespaceWithIncorrectCase)); assertNull(appNamespaceServiceWithCache.findByAppIdAndNamespace(somePublicAppId, anotherPrivateNamespace)); assertTrue(appNamespaceServiceWithCache.findByAppIdAndNamespaces(somePublicAppId, somePublicAppIdNamespaces).isEmpty()); assertNull(appNamespaceServiceWithCache.findPublicNamespaceByName(somePublicNamespace)); assertNull(appNamespaceServiceWithCache.findPublicNamespaceByName(somePublicNamespaceWithIncorrectCase)); assertNull(appNamespaceServiceWithCache.findPublicNamespaceByName(anotherPublicNamespace)); assertTrue(appNamespaceServiceWithCache.findPublicNamespacesByNames(publicNamespaces).isEmpty()); assertTrue(appNamespaceServiceWithCache.findPublicNamespacesByNames(publicNamespacesWithIncorrectCase).isEmpty()); // Add 1 private namespace and 1 public namespace when(appNamespaceRepository.findFirst500ByIdGreaterThanOrderByIdAsc(0)).thenReturn(Lists .newArrayList(somePrivateAppNamespace, somePublicAppNamespace)); when(appNamespaceRepository.findAllById(Lists.newArrayList(somePrivateNamespaceId, somePublicNamespaceId))).thenReturn(Lists.newArrayList(somePrivateAppNamespace, somePublicAppNamespace)); await().untilAsserted(() -> { assertEquals(somePrivateAppNamespace, appNamespaceServiceWithCache.findByAppIdAndNamespace(someAppId, somePrivateNamespace)); assertEquals(somePrivateAppNamespace, appNamespaceServiceWithCache .findByAppIdAndNamespace(someAppId, somePrivateNamespaceWithIncorrectCase)); check(Lists.newArrayList(somePrivateAppNamespace), appNamespaceServiceWithCache .findByAppIdAndNamespaces(someAppId, someAppIdNamespaces)); check(Lists.newArrayList(somePrivateAppNamespace), appNamespaceServiceWithCache .findByAppIdAndNamespaces(someAppId, someAppIdNamespacesWithIncorrectCase)); assertEquals(somePublicAppNamespace, appNamespaceServiceWithCache.findByAppIdAndNamespace(somePublicAppId, somePublicNamespace)); assertEquals(somePublicAppNamespace, appNamespaceServiceWithCache.findByAppIdAndNamespace(somePublicAppId, somePublicNamespaceWithIncorrectCase)); check(Lists.newArrayList(somePublicAppNamespace), appNamespaceServiceWithCache .findByAppIdAndNamespaces(somePublicAppId, somePublicAppIdNamespaces)); assertEquals(somePublicAppNamespace, appNamespaceServiceWithCache.findPublicNamespaceByName(somePublicNamespace)); assertEquals(somePublicAppNamespace, appNamespaceServiceWithCache.findPublicNamespaceByName (somePublicNamespaceWithIncorrectCase)); check(Lists.newArrayList(somePublicAppNamespace), appNamespaceServiceWithCache.findPublicNamespacesByNames (publicNamespaces)); check(Lists.newArrayList(somePublicAppNamespace), appNamespaceServiceWithCache.findPublicNamespacesByNames (publicNamespacesWithIncorrectCase)); }); // Add 2 private namespaces and 1 public namespace when(appNamespaceRepository.findFirst500ByIdGreaterThanOrderByIdAsc(somePublicNamespaceId)) .thenReturn(Lists.newArrayList(anotherPrivateAppNamespace, yetAnotherPrivateAppNamespace, anotherPublicAppNamespace)); when(appNamespaceRepository.findAllById(appNamespaceIds)).thenReturn(allAppNamespaces); await().untilAsserted(() -> { check(Lists.newArrayList(somePrivateAppNamespace, yetAnotherPrivateAppNamespace, anotherPublicAppNamespace), Lists .newArrayList( appNamespaceServiceWithCache.findByAppIdAndNamespace(someAppId, somePrivateNamespace), appNamespaceServiceWithCache .findByAppIdAndNamespace(someAppId, yetAnotherPrivateNamespace), appNamespaceServiceWithCache .findByAppIdAndNamespace(someAppId, anotherPublicNamespace))); check(Lists.newArrayList(somePrivateAppNamespace, yetAnotherPrivateAppNamespace, anotherPublicAppNamespace), appNamespaceServiceWithCache.findByAppIdAndNamespaces (someAppId, someAppIdNamespaces)); check(Lists.newArrayList(somePublicAppNamespace, anotherPrivateAppNamespace), Lists.newArrayList(appNamespaceServiceWithCache .findByAppIdAndNamespace(somePublicAppId, somePublicNamespace), appNamespaceServiceWithCache .findByAppIdAndNamespace(somePublicAppId, anotherPrivateNamespace))); check(Lists.newArrayList(somePublicAppNamespace, anotherPrivateAppNamespace), appNamespaceServiceWithCache.findByAppIdAndNamespaces(somePublicAppId, somePublicAppIdNamespaces)); check(Lists.newArrayList(somePublicAppNamespace, anotherPublicAppNamespace), Lists.newArrayList( appNamespaceServiceWithCache.findPublicNamespaceByName(somePublicNamespace), appNamespaceServiceWithCache.findPublicNamespaceByName(anotherPublicNamespace))); check(Lists.newArrayList(somePublicAppNamespace, anotherPublicAppNamespace), appNamespaceServiceWithCache.findPublicNamespacesByNames(publicNamespaces)); }); // Update name String somePrivateNamespaceNew = "somePrivateNamespaceNew"; AppNamespace somePrivateAppNamespaceNew = assembleAppNamespace(somePrivateAppNamespace.getId (), somePrivateAppNamespace.getAppId(), somePrivateNamespaceNew, somePrivateAppNamespace .isPublic()); somePrivateAppNamespaceNew.setDataChangeLastModifiedTime(newDateWithDelta (somePrivateAppNamespace.getDataChangeLastModifiedTime(), 1)); // Update appId String someAppIdNew = "someAppIdNew"; AppNamespace yetAnotherPrivateAppNamespaceNew = assembleAppNamespace (yetAnotherPrivateAppNamespace.getId(), someAppIdNew, yetAnotherPrivateAppNamespace .getName(), false); yetAnotherPrivateAppNamespaceNew.setDataChangeLastModifiedTime(newDateWithDelta (yetAnotherPrivateAppNamespace.getDataChangeLastModifiedTime(), 1)); // Update isPublic AppNamespace somePublicAppNamespaceNew = assembleAppNamespace(somePublicAppNamespace .getId(), somePublicAppNamespace.getAppId(), somePublicAppNamespace.getName(), !somePublicAppNamespace.isPublic()); somePublicAppNamespaceNew.setDataChangeLastModifiedTime(newDateWithDelta (somePublicAppNamespace.getDataChangeLastModifiedTime(), 1)); // Delete 1 private and 1 public // should prepare for the case after deleted first, or in 2 rebuild intervals, all will be deleted List<Long> appNamespaceIdsAfterDelete = Lists .newArrayList(somePrivateNamespaceId, somePublicNamespaceId, yetAnotherPrivateNamespaceId); when(appNamespaceRepository.findAllById(appNamespaceIdsAfterDelete)).thenReturn(Lists.newArrayList (somePrivateAppNamespaceNew, yetAnotherPrivateAppNamespaceNew, somePublicAppNamespaceNew)); // do delete when(appNamespaceRepository.findAllById(appNamespaceIds)).thenReturn(Lists.newArrayList (somePrivateAppNamespaceNew, yetAnotherPrivateAppNamespaceNew, somePublicAppNamespaceNew)); await().untilAsserted(() -> { assertNull( appNamespaceServiceWithCache.findByAppIdAndNamespace(someAppId, somePrivateNamespace)); assertNull(appNamespaceServiceWithCache .findByAppIdAndNamespace(someAppId, yetAnotherPrivateNamespace)); assertNull( appNamespaceServiceWithCache.findByAppIdAndNamespace(someAppId, anotherPublicNamespace)); check(Collections.emptyList(), appNamespaceServiceWithCache .findByAppIdAndNamespaces(someAppId, someAppIdNamespaces)); assertEquals(somePublicAppNamespaceNew, appNamespaceServiceWithCache .findByAppIdAndNamespace(somePublicAppId, somePublicNamespace)); check(Lists.newArrayList(somePublicAppNamespaceNew), appNamespaceServiceWithCache.findByAppIdAndNamespaces(somePublicAppId, somePublicAppIdNamespaces)); assertNull(appNamespaceServiceWithCache.findPublicNamespaceByName(somePublicNamespace)); assertNull(appNamespaceServiceWithCache.findPublicNamespaceByName(anotherPublicNamespace)); check(Collections.emptyList(), appNamespaceServiceWithCache.findPublicNamespacesByNames(publicNamespaces)); assertEquals(somePrivateAppNamespaceNew, appNamespaceServiceWithCache.findByAppIdAndNamespace(someAppId, somePrivateNamespaceNew)); check(Lists.newArrayList(somePrivateAppNamespaceNew), appNamespaceServiceWithCache .findByAppIdAndNamespaces(someAppId, Sets.newHashSet(somePrivateNamespaceNew))); assertEquals(yetAnotherPrivateAppNamespaceNew, appNamespaceServiceWithCache .findByAppIdAndNamespace(someAppIdNew, yetAnotherPrivateNamespace)); check(Lists.newArrayList(yetAnotherPrivateAppNamespaceNew), appNamespaceServiceWithCache .findByAppIdAndNamespaces(someAppIdNew, Sets.newHashSet(yetAnotherPrivateNamespace))); }); } private void check(List<AppNamespace> someList, List<AppNamespace> anotherList) { someList.sort(appNamespaceComparator); anotherList.sort(appNamespaceComparator); assertEquals(someList, anotherList); } private Date newDateWithDelta(Date date, int deltaInSeconds) { Calendar calendar = Calendar.getInstance(); calendar.setTime(date); calendar.add(Calendar.SECOND, deltaInSeconds); return calendar.getTime(); } private AppNamespace assembleAppNamespace(long id, String appId, String name, boolean isPublic) { AppNamespace appNamespace = new AppNamespace(); appNamespace.setId(id); appNamespace.setAppId(appId); appNamespace.setName(name); appNamespace.setPublic(isPublic); appNamespace.setDataChangeLastModifiedTime(new Date()); return appNamespace; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.configservice.service; import com.ctrip.framework.apollo.biz.config.BizConfig; import com.ctrip.framework.apollo.biz.repository.AppNamespaceRepository; import com.ctrip.framework.apollo.common.entity.AppNamespace; import com.google.common.collect.Lists; import com.google.common.collect.Sets; import org.awaitility.Awaitility; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.junit.MockitoJUnitRunner; import java.util.Calendar; import java.util.Collections; import java.util.Comparator; import java.util.Date; import java.util.List; import java.util.Set; import java.util.concurrent.TimeUnit; import static org.awaitility.Awaitility.await; import static org.junit.Assert.*; import static org.mockito.Mockito.when; /** * @author Jason Song([email protected]) */ @RunWith(MockitoJUnitRunner.Silent.class) public class AppNamespaceServiceWithCacheTest { private AppNamespaceServiceWithCache appNamespaceServiceWithCache; @Mock private AppNamespaceRepository appNamespaceRepository; @Mock private BizConfig bizConfig; private int scanInterval; private TimeUnit scanIntervalTimeUnit; private Comparator<AppNamespace> appNamespaceComparator = (o1, o2) -> (int) (o1.getId() - o2.getId()); @Before public void setUp() throws Exception { appNamespaceServiceWithCache = new AppNamespaceServiceWithCache(appNamespaceRepository, bizConfig); scanInterval = 50; scanIntervalTimeUnit = TimeUnit.MILLISECONDS; when(bizConfig.appNamespaceCacheRebuildInterval()).thenReturn(scanInterval); when(bizConfig.appNamespaceCacheRebuildIntervalTimeUnit()).thenReturn(scanIntervalTimeUnit); when(bizConfig.appNamespaceCacheScanInterval()).thenReturn(scanInterval); when(bizConfig.appNamespaceCacheScanIntervalTimeUnit()).thenReturn(scanIntervalTimeUnit); Awaitility.reset(); Awaitility.setDefaultTimeout(scanInterval * 100, scanIntervalTimeUnit); Awaitility.setDefaultPollInterval(scanInterval, scanIntervalTimeUnit); } @Test public void testAppNamespace() throws Exception { String someAppId = "someAppId"; String somePrivateNamespace = "somePrivateNamespace"; String somePrivateNamespaceWithIncorrectCase = somePrivateNamespace.toUpperCase(); long somePrivateNamespaceId = 1; String yetAnotherPrivateNamespace = "anotherPrivateNamespace"; long yetAnotherPrivateNamespaceId = 4; String anotherPublicNamespace = "anotherPublicNamespace"; long anotherPublicNamespaceId = 5; String somePublicAppId = "somePublicAppId"; String somePublicNamespace = "somePublicNamespace"; String somePublicNamespaceWithIncorrectCase = somePublicNamespace.toUpperCase(); long somePublicNamespaceId = 2; String anotherPrivateNamespace = "anotherPrivateNamespace"; long anotherPrivateNamespaceId = 3; AppNamespace somePrivateAppNamespace = assembleAppNamespace(somePrivateNamespaceId, someAppId, somePrivateNamespace, false); AppNamespace somePublicAppNamespace = assembleAppNamespace(somePublicNamespaceId, somePublicAppId, somePublicNamespace, true); AppNamespace anotherPrivateAppNamespace = assembleAppNamespace(anotherPrivateNamespaceId, somePublicAppId, anotherPrivateNamespace, false); AppNamespace yetAnotherPrivateAppNamespace = assembleAppNamespace (yetAnotherPrivateNamespaceId, someAppId, yetAnotherPrivateNamespace, false); AppNamespace anotherPublicAppNamespace = assembleAppNamespace(anotherPublicNamespaceId, someAppId, anotherPublicNamespace, true); Set<String> someAppIdNamespaces = Sets.newHashSet (somePrivateNamespace, yetAnotherPrivateNamespace, anotherPublicNamespace); Set<String> someAppIdNamespacesWithIncorrectCase = Sets.newHashSet (somePrivateNamespaceWithIncorrectCase, yetAnotherPrivateNamespace, anotherPublicNamespace); Set<String> somePublicAppIdNamespaces = Sets.newHashSet(somePublicNamespace, anotherPrivateNamespace); Set<String> publicNamespaces = Sets.newHashSet(somePublicNamespace, anotherPublicNamespace); Set<String> publicNamespacesWithIncorrectCase = Sets.newHashSet(somePublicNamespaceWithIncorrectCase, anotherPublicNamespace); List<Long> appNamespaceIds = Lists.newArrayList(somePrivateNamespaceId, somePublicNamespaceId, anotherPrivateNamespaceId, yetAnotherPrivateNamespaceId, anotherPublicNamespaceId); List<AppNamespace> allAppNamespaces = Lists.newArrayList(somePrivateAppNamespace, somePublicAppNamespace, anotherPrivateAppNamespace, yetAnotherPrivateAppNamespace, anotherPublicAppNamespace); // Test init appNamespaceServiceWithCache.afterPropertiesSet(); // Should have no record now assertNull(appNamespaceServiceWithCache.findByAppIdAndNamespace(someAppId, somePrivateNamespace)); assertNull(appNamespaceServiceWithCache.findByAppIdAndNamespace(someAppId, somePrivateNamespaceWithIncorrectCase)); assertNull(appNamespaceServiceWithCache.findByAppIdAndNamespace(someAppId, yetAnotherPrivateNamespace)); assertNull(appNamespaceServiceWithCache.findByAppIdAndNamespace(someAppId, anotherPublicNamespace)); assertTrue(appNamespaceServiceWithCache.findByAppIdAndNamespaces(someAppId, someAppIdNamespaces).isEmpty()); assertTrue(appNamespaceServiceWithCache.findByAppIdAndNamespaces(someAppId, someAppIdNamespacesWithIncorrectCase) .isEmpty()); assertNull(appNamespaceServiceWithCache.findByAppIdAndNamespace(somePublicAppId, somePublicNamespace)); assertNull(appNamespaceServiceWithCache.findByAppIdAndNamespace(somePublicAppId, somePublicNamespaceWithIncorrectCase)); assertNull(appNamespaceServiceWithCache.findByAppIdAndNamespace(somePublicAppId, anotherPrivateNamespace)); assertTrue(appNamespaceServiceWithCache.findByAppIdAndNamespaces(somePublicAppId, somePublicAppIdNamespaces).isEmpty()); assertNull(appNamespaceServiceWithCache.findPublicNamespaceByName(somePublicNamespace)); assertNull(appNamespaceServiceWithCache.findPublicNamespaceByName(somePublicNamespaceWithIncorrectCase)); assertNull(appNamespaceServiceWithCache.findPublicNamespaceByName(anotherPublicNamespace)); assertTrue(appNamespaceServiceWithCache.findPublicNamespacesByNames(publicNamespaces).isEmpty()); assertTrue(appNamespaceServiceWithCache.findPublicNamespacesByNames(publicNamespacesWithIncorrectCase).isEmpty()); // Add 1 private namespace and 1 public namespace when(appNamespaceRepository.findFirst500ByIdGreaterThanOrderByIdAsc(0)).thenReturn(Lists .newArrayList(somePrivateAppNamespace, somePublicAppNamespace)); when(appNamespaceRepository.findAllById(Lists.newArrayList(somePrivateNamespaceId, somePublicNamespaceId))).thenReturn(Lists.newArrayList(somePrivateAppNamespace, somePublicAppNamespace)); await().untilAsserted(() -> { assertEquals(somePrivateAppNamespace, appNamespaceServiceWithCache.findByAppIdAndNamespace(someAppId, somePrivateNamespace)); assertEquals(somePrivateAppNamespace, appNamespaceServiceWithCache .findByAppIdAndNamespace(someAppId, somePrivateNamespaceWithIncorrectCase)); check(Lists.newArrayList(somePrivateAppNamespace), appNamespaceServiceWithCache .findByAppIdAndNamespaces(someAppId, someAppIdNamespaces)); check(Lists.newArrayList(somePrivateAppNamespace), appNamespaceServiceWithCache .findByAppIdAndNamespaces(someAppId, someAppIdNamespacesWithIncorrectCase)); assertEquals(somePublicAppNamespace, appNamespaceServiceWithCache.findByAppIdAndNamespace(somePublicAppId, somePublicNamespace)); assertEquals(somePublicAppNamespace, appNamespaceServiceWithCache.findByAppIdAndNamespace(somePublicAppId, somePublicNamespaceWithIncorrectCase)); check(Lists.newArrayList(somePublicAppNamespace), appNamespaceServiceWithCache .findByAppIdAndNamespaces(somePublicAppId, somePublicAppIdNamespaces)); assertEquals(somePublicAppNamespace, appNamespaceServiceWithCache.findPublicNamespaceByName(somePublicNamespace)); assertEquals(somePublicAppNamespace, appNamespaceServiceWithCache.findPublicNamespaceByName (somePublicNamespaceWithIncorrectCase)); check(Lists.newArrayList(somePublicAppNamespace), appNamespaceServiceWithCache.findPublicNamespacesByNames (publicNamespaces)); check(Lists.newArrayList(somePublicAppNamespace), appNamespaceServiceWithCache.findPublicNamespacesByNames (publicNamespacesWithIncorrectCase)); }); // Add 2 private namespaces and 1 public namespace when(appNamespaceRepository.findFirst500ByIdGreaterThanOrderByIdAsc(somePublicNamespaceId)) .thenReturn(Lists.newArrayList(anotherPrivateAppNamespace, yetAnotherPrivateAppNamespace, anotherPublicAppNamespace)); when(appNamespaceRepository.findAllById(appNamespaceIds)).thenReturn(allAppNamespaces); await().untilAsserted(() -> { check(Lists.newArrayList(somePrivateAppNamespace, yetAnotherPrivateAppNamespace, anotherPublicAppNamespace), Lists .newArrayList( appNamespaceServiceWithCache.findByAppIdAndNamespace(someAppId, somePrivateNamespace), appNamespaceServiceWithCache .findByAppIdAndNamespace(someAppId, yetAnotherPrivateNamespace), appNamespaceServiceWithCache .findByAppIdAndNamespace(someAppId, anotherPublicNamespace))); check(Lists.newArrayList(somePrivateAppNamespace, yetAnotherPrivateAppNamespace, anotherPublicAppNamespace), appNamespaceServiceWithCache.findByAppIdAndNamespaces (someAppId, someAppIdNamespaces)); check(Lists.newArrayList(somePublicAppNamespace, anotherPrivateAppNamespace), Lists.newArrayList(appNamespaceServiceWithCache .findByAppIdAndNamespace(somePublicAppId, somePublicNamespace), appNamespaceServiceWithCache .findByAppIdAndNamespace(somePublicAppId, anotherPrivateNamespace))); check(Lists.newArrayList(somePublicAppNamespace, anotherPrivateAppNamespace), appNamespaceServiceWithCache.findByAppIdAndNamespaces(somePublicAppId, somePublicAppIdNamespaces)); check(Lists.newArrayList(somePublicAppNamespace, anotherPublicAppNamespace), Lists.newArrayList( appNamespaceServiceWithCache.findPublicNamespaceByName(somePublicNamespace), appNamespaceServiceWithCache.findPublicNamespaceByName(anotherPublicNamespace))); check(Lists.newArrayList(somePublicAppNamespace, anotherPublicAppNamespace), appNamespaceServiceWithCache.findPublicNamespacesByNames(publicNamespaces)); }); // Update name String somePrivateNamespaceNew = "somePrivateNamespaceNew"; AppNamespace somePrivateAppNamespaceNew = assembleAppNamespace(somePrivateAppNamespace.getId (), somePrivateAppNamespace.getAppId(), somePrivateNamespaceNew, somePrivateAppNamespace .isPublic()); somePrivateAppNamespaceNew.setDataChangeLastModifiedTime(newDateWithDelta (somePrivateAppNamespace.getDataChangeLastModifiedTime(), 1)); // Update appId String someAppIdNew = "someAppIdNew"; AppNamespace yetAnotherPrivateAppNamespaceNew = assembleAppNamespace (yetAnotherPrivateAppNamespace.getId(), someAppIdNew, yetAnotherPrivateAppNamespace .getName(), false); yetAnotherPrivateAppNamespaceNew.setDataChangeLastModifiedTime(newDateWithDelta (yetAnotherPrivateAppNamespace.getDataChangeLastModifiedTime(), 1)); // Update isPublic AppNamespace somePublicAppNamespaceNew = assembleAppNamespace(somePublicAppNamespace .getId(), somePublicAppNamespace.getAppId(), somePublicAppNamespace.getName(), !somePublicAppNamespace.isPublic()); somePublicAppNamespaceNew.setDataChangeLastModifiedTime(newDateWithDelta (somePublicAppNamespace.getDataChangeLastModifiedTime(), 1)); // Delete 1 private and 1 public // should prepare for the case after deleted first, or in 2 rebuild intervals, all will be deleted List<Long> appNamespaceIdsAfterDelete = Lists .newArrayList(somePrivateNamespaceId, somePublicNamespaceId, yetAnotherPrivateNamespaceId); when(appNamespaceRepository.findAllById(appNamespaceIdsAfterDelete)).thenReturn(Lists.newArrayList (somePrivateAppNamespaceNew, yetAnotherPrivateAppNamespaceNew, somePublicAppNamespaceNew)); // do delete when(appNamespaceRepository.findAllById(appNamespaceIds)).thenReturn(Lists.newArrayList (somePrivateAppNamespaceNew, yetAnotherPrivateAppNamespaceNew, somePublicAppNamespaceNew)); await().untilAsserted(() -> { assertNull( appNamespaceServiceWithCache.findByAppIdAndNamespace(someAppId, somePrivateNamespace)); assertNull(appNamespaceServiceWithCache .findByAppIdAndNamespace(someAppId, yetAnotherPrivateNamespace)); assertNull( appNamespaceServiceWithCache.findByAppIdAndNamespace(someAppId, anotherPublicNamespace)); check(Collections.emptyList(), appNamespaceServiceWithCache .findByAppIdAndNamespaces(someAppId, someAppIdNamespaces)); assertEquals(somePublicAppNamespaceNew, appNamespaceServiceWithCache .findByAppIdAndNamespace(somePublicAppId, somePublicNamespace)); check(Lists.newArrayList(somePublicAppNamespaceNew), appNamespaceServiceWithCache.findByAppIdAndNamespaces(somePublicAppId, somePublicAppIdNamespaces)); assertNull(appNamespaceServiceWithCache.findPublicNamespaceByName(somePublicNamespace)); assertNull(appNamespaceServiceWithCache.findPublicNamespaceByName(anotherPublicNamespace)); check(Collections.emptyList(), appNamespaceServiceWithCache.findPublicNamespacesByNames(publicNamespaces)); assertEquals(somePrivateAppNamespaceNew, appNamespaceServiceWithCache.findByAppIdAndNamespace(someAppId, somePrivateNamespaceNew)); check(Lists.newArrayList(somePrivateAppNamespaceNew), appNamespaceServiceWithCache .findByAppIdAndNamespaces(someAppId, Sets.newHashSet(somePrivateNamespaceNew))); assertEquals(yetAnotherPrivateAppNamespaceNew, appNamespaceServiceWithCache .findByAppIdAndNamespace(someAppIdNew, yetAnotherPrivateNamespace)); check(Lists.newArrayList(yetAnotherPrivateAppNamespaceNew), appNamespaceServiceWithCache .findByAppIdAndNamespaces(someAppIdNew, Sets.newHashSet(yetAnotherPrivateNamespace))); }); } private void check(List<AppNamespace> someList, List<AppNamespace> anotherList) { someList.sort(appNamespaceComparator); anotherList.sort(appNamespaceComparator); assertEquals(someList, anotherList); } private Date newDateWithDelta(Date date, int deltaInSeconds) { Calendar calendar = Calendar.getInstance(); calendar.setTime(date); calendar.add(Calendar.SECOND, deltaInSeconds); return calendar.getTime(); } private AppNamespace assembleAppNamespace(long id, String appId, String name, boolean isPublic) { AppNamespace appNamespace = new AppNamespace(); appNamespace.setId(id); appNamespace.setAppId(appId); appNamespace.setName(name); appNamespace.setPublic(isPublic); appNamespace.setDataChangeLastModifiedTime(new Date()); return appNamespace; } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-core/src/test/java/com/ctrip/framework/apollo/core/signature/HmacSha1UtilsTest.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.core.signature; import static org.junit.Assert.assertEquals; import org.junit.Test; /** * @author nisiyong */ public class HmacSha1UtilsTest { @Test public void testSignString() { String stringToSign = "1576478257344\n/configs/100004458/default/application?ip=10.0.0.1"; String accessKeySecret = "df23df3f59884980844ff3dada30fa97"; String actualSignature = HmacSha1Utils.signString(stringToSign, accessKeySecret); String expectedSignature = "EoKyziXvKqzHgwx+ijDJwgVTDgE="; assertEquals(expectedSignature, actualSignature); } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.core.signature; import static org.junit.Assert.assertEquals; import org.junit.Test; /** * @author nisiyong */ public class HmacSha1UtilsTest { @Test public void testSignString() { String stringToSign = "1576478257344\n/configs/100004458/default/application?ip=10.0.0.1"; String accessKeySecret = "df23df3f59884980844ff3dada30fa97"; String actualSignature = HmacSha1Utils.signString(stringToSign, accessKeySecret); String expectedSignature = "EoKyziXvKqzHgwx+ijDJwgVTDgE="; assertEquals(expectedSignature, actualSignature); } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/UserService.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.spi; import com.ctrip.framework.apollo.portal.entity.bo.UserInfo; import java.util.List; /** * @author Jason Song([email protected]) */ public interface UserService { List<UserInfo> searchUsers(String keyword, int offset, int limit); UserInfo findByUserId(String userId); List<UserInfo> findByUserIds(List<String> userIds); }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.spi; import com.ctrip.framework.apollo.portal.entity.bo.UserInfo; import java.util.List; /** * @author Jason Song([email protected]) */ public interface UserService { List<UserInfo> searchUsers(String keyword, int offset, int limit); UserInfo findByUserId(String userId); List<UserInfo> findByUserIds(List<String> userIds); }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-core/src/test/java/com/ctrip/framework/apollo/tracer/internals/MockMessageProducerManager.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.tracer.internals; import com.ctrip.framework.apollo.tracer.spi.MessageProducer; import com.ctrip.framework.apollo.tracer.spi.MessageProducerManager; /** * @author Jason Song([email protected]) */ public class MockMessageProducerManager implements MessageProducerManager { private static MessageProducer s_producer; @Override public MessageProducer getProducer() { return s_producer; } public static void setProducer(MessageProducer producer) { s_producer = producer; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.tracer.internals; import com.ctrip.framework.apollo.tracer.spi.MessageProducer; import com.ctrip.framework.apollo.tracer.spi.MessageProducerManager; /** * @author Jason Song([email protected]) */ public class MockMessageProducerManager implements MessageProducerManager { private static MessageProducer s_producer; @Override public MessageProducer getProducer() { return s_producer; } public static void setProducer(MessageProducer producer) { s_producer = producer; } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-adminservice/src/test/java/com/ctrip/framework/apollo/adminservice/controller/InstanceConfigControllerTest.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.adminservice.controller; import com.ctrip.framework.apollo.biz.entity.Instance; import com.ctrip.framework.apollo.biz.entity.InstanceConfig; import com.ctrip.framework.apollo.biz.entity.Release; import com.ctrip.framework.apollo.biz.service.InstanceService; import com.ctrip.framework.apollo.biz.service.ReleaseService; import com.ctrip.framework.apollo.common.dto.InstanceDTO; import com.ctrip.framework.apollo.common.dto.PageDTO; import com.ctrip.framework.apollo.common.exception.NotFoundException; import com.google.common.base.Joiner; import com.google.common.collect.Lists; import com.google.common.collect.Sets; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.junit.MockitoJUnitRunner; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Pageable; import java.util.Collections; import java.util.Date; import java.util.List; import java.util.Set; import static org.junit.Assert.assertEquals; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.eq; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; /** * @author Jason Song([email protected]) */ @RunWith(MockitoJUnitRunner.class) public class InstanceConfigControllerTest { private InstanceConfigController instanceConfigController; @Mock private ReleaseService releaseService; @Mock private InstanceService instanceService; private Pageable pageable; @Before public void setUp() throws Exception { instanceConfigController = new InstanceConfigController(releaseService, instanceService); pageable = PageRequest.of(0, 2); } @Test public void getByRelease() throws Exception { long someReleaseId = 1; long someInstanceId = 1; long anotherInstanceId = 2; String someReleaseKey = "someKey"; Release someRelease = new Release(); someRelease.setReleaseKey(someReleaseKey); String someAppId = "someAppId"; String anotherAppId = "anotherAppId"; String someCluster = "someCluster"; String someDataCenter = "someDC"; String someConfigAppId = "someConfigAppId"; String someConfigNamespace = "someNamespace"; String someIp = "someIp"; Date someReleaseDeliveryTime = new Date(); Date anotherReleaseDeliveryTime = new Date(); when(releaseService.findOne(someReleaseId)).thenReturn(someRelease); InstanceConfig someInstanceConfig = assembleInstanceConfig(someInstanceId, someConfigAppId, someConfigNamespace, someReleaseKey, someReleaseDeliveryTime); InstanceConfig anotherInstanceConfig = assembleInstanceConfig(anotherInstanceId, someConfigAppId, someConfigNamespace, someReleaseKey, anotherReleaseDeliveryTime); List<InstanceConfig> instanceConfigs = Lists.newArrayList(someInstanceConfig, anotherInstanceConfig); Page<InstanceConfig> instanceConfigPage = new PageImpl<>(instanceConfigs, pageable, instanceConfigs.size()); when(instanceService.findActiveInstanceConfigsByReleaseKey(someReleaseKey, pageable)) .thenReturn(instanceConfigPage); Instance someInstance = assembleInstance(someInstanceId, someAppId, someCluster, someDataCenter, someIp); Instance anotherInstance = assembleInstance(anotherInstanceId, anotherAppId, someCluster, someDataCenter, someIp); List<Instance> instances = Lists.newArrayList(someInstance, anotherInstance); Set<Long> instanceIds = Sets.newHashSet(someInstanceId, anotherInstanceId); when(instanceService.findInstancesByIds(instanceIds)) .thenReturn(instances); PageDTO<InstanceDTO> result = instanceConfigController.getByRelease(someReleaseId, pageable); assertEquals(2, result.getContent().size()); InstanceDTO someInstanceDto = null; InstanceDTO anotherInstanceDto = null; for (InstanceDTO instanceDTO : result.getContent()) { if (instanceDTO.getId() == someInstanceId) { someInstanceDto = instanceDTO; } else if (instanceDTO.getId() == anotherInstanceId) { anotherInstanceDto = instanceDTO; } } verifyInstance(someInstance, someInstanceDto); verifyInstance(anotherInstance, anotherInstanceDto); assertEquals(1, someInstanceDto.getConfigs().size()); assertEquals(someReleaseDeliveryTime, someInstanceDto.getConfigs().get(0).getReleaseDeliveryTime()); assertEquals(1, anotherInstanceDto.getConfigs().size()); assertEquals(anotherReleaseDeliveryTime, anotherInstanceDto.getConfigs().get(0).getReleaseDeliveryTime()); } @Test(expected = NotFoundException.class) public void testGetByReleaseWhenReleaseIsNotFound() throws Exception { long someReleaseIdNotExists = 1; when(releaseService.findOne(someReleaseIdNotExists)).thenReturn(null); instanceConfigController.getByRelease(someReleaseIdNotExists, pageable); } @Test public void testGetByReleasesNotIn() throws Exception { String someConfigAppId = "someConfigAppId"; String someConfigClusterName = "someConfigClusterName"; String someConfigNamespaceName = "someConfigNamespaceName"; long someReleaseId = 1; long anotherReleaseId = 2; String releaseIds = Joiner.on(",").join(someReleaseId, anotherReleaseId); Date someReleaseDeliveryTime = new Date(); Date anotherReleaseDeliveryTime = new Date(); Release someRelease = mock(Release.class); Release anotherRelease = mock(Release.class); String someReleaseKey = "someReleaseKey"; String anotherReleaseKey = "anotherReleaseKey"; when(someRelease.getReleaseKey()).thenReturn(someReleaseKey); when(anotherRelease.getReleaseKey()).thenReturn(anotherReleaseKey); when(releaseService.findByReleaseIds(Sets.newHashSet(someReleaseId, anotherReleaseId))) .thenReturn(Lists.newArrayList(someRelease, anotherRelease)); long someInstanceId = 1; long anotherInstanceId = 2; String someInstanceConfigReleaseKey = "someInstanceConfigReleaseKey"; String anotherInstanceConfigReleaseKey = "anotherInstanceConfigReleaseKey"; InstanceConfig someInstanceConfig = mock(InstanceConfig.class); InstanceConfig anotherInstanceConfig = mock(InstanceConfig.class); when(someInstanceConfig.getInstanceId()).thenReturn(someInstanceId); when(anotherInstanceConfig.getInstanceId()).thenReturn(anotherInstanceId); when(someInstanceConfig.getReleaseKey()).thenReturn(someInstanceConfigReleaseKey); when(anotherInstanceConfig.getReleaseKey()).thenReturn(anotherInstanceConfigReleaseKey); when(someInstanceConfig.getReleaseDeliveryTime()).thenReturn(someReleaseDeliveryTime); when(anotherInstanceConfig.getReleaseDeliveryTime()).thenReturn(anotherReleaseDeliveryTime); when(instanceService.findInstanceConfigsByNamespaceWithReleaseKeysNotIn(someConfigAppId, someConfigClusterName, someConfigNamespaceName, Sets.newHashSet(someReleaseKey, anotherReleaseKey))).thenReturn(Lists.newArrayList(someInstanceConfig, anotherInstanceConfig)); String someInstanceAppId = "someInstanceAppId"; String someInstanceClusterName = "someInstanceClusterName"; String someInstanceNamespaceName = "someInstanceNamespaceName"; String someIp = "someIp"; String anotherIp = "anotherIp"; Instance someInstance = assembleInstance(someInstanceId, someInstanceAppId, someInstanceClusterName, someInstanceNamespaceName, someIp); Instance anotherInstance = assembleInstance(anotherInstanceId, someInstanceAppId, someInstanceClusterName, someInstanceNamespaceName, anotherIp); when(instanceService.findInstancesByIds(Sets.newHashSet(someInstanceId, anotherInstanceId))) .thenReturn(Lists.newArrayList(someInstance, anotherInstance)); Release someInstanceConfigRelease = new Release(); someInstanceConfigRelease.setReleaseKey(someInstanceConfigReleaseKey); Release anotherInstanceConfigRelease = new Release(); anotherInstanceConfigRelease.setReleaseKey(anotherInstanceConfigReleaseKey); when(releaseService.findByReleaseKeys(Sets.newHashSet(someInstanceConfigReleaseKey, anotherInstanceConfigReleaseKey))).thenReturn(Lists.newArrayList(someInstanceConfigRelease, anotherInstanceConfigRelease)); List<InstanceDTO> result = instanceConfigController.getByReleasesNotIn(someConfigAppId, someConfigClusterName, someConfigNamespaceName, releaseIds); assertEquals(2, result.size()); InstanceDTO someInstanceDto = null; InstanceDTO anotherInstanceDto = null; for (InstanceDTO instanceDTO : result) { if (instanceDTO.getId() == someInstanceId) { someInstanceDto = instanceDTO; } else if (instanceDTO.getId() == anotherInstanceId) { anotherInstanceDto = instanceDTO; } } verifyInstance(someInstance, someInstanceDto); verifyInstance(anotherInstance, anotherInstanceDto); assertEquals(someInstanceConfigReleaseKey, someInstanceDto.getConfigs().get(0).getRelease() .getReleaseKey()); assertEquals(anotherInstanceConfigReleaseKey, anotherInstanceDto.getConfigs().get(0) .getRelease() .getReleaseKey()); assertEquals(someReleaseDeliveryTime, someInstanceDto.getConfigs().get(0).getReleaseDeliveryTime()); assertEquals(anotherReleaseDeliveryTime, anotherInstanceDto.getConfigs().get(0) .getReleaseDeliveryTime()); } @Test public void testGetInstancesByNamespace() throws Exception { String someAppId = "someAppId"; String someClusterName = "someClusterName"; String someNamespaceName = "someNamespaceName"; String someIp = "someIp"; long someInstanceId = 1; long anotherInstanceId = 2; Instance someInstance = assembleInstance(someInstanceId, someAppId, someClusterName, someNamespaceName, someIp); Instance anotherInstance = assembleInstance(anotherInstanceId, someAppId, someClusterName, someNamespaceName, someIp); Page<Instance> instances = new PageImpl<>(Lists.newArrayList(someInstance, anotherInstance), pageable, 2); when(instanceService.findInstancesByNamespace(someAppId, someClusterName, someNamespaceName, pageable)).thenReturn(instances); PageDTO<InstanceDTO> result = instanceConfigController.getInstancesByNamespace(someAppId, someClusterName, someNamespaceName, null, pageable); assertEquals(2, result.getContent().size()); InstanceDTO someInstanceDto = null; InstanceDTO anotherInstanceDto = null; for (InstanceDTO instanceDTO : result.getContent()) { if (instanceDTO.getId() == someInstanceId) { someInstanceDto = instanceDTO; } else if (instanceDTO.getId() == anotherInstanceId) { anotherInstanceDto = instanceDTO; } } verifyInstance(someInstance, someInstanceDto); verifyInstance(anotherInstance, anotherInstanceDto); } @Test public void testGetInstancesByNamespaceAndInstanceAppId() throws Exception { String someInstanceAppId = "someInstanceAppId"; String someAppId = "someAppId"; String someClusterName = "someClusterName"; String someNamespaceName = "someNamespaceName"; String someIp = "someIp"; long someInstanceId = 1; long anotherInstanceId = 2; Instance someInstance = assembleInstance(someInstanceId, someAppId, someClusterName, someNamespaceName, someIp); Instance anotherInstance = assembleInstance(anotherInstanceId, someAppId, someClusterName, someNamespaceName, someIp); Page<Instance> instances = new PageImpl<>(Lists.newArrayList(someInstance, anotherInstance), pageable, 2); when(instanceService.findInstancesByNamespaceAndInstanceAppId(someInstanceAppId, someAppId, someClusterName, someNamespaceName, pageable)).thenReturn(instances); PageDTO<InstanceDTO> result = instanceConfigController.getInstancesByNamespace(someAppId, someClusterName, someNamespaceName, someInstanceAppId, pageable); assertEquals(2, result.getContent().size()); InstanceDTO someInstanceDto = null; InstanceDTO anotherInstanceDto = null; for (InstanceDTO instanceDTO : result.getContent()) { if (instanceDTO.getId() == someInstanceId) { someInstanceDto = instanceDTO; } else if (instanceDTO.getId() == anotherInstanceId) { anotherInstanceDto = instanceDTO; } } verifyInstance(someInstance, someInstanceDto); verifyInstance(anotherInstance, anotherInstanceDto); } @Test public void testGetInstancesCountByNamespace() throws Exception { String someAppId = "someAppId"; String someClusterName = "someClusterName"; String someNamespaceName = "someNamespaceName"; Page<Instance> instances = new PageImpl<>(Collections.emptyList(), pageable, 2); when(instanceService.findInstancesByNamespace(eq(someAppId), eq(someClusterName), eq(someNamespaceName), any(Pageable.class))).thenReturn(instances); long result = instanceConfigController.getInstancesCountByNamespace(someAppId, someClusterName, someNamespaceName); assertEquals(2, result); } private void verifyInstance(Instance instance, InstanceDTO instanceDTO) { assertEquals(instance.getId(), instanceDTO.getId()); assertEquals(instance.getAppId(), instanceDTO.getAppId()); assertEquals(instance.getClusterName(), instanceDTO.getClusterName()); assertEquals(instance.getDataCenter(), instanceDTO.getDataCenter()); assertEquals(instance.getIp(), instanceDTO.getIp()); assertEquals(instance.getDataChangeCreatedTime(), instanceDTO.getDataChangeCreatedTime()); } private Instance assembleInstance(long instanceId, String appId, String clusterName, String dataCenter, String ip) { Instance instance = new Instance(); instance.setId(instanceId); instance.setAppId(appId); instance.setIp(ip); instance.setClusterName(clusterName); instance.setDataCenter(dataCenter); instance.setDataChangeCreatedTime(new Date()); return instance; } private InstanceConfig assembleInstanceConfig(long instanceId, String configAppId, String configNamespaceName, String releaseKey, Date releaseDeliveryTime) { InstanceConfig instanceConfig = new InstanceConfig(); instanceConfig.setInstanceId(instanceId); instanceConfig.setConfigAppId(configAppId); instanceConfig.setConfigNamespaceName(configNamespaceName); instanceConfig.setReleaseKey(releaseKey); instanceConfig.setDataChangeLastModifiedTime(new Date()); instanceConfig.setReleaseDeliveryTime(releaseDeliveryTime); return instanceConfig; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.adminservice.controller; import com.ctrip.framework.apollo.biz.entity.Instance; import com.ctrip.framework.apollo.biz.entity.InstanceConfig; import com.ctrip.framework.apollo.biz.entity.Release; import com.ctrip.framework.apollo.biz.service.InstanceService; import com.ctrip.framework.apollo.biz.service.ReleaseService; import com.ctrip.framework.apollo.common.dto.InstanceDTO; import com.ctrip.framework.apollo.common.dto.PageDTO; import com.ctrip.framework.apollo.common.exception.NotFoundException; import com.google.common.base.Joiner; import com.google.common.collect.Lists; import com.google.common.collect.Sets; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.junit.MockitoJUnitRunner; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Pageable; import java.util.Collections; import java.util.Date; import java.util.List; import java.util.Set; import static org.junit.Assert.assertEquals; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.eq; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; /** * @author Jason Song([email protected]) */ @RunWith(MockitoJUnitRunner.class) public class InstanceConfigControllerTest { private InstanceConfigController instanceConfigController; @Mock private ReleaseService releaseService; @Mock private InstanceService instanceService; private Pageable pageable; @Before public void setUp() throws Exception { instanceConfigController = new InstanceConfigController(releaseService, instanceService); pageable = PageRequest.of(0, 2); } @Test public void getByRelease() throws Exception { long someReleaseId = 1; long someInstanceId = 1; long anotherInstanceId = 2; String someReleaseKey = "someKey"; Release someRelease = new Release(); someRelease.setReleaseKey(someReleaseKey); String someAppId = "someAppId"; String anotherAppId = "anotherAppId"; String someCluster = "someCluster"; String someDataCenter = "someDC"; String someConfigAppId = "someConfigAppId"; String someConfigNamespace = "someNamespace"; String someIp = "someIp"; Date someReleaseDeliveryTime = new Date(); Date anotherReleaseDeliveryTime = new Date(); when(releaseService.findOne(someReleaseId)).thenReturn(someRelease); InstanceConfig someInstanceConfig = assembleInstanceConfig(someInstanceId, someConfigAppId, someConfigNamespace, someReleaseKey, someReleaseDeliveryTime); InstanceConfig anotherInstanceConfig = assembleInstanceConfig(anotherInstanceId, someConfigAppId, someConfigNamespace, someReleaseKey, anotherReleaseDeliveryTime); List<InstanceConfig> instanceConfigs = Lists.newArrayList(someInstanceConfig, anotherInstanceConfig); Page<InstanceConfig> instanceConfigPage = new PageImpl<>(instanceConfigs, pageable, instanceConfigs.size()); when(instanceService.findActiveInstanceConfigsByReleaseKey(someReleaseKey, pageable)) .thenReturn(instanceConfigPage); Instance someInstance = assembleInstance(someInstanceId, someAppId, someCluster, someDataCenter, someIp); Instance anotherInstance = assembleInstance(anotherInstanceId, anotherAppId, someCluster, someDataCenter, someIp); List<Instance> instances = Lists.newArrayList(someInstance, anotherInstance); Set<Long> instanceIds = Sets.newHashSet(someInstanceId, anotherInstanceId); when(instanceService.findInstancesByIds(instanceIds)) .thenReturn(instances); PageDTO<InstanceDTO> result = instanceConfigController.getByRelease(someReleaseId, pageable); assertEquals(2, result.getContent().size()); InstanceDTO someInstanceDto = null; InstanceDTO anotherInstanceDto = null; for (InstanceDTO instanceDTO : result.getContent()) { if (instanceDTO.getId() == someInstanceId) { someInstanceDto = instanceDTO; } else if (instanceDTO.getId() == anotherInstanceId) { anotherInstanceDto = instanceDTO; } } verifyInstance(someInstance, someInstanceDto); verifyInstance(anotherInstance, anotherInstanceDto); assertEquals(1, someInstanceDto.getConfigs().size()); assertEquals(someReleaseDeliveryTime, someInstanceDto.getConfigs().get(0).getReleaseDeliveryTime()); assertEquals(1, anotherInstanceDto.getConfigs().size()); assertEquals(anotherReleaseDeliveryTime, anotherInstanceDto.getConfigs().get(0).getReleaseDeliveryTime()); } @Test(expected = NotFoundException.class) public void testGetByReleaseWhenReleaseIsNotFound() throws Exception { long someReleaseIdNotExists = 1; when(releaseService.findOne(someReleaseIdNotExists)).thenReturn(null); instanceConfigController.getByRelease(someReleaseIdNotExists, pageable); } @Test public void testGetByReleasesNotIn() throws Exception { String someConfigAppId = "someConfigAppId"; String someConfigClusterName = "someConfigClusterName"; String someConfigNamespaceName = "someConfigNamespaceName"; long someReleaseId = 1; long anotherReleaseId = 2; String releaseIds = Joiner.on(",").join(someReleaseId, anotherReleaseId); Date someReleaseDeliveryTime = new Date(); Date anotherReleaseDeliveryTime = new Date(); Release someRelease = mock(Release.class); Release anotherRelease = mock(Release.class); String someReleaseKey = "someReleaseKey"; String anotherReleaseKey = "anotherReleaseKey"; when(someRelease.getReleaseKey()).thenReturn(someReleaseKey); when(anotherRelease.getReleaseKey()).thenReturn(anotherReleaseKey); when(releaseService.findByReleaseIds(Sets.newHashSet(someReleaseId, anotherReleaseId))) .thenReturn(Lists.newArrayList(someRelease, anotherRelease)); long someInstanceId = 1; long anotherInstanceId = 2; String someInstanceConfigReleaseKey = "someInstanceConfigReleaseKey"; String anotherInstanceConfigReleaseKey = "anotherInstanceConfigReleaseKey"; InstanceConfig someInstanceConfig = mock(InstanceConfig.class); InstanceConfig anotherInstanceConfig = mock(InstanceConfig.class); when(someInstanceConfig.getInstanceId()).thenReturn(someInstanceId); when(anotherInstanceConfig.getInstanceId()).thenReturn(anotherInstanceId); when(someInstanceConfig.getReleaseKey()).thenReturn(someInstanceConfigReleaseKey); when(anotherInstanceConfig.getReleaseKey()).thenReturn(anotherInstanceConfigReleaseKey); when(someInstanceConfig.getReleaseDeliveryTime()).thenReturn(someReleaseDeliveryTime); when(anotherInstanceConfig.getReleaseDeliveryTime()).thenReturn(anotherReleaseDeliveryTime); when(instanceService.findInstanceConfigsByNamespaceWithReleaseKeysNotIn(someConfigAppId, someConfigClusterName, someConfigNamespaceName, Sets.newHashSet(someReleaseKey, anotherReleaseKey))).thenReturn(Lists.newArrayList(someInstanceConfig, anotherInstanceConfig)); String someInstanceAppId = "someInstanceAppId"; String someInstanceClusterName = "someInstanceClusterName"; String someInstanceNamespaceName = "someInstanceNamespaceName"; String someIp = "someIp"; String anotherIp = "anotherIp"; Instance someInstance = assembleInstance(someInstanceId, someInstanceAppId, someInstanceClusterName, someInstanceNamespaceName, someIp); Instance anotherInstance = assembleInstance(anotherInstanceId, someInstanceAppId, someInstanceClusterName, someInstanceNamespaceName, anotherIp); when(instanceService.findInstancesByIds(Sets.newHashSet(someInstanceId, anotherInstanceId))) .thenReturn(Lists.newArrayList(someInstance, anotherInstance)); Release someInstanceConfigRelease = new Release(); someInstanceConfigRelease.setReleaseKey(someInstanceConfigReleaseKey); Release anotherInstanceConfigRelease = new Release(); anotherInstanceConfigRelease.setReleaseKey(anotherInstanceConfigReleaseKey); when(releaseService.findByReleaseKeys(Sets.newHashSet(someInstanceConfigReleaseKey, anotherInstanceConfigReleaseKey))).thenReturn(Lists.newArrayList(someInstanceConfigRelease, anotherInstanceConfigRelease)); List<InstanceDTO> result = instanceConfigController.getByReleasesNotIn(someConfigAppId, someConfigClusterName, someConfigNamespaceName, releaseIds); assertEquals(2, result.size()); InstanceDTO someInstanceDto = null; InstanceDTO anotherInstanceDto = null; for (InstanceDTO instanceDTO : result) { if (instanceDTO.getId() == someInstanceId) { someInstanceDto = instanceDTO; } else if (instanceDTO.getId() == anotherInstanceId) { anotherInstanceDto = instanceDTO; } } verifyInstance(someInstance, someInstanceDto); verifyInstance(anotherInstance, anotherInstanceDto); assertEquals(someInstanceConfigReleaseKey, someInstanceDto.getConfigs().get(0).getRelease() .getReleaseKey()); assertEquals(anotherInstanceConfigReleaseKey, anotherInstanceDto.getConfigs().get(0) .getRelease() .getReleaseKey()); assertEquals(someReleaseDeliveryTime, someInstanceDto.getConfigs().get(0).getReleaseDeliveryTime()); assertEquals(anotherReleaseDeliveryTime, anotherInstanceDto.getConfigs().get(0) .getReleaseDeliveryTime()); } @Test public void testGetInstancesByNamespace() throws Exception { String someAppId = "someAppId"; String someClusterName = "someClusterName"; String someNamespaceName = "someNamespaceName"; String someIp = "someIp"; long someInstanceId = 1; long anotherInstanceId = 2; Instance someInstance = assembleInstance(someInstanceId, someAppId, someClusterName, someNamespaceName, someIp); Instance anotherInstance = assembleInstance(anotherInstanceId, someAppId, someClusterName, someNamespaceName, someIp); Page<Instance> instances = new PageImpl<>(Lists.newArrayList(someInstance, anotherInstance), pageable, 2); when(instanceService.findInstancesByNamespace(someAppId, someClusterName, someNamespaceName, pageable)).thenReturn(instances); PageDTO<InstanceDTO> result = instanceConfigController.getInstancesByNamespace(someAppId, someClusterName, someNamespaceName, null, pageable); assertEquals(2, result.getContent().size()); InstanceDTO someInstanceDto = null; InstanceDTO anotherInstanceDto = null; for (InstanceDTO instanceDTO : result.getContent()) { if (instanceDTO.getId() == someInstanceId) { someInstanceDto = instanceDTO; } else if (instanceDTO.getId() == anotherInstanceId) { anotherInstanceDto = instanceDTO; } } verifyInstance(someInstance, someInstanceDto); verifyInstance(anotherInstance, anotherInstanceDto); } @Test public void testGetInstancesByNamespaceAndInstanceAppId() throws Exception { String someInstanceAppId = "someInstanceAppId"; String someAppId = "someAppId"; String someClusterName = "someClusterName"; String someNamespaceName = "someNamespaceName"; String someIp = "someIp"; long someInstanceId = 1; long anotherInstanceId = 2; Instance someInstance = assembleInstance(someInstanceId, someAppId, someClusterName, someNamespaceName, someIp); Instance anotherInstance = assembleInstance(anotherInstanceId, someAppId, someClusterName, someNamespaceName, someIp); Page<Instance> instances = new PageImpl<>(Lists.newArrayList(someInstance, anotherInstance), pageable, 2); when(instanceService.findInstancesByNamespaceAndInstanceAppId(someInstanceAppId, someAppId, someClusterName, someNamespaceName, pageable)).thenReturn(instances); PageDTO<InstanceDTO> result = instanceConfigController.getInstancesByNamespace(someAppId, someClusterName, someNamespaceName, someInstanceAppId, pageable); assertEquals(2, result.getContent().size()); InstanceDTO someInstanceDto = null; InstanceDTO anotherInstanceDto = null; for (InstanceDTO instanceDTO : result.getContent()) { if (instanceDTO.getId() == someInstanceId) { someInstanceDto = instanceDTO; } else if (instanceDTO.getId() == anotherInstanceId) { anotherInstanceDto = instanceDTO; } } verifyInstance(someInstance, someInstanceDto); verifyInstance(anotherInstance, anotherInstanceDto); } @Test public void testGetInstancesCountByNamespace() throws Exception { String someAppId = "someAppId"; String someClusterName = "someClusterName"; String someNamespaceName = "someNamespaceName"; Page<Instance> instances = new PageImpl<>(Collections.emptyList(), pageable, 2); when(instanceService.findInstancesByNamespace(eq(someAppId), eq(someClusterName), eq(someNamespaceName), any(Pageable.class))).thenReturn(instances); long result = instanceConfigController.getInstancesCountByNamespace(someAppId, someClusterName, someNamespaceName); assertEquals(2, result); } private void verifyInstance(Instance instance, InstanceDTO instanceDTO) { assertEquals(instance.getId(), instanceDTO.getId()); assertEquals(instance.getAppId(), instanceDTO.getAppId()); assertEquals(instance.getClusterName(), instanceDTO.getClusterName()); assertEquals(instance.getDataCenter(), instanceDTO.getDataCenter()); assertEquals(instance.getIp(), instanceDTO.getIp()); assertEquals(instance.getDataChangeCreatedTime(), instanceDTO.getDataChangeCreatedTime()); } private Instance assembleInstance(long instanceId, String appId, String clusterName, String dataCenter, String ip) { Instance instance = new Instance(); instance.setId(instanceId); instance.setAppId(appId); instance.setIp(ip); instance.setClusterName(clusterName); instance.setDataCenter(dataCenter); instance.setDataChangeCreatedTime(new Date()); return instance; } private InstanceConfig assembleInstanceConfig(long instanceId, String configAppId, String configNamespaceName, String releaseKey, Date releaseDeliveryTime) { InstanceConfig instanceConfig = new InstanceConfig(); instanceConfig.setInstanceId(instanceId); instanceConfig.setConfigAppId(configAppId); instanceConfig.setConfigNamespaceName(configNamespaceName); instanceConfig.setReleaseKey(releaseKey); instanceConfig.setDataChangeLastModifiedTime(new Date()); instanceConfig.setReleaseDeliveryTime(releaseDeliveryTime); return instanceConfig; } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/springsecurity/SpringSecurityUserInfoHolder.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.spi.springsecurity; import com.ctrip.framework.apollo.portal.entity.bo.UserInfo; import com.ctrip.framework.apollo.portal.spi.UserInfoHolder; import com.ctrip.framework.apollo.portal.spi.UserService; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.security.core.userdetails.UserDetails; import java.security.Principal; public class SpringSecurityUserInfoHolder implements UserInfoHolder { private final UserService userService; public SpringSecurityUserInfoHolder(UserService userService) { this.userService = userService; } @Override public UserInfo getUser() { String userId = this.getCurrentUsername(); UserInfo userInfoFound = this.userService.findByUserId(userId); if (userInfoFound != null) { return userInfoFound; } UserInfo userInfo = new UserInfo(); userInfo.setUserId(userId); return userInfo; } private String getCurrentUsername() { Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal(); if (principal instanceof UserDetails) { return ((UserDetails) principal).getUsername(); } if (principal instanceof Principal) { return ((Principal) principal).getName(); } return String.valueOf(principal); } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.spi.springsecurity; import com.ctrip.framework.apollo.portal.entity.bo.UserInfo; import com.ctrip.framework.apollo.portal.spi.UserInfoHolder; import com.ctrip.framework.apollo.portal.spi.UserService; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.security.core.userdetails.UserDetails; import java.security.Principal; public class SpringSecurityUserInfoHolder implements UserInfoHolder { private final UserService userService; public SpringSecurityUserInfoHolder(UserService userService) { this.userService = userService; } @Override public UserInfo getUser() { String userId = this.getCurrentUsername(); UserInfo userInfoFound = this.userService.findByUserId(userId); if (userInfoFound != null) { return userInfoFound; } UserInfo userInfo = new UserInfo(); userInfo.setUserId(userId); return userInfo; } private String getCurrentUsername() { Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal(); if (principal instanceof UserDetails) { return ((UserDetails) principal).getUsername(); } if (principal instanceof Principal) { return ((Principal) principal).getName(); } return String.valueOf(principal); } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/entity/vo/PermissionCondition.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.entity.vo; public class PermissionCondition { private boolean hasPermission; public boolean hasPermission() { return hasPermission; } public void setHasPermission(boolean hasPermission) { this.hasPermission = hasPermission; } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.portal.entity.vo; public class PermissionCondition { private boolean hasPermission; public boolean hasPermission() { return hasPermission; } public void setHasPermission(boolean hasPermission) { this.hasPermission = hasPermission; } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-client/src/main/java/com/ctrip/framework/apollo/util/parser/Parsers.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.util.parser; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Parsers { public static DateParser forDate() { return DateParser.INSTANCE; } public static DurationParser forDuration() { return DurationParser.INSTANCE; } public enum DateParser { INSTANCE; private static final String LONG_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss.SSS"; private static final String MEDIUM_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss"; private static final String SHORT_DATE_FORMAT = "yyyy-MM-dd"; /** * Will try to parse the date with Locale.US and formats as follows: * yyyy-MM-dd HH:mm:ss.SSS, yyyy-MM-dd HH:mm:ss and yyyy-MM-dd * * @param text the text to parse * @return the parsed date * @throws ParserException if the text cannot be parsed */ public Date parse(String text) throws ParserException { text = text.trim(); int length = text.length(); if (length == LONG_DATE_FORMAT.length()) { return parse(text, LONG_DATE_FORMAT); } if (length == MEDIUM_DATE_FORMAT.length()) { return parse(text, MEDIUM_DATE_FORMAT); } return parse(text, SHORT_DATE_FORMAT); } /** * Parse the text with the format specified and Locale.US * * @param text the text to parse * @param format the date format, see {@link java.text.SimpleDateFormat} for more information * @return the parsed date * @throws ParserException if the text cannot be parsed */ public Date parse(String text, String format) throws ParserException { return parse(text, format, Locale.US); } /** * Parse the text with the format and locale specified * * @param text the text to parse * @param format the date format, see {@link java.text.SimpleDateFormat} for more information * @param locale the locale * @return the parsed date * @throws ParserException if the text cannot be parsed */ public Date parse(String text, String format, Locale locale) throws ParserException { SimpleDateFormat dateFormat = getDateFormat(format, locale); try { return dateFormat.parse(text.trim()); } catch (ParseException e) { throw new ParserException("Error when parsing date(" + dateFormat.toPattern() + ") from " + text, e); } } private SimpleDateFormat getDateFormat(String format, Locale locale) { return new SimpleDateFormat(format, locale); } } public enum DurationParser { INSTANCE; private static final Pattern PATTERN = Pattern.compile("(?:([0-9]+)D)?(?:([0-9]+)H)?(?:([0-9]+)M)?(?:([0-9]+)S)?(?:([0-9]+)(?:MS)?)?", Pattern.CASE_INSENSITIVE); private static final int HOURS_PER_DAY = 24; private static final int MINUTES_PER_HOUR = 60; private static final int SECONDS_PER_MINUTE = 60; private static final int MILLIS_PER_SECOND = 1000; private static final int MILLIS_PER_MINUTE = MILLIS_PER_SECOND * SECONDS_PER_MINUTE; private static final int MILLIS_PER_HOUR = MILLIS_PER_MINUTE * MINUTES_PER_HOUR; private static final int MILLIS_PER_DAY = MILLIS_PER_HOUR * HOURS_PER_DAY; public long parseToMillis(String text) throws ParserException { Matcher matcher = PATTERN.matcher(text); if (matcher.matches()) { String dayMatch = matcher.group(1); String hourMatch = matcher.group(2); String minuteMatch = matcher.group(3); String secondMatch = matcher.group(4); String fractionMatch = matcher.group(5); if (dayMatch != null || hourMatch != null || minuteMatch != null || secondMatch != null || fractionMatch != null) { int daysAsMilliSecs = parseNumber(dayMatch, MILLIS_PER_DAY); int hoursAsMilliSecs = parseNumber(hourMatch, MILLIS_PER_HOUR); int minutesAsMilliSecs = parseNumber(minuteMatch, MILLIS_PER_MINUTE); int secondsAsMilliSecs = parseNumber(secondMatch, MILLIS_PER_SECOND); int milliseconds = parseNumber(fractionMatch, 1); return daysAsMilliSecs + hoursAsMilliSecs + minutesAsMilliSecs + secondsAsMilliSecs + milliseconds; } } throw new ParserException(String.format("Text %s cannot be parsed to duration)", text)); } private static int parseNumber(String parsed, int multiplier) { // regex limits to [0-9]+ if (parsed == null || parsed.trim().isEmpty()) { return 0; } return Integer.parseInt(parsed) * multiplier; } } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.util.parser; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Parsers { public static DateParser forDate() { return DateParser.INSTANCE; } public static DurationParser forDuration() { return DurationParser.INSTANCE; } public enum DateParser { INSTANCE; private static final String LONG_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss.SSS"; private static final String MEDIUM_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss"; private static final String SHORT_DATE_FORMAT = "yyyy-MM-dd"; /** * Will try to parse the date with Locale.US and formats as follows: * yyyy-MM-dd HH:mm:ss.SSS, yyyy-MM-dd HH:mm:ss and yyyy-MM-dd * * @param text the text to parse * @return the parsed date * @throws ParserException if the text cannot be parsed */ public Date parse(String text) throws ParserException { text = text.trim(); int length = text.length(); if (length == LONG_DATE_FORMAT.length()) { return parse(text, LONG_DATE_FORMAT); } if (length == MEDIUM_DATE_FORMAT.length()) { return parse(text, MEDIUM_DATE_FORMAT); } return parse(text, SHORT_DATE_FORMAT); } /** * Parse the text with the format specified and Locale.US * * @param text the text to parse * @param format the date format, see {@link java.text.SimpleDateFormat} for more information * @return the parsed date * @throws ParserException if the text cannot be parsed */ public Date parse(String text, String format) throws ParserException { return parse(text, format, Locale.US); } /** * Parse the text with the format and locale specified * * @param text the text to parse * @param format the date format, see {@link java.text.SimpleDateFormat} for more information * @param locale the locale * @return the parsed date * @throws ParserException if the text cannot be parsed */ public Date parse(String text, String format, Locale locale) throws ParserException { SimpleDateFormat dateFormat = getDateFormat(format, locale); try { return dateFormat.parse(text.trim()); } catch (ParseException e) { throw new ParserException("Error when parsing date(" + dateFormat.toPattern() + ") from " + text, e); } } private SimpleDateFormat getDateFormat(String format, Locale locale) { return new SimpleDateFormat(format, locale); } } public enum DurationParser { INSTANCE; private static final Pattern PATTERN = Pattern.compile("(?:([0-9]+)D)?(?:([0-9]+)H)?(?:([0-9]+)M)?(?:([0-9]+)S)?(?:([0-9]+)(?:MS)?)?", Pattern.CASE_INSENSITIVE); private static final int HOURS_PER_DAY = 24; private static final int MINUTES_PER_HOUR = 60; private static final int SECONDS_PER_MINUTE = 60; private static final int MILLIS_PER_SECOND = 1000; private static final int MILLIS_PER_MINUTE = MILLIS_PER_SECOND * SECONDS_PER_MINUTE; private static final int MILLIS_PER_HOUR = MILLIS_PER_MINUTE * MINUTES_PER_HOUR; private static final int MILLIS_PER_DAY = MILLIS_PER_HOUR * HOURS_PER_DAY; public long parseToMillis(String text) throws ParserException { Matcher matcher = PATTERN.matcher(text); if (matcher.matches()) { String dayMatch = matcher.group(1); String hourMatch = matcher.group(2); String minuteMatch = matcher.group(3); String secondMatch = matcher.group(4); String fractionMatch = matcher.group(5); if (dayMatch != null || hourMatch != null || minuteMatch != null || secondMatch != null || fractionMatch != null) { int daysAsMilliSecs = parseNumber(dayMatch, MILLIS_PER_DAY); int hoursAsMilliSecs = parseNumber(hourMatch, MILLIS_PER_HOUR); int minutesAsMilliSecs = parseNumber(minuteMatch, MILLIS_PER_MINUTE); int secondsAsMilliSecs = parseNumber(secondMatch, MILLIS_PER_SECOND); int milliseconds = parseNumber(fractionMatch, 1); return daysAsMilliSecs + hoursAsMilliSecs + minutesAsMilliSecs + secondsAsMilliSecs + milliseconds; } } throw new ParserException(String.format("Text %s cannot be parsed to duration)", text)); } private static int parseNumber(String parsed, int multiplier) { // regex limits to [0-9]+ if (parsed == null || parsed.trim().isEmpty()) { return 0; } return Integer.parseInt(parsed) * multiplier; } } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-demo/src/main/java/com/ctrip/framework/apollo/demo/spring/xmlConfigDemo/XmlApplication.java
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.demo.spring.xmlConfigDemo; import com.google.common.base.Strings; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import com.ctrip.framework.apollo.demo.spring.xmlConfigDemo.bean.XmlBean; import com.google.common.base.Charsets; /** * @author Jason Song([email protected]) */ public class XmlApplication { public static void main(String[] args) throws IOException { ApplicationContext context = new ClassPathXmlApplicationContext("spring.xml"); XmlBean xmlBean = context.getBean(XmlBean.class); System.out.println("XmlApplication Demo. Input any key except quit to print the values. Input quit to exit."); while (true) { System.out.print("> "); String input = new BufferedReader(new InputStreamReader(System.in, Charsets.UTF_8)).readLine(); if (!Strings.isNullOrEmpty(input) && input.trim().equalsIgnoreCase("quit")) { System.exit(0); } System.out.println(xmlBean.toString()); } } }
/* * Copyright 2021 Apollo Authors * * Licensed 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 com.ctrip.framework.apollo.demo.spring.xmlConfigDemo; import com.google.common.base.Strings; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import com.ctrip.framework.apollo.demo.spring.xmlConfigDemo.bean.XmlBean; import com.google.common.base.Charsets; /** * @author Jason Song([email protected]) */ public class XmlApplication { public static void main(String[] args) throws IOException { ApplicationContext context = new ClassPathXmlApplicationContext("spring.xml"); XmlBean xmlBean = context.getBean(XmlBean.class); System.out.println("XmlApplication Demo. Input any key except quit to print the values. Input quit to exit."); while (true) { System.out.print("> "); String input = new BufferedReader(new InputStreamReader(System.in, Charsets.UTF_8)).readLine(); if (!Strings.isNullOrEmpty(input) && input.trim().equalsIgnoreCase("quit")) { System.exit(0); } System.out.println(xmlBean.toString()); } } }
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./scripts/apollo-on-kubernetes/apollo-portal-server/Dockerfile
# # Copyright 2021 Apollo Authors # # Licensed 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. # # Dockerfile for apollo-portal-server # Build with: # docker build -t apollo-portal-server:v1.0.0 . FROM openjdk:8-jre-alpine3.8 RUN \ echo "http://mirrors.aliyun.com/alpine/v3.8/main" > /etc/apk/repositories && \ echo "http://mirrors.aliyun.com/alpine/v3.8/community" >> /etc/apk/repositories && \ apk update upgrade && \ apk add --no-cache procps curl bash tzdata && \ ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ echo "Asia/Shanghai" > /etc/timezone && \ mkdir -p /apollo-portal-server ADD . /apollo-portal-server/ ENV APOLLO_PORTAL_SERVICE_NAME="service-apollo-portal-server.sre" EXPOSE 8070 CMD ["/apollo-portal-server/scripts/startup-kubernetes.sh"]
# # Copyright 2021 Apollo Authors # # Licensed 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. # # Dockerfile for apollo-portal-server # Build with: # docker build -t apollo-portal-server:v1.0.0 . FROM openjdk:8-jre-alpine3.8 RUN \ echo "http://mirrors.aliyun.com/alpine/v3.8/main" > /etc/apk/repositories && \ echo "http://mirrors.aliyun.com/alpine/v3.8/community" >> /etc/apk/repositories && \ apk update upgrade && \ apk add --no-cache procps curl bash tzdata && \ ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ echo "Asia/Shanghai" > /etc/timezone && \ mkdir -p /apollo-portal-server ADD . /apollo-portal-server/ ENV APOLLO_PORTAL_SERVICE_NAME="service-apollo-portal-server.sre" EXPOSE 8070 CMD ["/apollo-portal-server/scripts/startup-kubernetes.sh"]
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./docs/en/images/community/jetbrains.svg
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="120.1px" height="130.2px" viewBox="0 0 120.1 130.2" style="enable-background:new 0 0 120.1 130.2;" xml:space="preserve" > <g> <linearGradient id="XMLID_2_" gradientUnits="userSpaceOnUse" x1="31.8412" y1="120.5578" x2="110.2402" y2="73.24"> <stop offset="0" style="stop-color:#FCEE39"/> <stop offset="1" style="stop-color:#F37B3D"/> </linearGradient> <path id="XMLID_3041_" style="fill:url(#XMLID_2_);" d="M118.6,71.8c0.9-0.8,1.4-1.9,1.5-3.2c0.1-2.6-1.8-4.7-4.4-4.9 c-1.2-0.1-2.4,0.4-3.3,1.1l0,0l-83.8,45.9c-1.9,0.8-3.6,2.2-4.7,4.1c-2.9,4.8-1.3,11,3.6,13.9c3.4,2,7.5,1.8,10.7-0.2l0,0l0,0 c0.2-0.2,0.5-0.3,0.7-0.5l78-54.8C117.3,72.9,118.4,72.1,118.6,71.8L118.6,71.8L118.6,71.8z"/> <linearGradient id="XMLID_3_" gradientUnits="userSpaceOnUse" x1="48.3607" y1="6.9083" x2="119.9179" y2="69.5546"> <stop offset="0" style="stop-color:#EF5A6B"/> <stop offset="0.57" style="stop-color:#F26F4E"/> <stop offset="1" style="stop-color:#F37B3D"/> </linearGradient> <path id="XMLID_3049_" style="fill:url(#XMLID_3_);" d="M118.8,65.1L118.8,65.1L55,2.5C53.6,1,51.6,0,49.3,0 c-4.3,0-7.7,3.5-7.7,7.7v0c0,2.1,0.8,3.9,2.1,5.3l0,0l0,0c0.4,0.4,0.8,0.7,1.2,1l67.4,57.7l0,0c0.8,0.7,1.8,1.2,3,1.3 c2.6,0.1,4.7-1.8,4.9-4.4C120.2,67.3,119.7,66,118.8,65.1z"/> <linearGradient id="XMLID_4_" gradientUnits="userSpaceOnUse" x1="52.9467" y1="63.6407" x2="10.5379" y2="37.1562"> <stop offset="0" style="stop-color:#7C59A4"/> <stop offset="0.3852" style="stop-color:#AF4C92"/> <stop offset="0.7654" style="stop-color:#DC4183"/> <stop offset="0.957" style="stop-color:#ED3D7D"/> </linearGradient> <path id="XMLID_3042_" style="fill:url(#XMLID_4_);" d="M57.1,59.5C57,59.5,17.7,28.5,16.9,28l0,0l0,0c-0.6-0.3-1.2-0.6-1.8-0.9 c-5.8-2.2-12.2,0.8-14.4,6.6c-1.9,5.1,0.2,10.7,4.6,13.4l0,0l0,0C6,47.5,6.6,47.8,7.3,48c0.4,0.2,45.4,18.8,45.4,18.8l0,0 c1.8,0.8,3.9,0.3,5.1-1.2C59.3,63.7,59,61,57.1,59.5z"/> <linearGradient id="XMLID_5_" gradientUnits="userSpaceOnUse" x1="52.1736" y1="3.7019" x2="10.7706" y2="37.8971"> <stop offset="0" style="stop-color:#EF5A6B"/> <stop offset="0.364" style="stop-color:#EE4E72"/> <stop offset="1" style="stop-color:#ED3D7D"/> </linearGradient> <path id="XMLID_3057_" style="fill:url(#XMLID_5_);" d="M49.3,0c-1.7,0-3.3,0.6-4.6,1.5L4.9,28.3c-0.1,0.1-0.2,0.1-0.2,0.2l-0.1,0 l0,0c-1.7,1.2-3.1,3-3.9,5.1C-1.5,39.4,1.5,45.9,7.3,48c3.6,1.4,7.5,0.7,10.4-1.4l0,0l0,0c0.7-0.5,1.3-1,1.8-1.6l34.6-31.2l0,0 c1.8-1.4,3-3.6,3-6.1v0C57.1,3.5,53.6,0,49.3,0z"/> <g id="XMLID_3008_"> <rect id="XMLID_3033_" x="34.6" y="37.4" style="fill:#000000;" width="51" height="51"/> <rect id="XMLID_3032_" x="39" y="78.8" style="fill:#FFFFFF;" width="19.1" height="3.2"/> <g id="XMLID_3009_"> <path id="XMLID_3030_" style="fill:#FFFFFF;" d="M38.8,50.8l1.5-1.4c0.4,0.5,0.8,0.8,1.3,0.8c0.6,0,0.9-0.4,0.9-1.2l0-5.3l2.3,0 l0,5.3c0,1-0.3,1.8-0.8,2.3c-0.5,0.5-1.3,0.8-2.3,0.8C40.2,52.2,39.4,51.6,38.8,50.8z"/> <path id="XMLID_3028_" style="fill:#FFFFFF;" d="M45.3,43.8l6.7,0v1.9l-4.4,0V47l4,0l0,1.8l-4,0l0,1.3l4.5,0l0,2l-6.7,0 L45.3,43.8z"/> <path id="XMLID_3026_" style="fill:#FFFFFF;" d="M55,45.8l-2.5,0l0-2l7.3,0l0,2l-2.5,0l0,6.3l-2.3,0L55,45.8z"/> <path id="XMLID_3022_" style="fill:#FFFFFF;" d="M39,54l4.3,0c1,0,1.8,0.3,2.3,0.7c0.3,0.3,0.5,0.8,0.5,1.4v0 c0,1-0.5,1.5-1.3,1.9c1,0.3,1.6,0.9,1.6,2v0c0,1.4-1.2,2.3-3.1,2.3l-4.3,0L39,54z M43.8,56.6c0-0.5-0.4-0.7-1-0.7l-1.5,0l0,1.5 l1.4,0C43.4,57.3,43.8,57.1,43.8,56.6L43.8,56.6z M43,59l-1.8,0l0,1.5H43c0.7,0,1.1-0.3,1.1-0.8v0C44.1,59.2,43.7,59,43,59z"/> <path id="XMLID_3019_" style="fill:#FFFFFF;" d="M46.8,54l3.9,0c1.3,0,2.1,0.3,2.7,0.9c0.5,0.5,0.7,1.1,0.7,1.9v0 c0,1.3-0.7,2.1-1.7,2.6l2,2.9l-2.6,0l-1.7-2.5h-1l0,2.5l-2.3,0L46.8,54z M50.6,58c0.8,0,1.2-0.4,1.2-1v0c0-0.7-0.5-1-1.2-1 l-1.5,0v2H50.6z"/> <path id="XMLID_3016_" style="fill:#FFFFFF;" d="M56.8,54l2.2,0l3.5,8.4l-2.5,0l-0.6-1.5l-3.2,0l-0.6,1.5l-2.4,0L56.8,54z M58.8,59l-0.9-2.3L57,59L58.8,59z"/> <path id="XMLID_3014_" style="fill:#FFFFFF;" d="M62.8,54l2.3,0l0,8.3l-2.3,0L62.8,54z"/> <path id="XMLID_3012_" style="fill:#FFFFFF;" d="M65.7,54l2.1,0l3.4,4.4l0-4.4l2.3,0l0,8.3l-2,0L68,57.8l0,4.6l-2.3,0L65.7,54z" /> <path id="XMLID_3010_" style="fill:#FFFFFF;" d="M73.7,61.1l1.3-1.5c0.8,0.7,1.7,1,2.7,1c0.6,0,1-0.2,1-0.6v0 c0-0.4-0.3-0.5-1.4-0.8c-1.8-0.4-3.1-0.9-3.1-2.6v0c0-1.5,1.2-2.7,3.2-2.7c1.4,0,2.5,0.4,3.4,1.1l-1.2,1.6 c-0.8-0.5-1.6-0.8-2.3-0.8c-0.6,0-0.8,0.2-0.8,0.5v0c0,0.4,0.3,0.5,1.4,0.8c1.9,0.4,3.1,1,3.1,2.6v0c0,1.7-1.3,2.7-3.4,2.7 C76.1,62.5,74.7,62,73.7,61.1z"/> </g> </g> </g> </svg>
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="120.1px" height="130.2px" viewBox="0 0 120.1 130.2" style="enable-background:new 0 0 120.1 130.2;" xml:space="preserve" > <g> <linearGradient id="XMLID_2_" gradientUnits="userSpaceOnUse" x1="31.8412" y1="120.5578" x2="110.2402" y2="73.24"> <stop offset="0" style="stop-color:#FCEE39"/> <stop offset="1" style="stop-color:#F37B3D"/> </linearGradient> <path id="XMLID_3041_" style="fill:url(#XMLID_2_);" d="M118.6,71.8c0.9-0.8,1.4-1.9,1.5-3.2c0.1-2.6-1.8-4.7-4.4-4.9 c-1.2-0.1-2.4,0.4-3.3,1.1l0,0l-83.8,45.9c-1.9,0.8-3.6,2.2-4.7,4.1c-2.9,4.8-1.3,11,3.6,13.9c3.4,2,7.5,1.8,10.7-0.2l0,0l0,0 c0.2-0.2,0.5-0.3,0.7-0.5l78-54.8C117.3,72.9,118.4,72.1,118.6,71.8L118.6,71.8L118.6,71.8z"/> <linearGradient id="XMLID_3_" gradientUnits="userSpaceOnUse" x1="48.3607" y1="6.9083" x2="119.9179" y2="69.5546"> <stop offset="0" style="stop-color:#EF5A6B"/> <stop offset="0.57" style="stop-color:#F26F4E"/> <stop offset="1" style="stop-color:#F37B3D"/> </linearGradient> <path id="XMLID_3049_" style="fill:url(#XMLID_3_);" d="M118.8,65.1L118.8,65.1L55,2.5C53.6,1,51.6,0,49.3,0 c-4.3,0-7.7,3.5-7.7,7.7v0c0,2.1,0.8,3.9,2.1,5.3l0,0l0,0c0.4,0.4,0.8,0.7,1.2,1l67.4,57.7l0,0c0.8,0.7,1.8,1.2,3,1.3 c2.6,0.1,4.7-1.8,4.9-4.4C120.2,67.3,119.7,66,118.8,65.1z"/> <linearGradient id="XMLID_4_" gradientUnits="userSpaceOnUse" x1="52.9467" y1="63.6407" x2="10.5379" y2="37.1562"> <stop offset="0" style="stop-color:#7C59A4"/> <stop offset="0.3852" style="stop-color:#AF4C92"/> <stop offset="0.7654" style="stop-color:#DC4183"/> <stop offset="0.957" style="stop-color:#ED3D7D"/> </linearGradient> <path id="XMLID_3042_" style="fill:url(#XMLID_4_);" d="M57.1,59.5C57,59.5,17.7,28.5,16.9,28l0,0l0,0c-0.6-0.3-1.2-0.6-1.8-0.9 c-5.8-2.2-12.2,0.8-14.4,6.6c-1.9,5.1,0.2,10.7,4.6,13.4l0,0l0,0C6,47.5,6.6,47.8,7.3,48c0.4,0.2,45.4,18.8,45.4,18.8l0,0 c1.8,0.8,3.9,0.3,5.1-1.2C59.3,63.7,59,61,57.1,59.5z"/> <linearGradient id="XMLID_5_" gradientUnits="userSpaceOnUse" x1="52.1736" y1="3.7019" x2="10.7706" y2="37.8971"> <stop offset="0" style="stop-color:#EF5A6B"/> <stop offset="0.364" style="stop-color:#EE4E72"/> <stop offset="1" style="stop-color:#ED3D7D"/> </linearGradient> <path id="XMLID_3057_" style="fill:url(#XMLID_5_);" d="M49.3,0c-1.7,0-3.3,0.6-4.6,1.5L4.9,28.3c-0.1,0.1-0.2,0.1-0.2,0.2l-0.1,0 l0,0c-1.7,1.2-3.1,3-3.9,5.1C-1.5,39.4,1.5,45.9,7.3,48c3.6,1.4,7.5,0.7,10.4-1.4l0,0l0,0c0.7-0.5,1.3-1,1.8-1.6l34.6-31.2l0,0 c1.8-1.4,3-3.6,3-6.1v0C57.1,3.5,53.6,0,49.3,0z"/> <g id="XMLID_3008_"> <rect id="XMLID_3033_" x="34.6" y="37.4" style="fill:#000000;" width="51" height="51"/> <rect id="XMLID_3032_" x="39" y="78.8" style="fill:#FFFFFF;" width="19.1" height="3.2"/> <g id="XMLID_3009_"> <path id="XMLID_3030_" style="fill:#FFFFFF;" d="M38.8,50.8l1.5-1.4c0.4,0.5,0.8,0.8,1.3,0.8c0.6,0,0.9-0.4,0.9-1.2l0-5.3l2.3,0 l0,5.3c0,1-0.3,1.8-0.8,2.3c-0.5,0.5-1.3,0.8-2.3,0.8C40.2,52.2,39.4,51.6,38.8,50.8z"/> <path id="XMLID_3028_" style="fill:#FFFFFF;" d="M45.3,43.8l6.7,0v1.9l-4.4,0V47l4,0l0,1.8l-4,0l0,1.3l4.5,0l0,2l-6.7,0 L45.3,43.8z"/> <path id="XMLID_3026_" style="fill:#FFFFFF;" d="M55,45.8l-2.5,0l0-2l7.3,0l0,2l-2.5,0l0,6.3l-2.3,0L55,45.8z"/> <path id="XMLID_3022_" style="fill:#FFFFFF;" d="M39,54l4.3,0c1,0,1.8,0.3,2.3,0.7c0.3,0.3,0.5,0.8,0.5,1.4v0 c0,1-0.5,1.5-1.3,1.9c1,0.3,1.6,0.9,1.6,2v0c0,1.4-1.2,2.3-3.1,2.3l-4.3,0L39,54z M43.8,56.6c0-0.5-0.4-0.7-1-0.7l-1.5,0l0,1.5 l1.4,0C43.4,57.3,43.8,57.1,43.8,56.6L43.8,56.6z M43,59l-1.8,0l0,1.5H43c0.7,0,1.1-0.3,1.1-0.8v0C44.1,59.2,43.7,59,43,59z"/> <path id="XMLID_3019_" style="fill:#FFFFFF;" d="M46.8,54l3.9,0c1.3,0,2.1,0.3,2.7,0.9c0.5,0.5,0.7,1.1,0.7,1.9v0 c0,1.3-0.7,2.1-1.7,2.6l2,2.9l-2.6,0l-1.7-2.5h-1l0,2.5l-2.3,0L46.8,54z M50.6,58c0.8,0,1.2-0.4,1.2-1v0c0-0.7-0.5-1-1.2-1 l-1.5,0v2H50.6z"/> <path id="XMLID_3016_" style="fill:#FFFFFF;" d="M56.8,54l2.2,0l3.5,8.4l-2.5,0l-0.6-1.5l-3.2,0l-0.6,1.5l-2.4,0L56.8,54z M58.8,59l-0.9-2.3L57,59L58.8,59z"/> <path id="XMLID_3014_" style="fill:#FFFFFF;" d="M62.8,54l2.3,0l0,8.3l-2.3,0L62.8,54z"/> <path id="XMLID_3012_" style="fill:#FFFFFF;" d="M65.7,54l2.1,0l3.4,4.4l0-4.4l2.3,0l0,8.3l-2,0L68,57.8l0,4.6l-2.3,0L65.7,54z" /> <path id="XMLID_3010_" style="fill:#FFFFFF;" d="M73.7,61.1l1.3-1.5c0.8,0.7,1.7,1,2.7,1c0.6,0,1-0.2,1-0.6v0 c0-0.4-0.3-0.5-1.4-0.8c-1.8-0.4-3.1-0.9-3.1-2.6v0c0-1.5,1.2-2.7,3.2-2.7c1.4,0,2.5,0.4,3.4,1.1l-1.2,1.6 c-0.8-0.5-1.6-0.8-2.3-0.8c-0.6,0-0.8,0.2-0.8,0.5v0c0,0.4,0.3,0.5,1.4,0.8c1.9,0.4,3.1,1,3.1,2.6v0c0,1.7-1.3,2.7-3.4,2.7 C76.1,62.5,74.7,62,73.7,61.1z"/> </g> </g> </g> </svg>
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-client/src/main/resources/META-INF/spring.schemas
http\://www.ctrip.com/schema/apollo-1.0.0.xsd=/META-INF/apollo-1.0.0.xsd http\://www.ctrip.com/schema/apollo.xsd=/META-INF/apollo-1.0.0.xsd
http\://www.ctrip.com/schema/apollo-1.0.0.xsd=/META-INF/apollo-1.0.0.xsd http\://www.ctrip.com/schema/apollo.xsd=/META-INF/apollo-1.0.0.xsd
-1
apolloconfig/apollo
3,666
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent
## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
Anilople
2021-05-08T11:52:42Z
2021-06-11T00:09:40Z
ff38fe06208a3a1e07ce59f8699703cb33bcee2e
44cf586c4b5b1b9df8c63a49f4b1d3b9d4d01baa
feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent. ## What's the purpose of this PR Let user can get interestedChangedKeys through ConfigChangeEvent ## Which issue(s) this PR fixes: Fixes #3664 ## Brief changelog resolve interestedChangedKeys in class AbstractConfig Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) before making this pull request. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit tests to verify the code. - [x] Run `mvn clean test` to make sure this pull request doesn't break anything.
./apollo-demo/pom.xml
<?xml version="1.0" encoding="UTF-8"?> <!-- ~ Copyright 2021 Apollo Authors ~ ~ Licensed 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. ~ --> <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>apollo</artifactId> <groupId>com.ctrip.framework.apollo</groupId> <version>${revision}</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>apollo-demo</artifactId> <name>Apollo Demo</name> <packaging>jar</packaging> <properties> <java.version>1.7</java.version> <github.path>${project.artifactId}</github.path> </properties> <dependencies> <dependency> <groupId>com.ctrip.framework.apollo</groupId> <artifactId>apollo-client</artifactId> <version>${project.version}</version> </dependency> <!-- for spring demo --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> </dependency> <!-- for spring boot demo --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> <exclusions> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-logging</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-log4j2</artifactId> </dependency> <!-- for refresh scope demo --> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-context</artifactId> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-api</artifactId> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-slf4j-impl</artifactId> </dependency> <!-- take over jcl --> <dependency> <groupId>org.slf4j</groupId> <artifactId>jcl-over-slf4j</artifactId> </dependency> </dependencies> </project>
<?xml version="1.0" encoding="UTF-8"?> <!-- ~ Copyright 2021 Apollo Authors ~ ~ Licensed 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. ~ --> <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>apollo</artifactId> <groupId>com.ctrip.framework.apollo</groupId> <version>${revision}</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>apollo-demo</artifactId> <name>Apollo Demo</name> <packaging>jar</packaging> <properties> <java.version>1.7</java.version> <github.path>${project.artifactId}</github.path> </properties> <dependencies> <dependency> <groupId>com.ctrip.framework.apollo</groupId> <artifactId>apollo-client</artifactId> <version>${project.version}</version> </dependency> <!-- for spring demo --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> </dependency> <!-- for spring boot demo --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> <exclusions> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-logging</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-log4j2</artifactId> </dependency> <!-- for refresh scope demo --> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-context</artifactId> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-api</artifactId> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-slf4j-impl</artifactId> </dependency> <!-- take over jcl --> <dependency> <groupId>org.slf4j</groupId> <artifactId>jcl-over-slf4j</artifactId> </dependency> </dependencies> </project>
-1