From ae6d59821c563948b1f97003e95c01671c38b771 Mon Sep 17 00:00:00 2001 From: Haotian Zhang <928016560@qq.com> Date: Fri, 6 Dec 2024 10:45:40 +0800 Subject: [PATCH 1/2] docs:add license checker. --- .github/workflows/license-checker.yml | 19 +++++++++++++++ .licenserc.yaml | 23 +++++++++++++++++++ polaris-distribution/polaris-all/pom.xml | 10 ++++++-- .../plugins/router/nearby/NearbyRouter.java | 3 +-- .../plugins/router/rule/RuleBasedRouter.java | 2 ++ 5 files changed, 53 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/license-checker.yml create mode 100644 .licenserc.yaml diff --git a/.github/workflows/license-checker.yml b/.github/workflows/license-checker.yml new file mode 100644 index 000000000..5a0d159ba --- /dev/null +++ b/.github/workflows/license-checker.yml @@ -0,0 +1,19 @@ +name: License checker + +on: + push: + branches: + - main + - release* + pull_request: + branches: + - main + - release* +jobs: + check-license: + runs-on: ubuntu-latest + steps: + - name: Checkout codes + uses: actions/checkout@v4 + - name: Check License Header + uses: apache/skywalking-eyes@v0.4.0 diff --git a/.licenserc.yaml b/.licenserc.yaml new file mode 100644 index 000000000..6351d2722 --- /dev/null +++ b/.licenserc.yaml @@ -0,0 +1,23 @@ +header: + license: + content: | + Tencent is pleased to support the open source community by making Polaris available. + + Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + + Licensed under the BSD 3-Clause License (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://opensource.org/licenses/BSD-3-Clause + + 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. + paths: + - "**/tencent/**" + language: + Java: + extensions: + - ".java" diff --git a/polaris-distribution/polaris-all/pom.xml b/polaris-distribution/polaris-all/pom.xml index 60b4aab5a..8728d81c8 100644 --- a/polaris-distribution/polaris-all/pom.xml +++ b/polaris-distribution/polaris-all/pom.xml @@ -1,7 +1,7 @@ + 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"> polaris-parent @@ -24,6 +24,12 @@ ${project.version} compile + + com.tencent.polaris + polaris-test-common + ${project.version} + compile + com.tencent.polaris polaris-test-mock-discovery diff --git a/polaris-plugins/polaris-plugins-router/router-nearby/src/main/java/com/tencent/polaris/plugins/router/nearby/NearbyRouter.java b/polaris-plugins/polaris-plugins-router/router-nearby/src/main/java/com/tencent/polaris/plugins/router/nearby/NearbyRouter.java index d296645bf..f5410fbf1 100644 --- a/polaris-plugins/polaris-plugins-router/router-nearby/src/main/java/com/tencent/polaris/plugins/router/nearby/NearbyRouter.java +++ b/polaris-plugins/polaris-plugins-router/router-nearby/src/main/java/com/tencent/polaris/plugins/router/nearby/NearbyRouter.java @@ -156,8 +156,7 @@ public RouteResult router(RouteInfo routeInfo, ServiceInstances serviceInstances String.format("can not find any instance by level %s", minLevel.name())); } //已经循环了一圈 - return new RouteResult(selectInstances( - serviceInstances, minAvailableLevel, clientLocationInfo), RouteResult.State.Next); + return new RouteResult(instances, RouteResult.State.Next); } CheckResult checkResult = new CheckResult(); for (int i = minLevel.ordinal(); i <= maxLevel.ordinal(); i++) { diff --git a/polaris-plugins/polaris-plugins-router/router-rule/src/main/java/com/tencent/polaris/plugins/router/rule/RuleBasedRouter.java b/polaris-plugins/polaris-plugins-router/router-rule/src/main/java/com/tencent/polaris/plugins/router/rule/RuleBasedRouter.java index 572060d32..3242ebada 100644 --- a/polaris-plugins/polaris-plugins-router/router-rule/src/main/java/com/tencent/polaris/plugins/router/rule/RuleBasedRouter.java +++ b/polaris-plugins/polaris-plugins-router/router-rule/src/main/java/com/tencent/polaris/plugins/router/rule/RuleBasedRouter.java @@ -141,6 +141,7 @@ private boolean matchSource(List sources, Service sourceSer matched = false; continue; } + // 如果服务名不等于“*”,且服务名规则以“!”开头,则使用取反匹配 if (!RuleUtils.MATCH_ALL.equals(service) && StringUtils.startsWith(service, "!")) { String realService = StringUtils.substring(service, 1); if (StringUtils.equals(realService, sourceService.getService())) { @@ -148,6 +149,7 @@ private boolean matchSource(List sources, Service sourceSer continue; } } + // 如果服务名不等于“*”,且服务名规则以“*”开头,则使用正则匹配 if (!RuleUtils.MATCH_ALL.equals(service) && StringUtils.startsWith(service, "*")) { String regex = StringUtils.substring(service, 1); Pattern pattern = Pattern.compile(regex); From 7bb143ae9e8ba88925e137c2a91297c4dc03d355 Mon Sep 17 00:00:00 2001 From: Haotian Zhang <928016560@qq.com> Date: Fri, 6 Dec 2024 11:00:50 +0800 Subject: [PATCH 2/2] docs:add license checker. --- .../polaris/auth/api/core/AuthAPI.java | 4 +- .../polaris/auth/api/rpc/AuthRequest.java | 4 +- .../polaris/auth/api/rpc/AuthResponse.java | 4 +- .../auth/client/flow/DefaultAuthFlow.java | 4 +- .../client/flow/ResourcesResponse.java | 2 +- .../configuration/ConfigFileConfig.java | 17 ++ .../config/configuration/ConnectorConfig.java | 17 ++ .../config/consumer/WeightAdjustConfig.java | 17 ++ .../api/config/global/AdminConfig.java | 4 +- .../config/plugin/PluginConfigProvider.java | 13 +- .../configuration/ConfigFileConfigImpl.java | 17 ++ .../configuration/ConnectorConfigImpl.java | 17 ++ .../consumer/ServiceRouterConfigImpl.java | 13 +- .../config/global/AdminConfigImpl.java | 4 +- .../SystemPropertyPlaceholderResolver.java | 17 +- .../polaris/factory/util/IPV4Util.java | 17 ++ .../util/PropertyPlaceholderHelper.java | 17 +- .../core/constant/MetadataConstants.java | 4 +- .../core/constant/TsfMetadataConstants.java | 4 +- .../tencent/polaris/api/pojo/HttpElement.java | 4 +- .../polaris/api/pojo/ServiceEventKey.java | 17 ++ .../tencent/polaris/api/pojo/Services.java | 20 +- .../tencent/polaris/api/pojo/TrieNode.java | 4 +- .../api/rpc/RuleBasedRouterFailoverType.java | 17 ++ .../polaris/api/utils/CompareUtils.java | 4 +- .../polaris/api/utils/IPAddressUtils.java | 4 +- .../tencent/polaris/api/utils/TrieUtil.java | 4 +- .../polaris/client/pojo/ServicesByProto.java | 20 +- .../client/util/EscapeNonAsciiWriter.java | 4 +- .../polaris/api/utils/CompareUtilsTest.java | 4 +- .../polaris/api/utils/RuleUtilsTest.java | 4 +- .../polaris/api/utils/StringUtilsTest.java | 4 +- .../polaris/api/utils/TrieUtilTest.java | 4 +- .../cross/CompletableFutureUtils.java | 4 +- .../tencent/polaris/api/core/ConsumerAPI.java | 28 +-- .../api/rpc/GetHealthyInstancesRequest.java | 17 ++ .../polaris/api/rpc/ServiceRuleResponse.java | 2 +- .../polaris/api/rpc/ServicesResponse.java | 4 +- .../api/rpc/UnWatchInstancesRequest.java | 2 - .../api/rpc/UnWatchServiceRequest.java | 2 - .../polaris/api/rpc/WatchServiceRequest.java | 2 - .../client/api/DefaultProviderAPI.java | 17 ++ .../client/flow/CommonServicesRequest.java | 21 +- .../discovery/test/core/GetServicesTest.java | 24 +- .../test/core/MetadataRouterTest.java | 19 ++ .../test/core/ServiceDynamicRuleTest.java | 23 +- .../polaris/api/plugin/auth/AuthInfo.java | 4 +- .../polaris/api/plugin/auth/AuthResult.java | 4 +- .../api/plugin/auth/Authenticator.java | 4 +- .../api/plugin/cache/CacheConstants.java | 4 +- .../api/plugin/cache/FlowCacheUtils.java | 4 +- .../api/plugin/common/ValueContext.java | 13 +- .../api/plugin/event/EventReporter.java | 4 +- .../polaris/api/plugin/event/FlowEvent.java | 4 +- .../api/plugin/event/FlowEventConstants.java | 4 +- .../event/tsf/TsfEventDataConstants.java | 4 +- .../ratelimiter/ServiceRateLimiter.java | 13 +- .../polaris/api/plugin/route/RouteInfo.java | 13 +- .../api/plugin/route/RouterConstants.java | 13 +- .../plugin/server/InterfaceDescriptor.java | 4 +- .../plugin/server/ReportClientRequest.java | 17 ++ .../plugin/server/ReportClientResponse.java | 17 ++ .../server/ReportServiceContractRequest.java | 4 +- .../server/ReportServiceContractResponse.java | 4 +- .../api/plugin/stat/CircuitBreakGauge.java | 13 +- .../stat/DefaultCircuitBreakResult.java | 17 ++ .../plugin/stat/DefaultRateLimitResult.java | 17 ++ .../api/plugin/stat/TraceConstants.java | 4 +- .../BlockAllowListAuthenticator.java | 4 +- .../BlockAllowListAuthenticatorTest.java | 4 +- .../CircuitBreakerRuleDictionaryTest.java | 4 +- .../composite/ResourceHealthCheckerTest.java | 4 +- .../utils/CircuitBreakerUtilsTest.java | 4 +- .../consul/ConsulConfigConstants.java | 6 +- .../consul/ConsulConfigFileConnector.java | 4 +- .../connector/consul/RefreshEventData.java | 4 +- .../consul/utils/ConsulConfigFileUtils.java | 4 +- .../common/constant/ConnectorConstant.java | 4 +- .../composite/zero/InstanceListMeta.java | 4 +- .../connector/composite/zero/NetUtils.java | 4 +- .../composite/zero/TestConnectivityTask.java | 4 +- .../zero/TestConnectivityTaskManager.java | 4 +- .../connector/consul/ConsulServerUtils.java | 17 +- .../consul/ConsulServiceUpdateTask.java | 4 +- .../consul/service/ConsulService.java | 4 +- .../consul/service/InstanceService.java | 4 +- .../consul/service/ServiceService.java | 4 +- .../service/authority/AuthorityService.java | 4 +- .../service/authority/entity/AuthRule.java | 17 ++ .../authority/entity/AuthRuleGroup.java | 17 ++ .../service/authority/entity/AuthTag.java | 17 ++ .../authority/entity/TsfAuthConstant.java | 17 ++ .../CircuitBreakingService.java | 4 +- .../entity/CircuitBreakerApi.java | 17 ++ .../entity/CircuitBreakerRule.java | 17 ++ .../entity/CircuitBreakerStrategy.java | 17 ++ .../entity/TsfCircuitBreakerConstant.java | 17 ++ .../TsfCircuitBreakerIsolationLevelEnum.java | 17 ++ .../consul/service/common/TagCondition.java | 4 +- .../service/common/TagConditionUtil.java | 4 +- .../consul/service/common/TagConstant.java | 4 +- .../consul/service/common/TagRule.java | 4 +- .../consul/service/lane/LaneService.java | 4 +- .../consul/service/lane/entity/LaneGroup.java | 17 ++ .../consul/service/lane/entity/LaneInfo.java | 17 ++ .../consul/service/lane/entity/LaneRule.java | 17 ++ .../service/lane/entity/LaneRuleTag.java | 17 ++ .../lane/entity/RuleTagRelationship.java | 17 ++ .../service/lossless/LosslessService.java | 4 +- .../lossless/entity/WarmupSetting.java | 4 +- .../ratelimiting/RateLimitingService.java | 4 +- .../service/ratelimiting/entity/Rule.java | 4 +- .../router/NearByRouteRuleService.java | 4 +- .../consul/service/router/RoutingService.java | 4 +- .../service/router/entity/RouteAffinity.java | 17 ++ .../service/router/entity/RouteDest.java | 4 +- .../service/router/entity/RouteDestItem.java | 4 +- .../service/router/entity/RouteRule.java | 4 +- .../service/router/entity/RouteRuleGroup.java | 4 +- .../service/router/entity/RouteTag.java | 4 +- .../connector/nacos/NacosConnectorTests.java | 17 ++ .../plugins/connector/grpc/GrpcUtil.java | 17 ++ .../grpc/codec/ServicesCacheHandler.java | 20 +- .../plugins/connector/grpc/GrpcUtilTest.java | 17 ++ .../event/logger/LoggerEventReporter.java | 4 +- .../plugins/event/tsf/TsfEventDataUtils.java | 4 +- .../plugins/event/tsf/TsfEventReporter.java | 4 +- .../event/tsf/TsfEventReporterConfig.java | 17 ++ .../plugins/event/tsf/report/CloudEvent.java | 4 +- .../plugins/event/tsf/report/Event.java | 4 +- .../event/tsf/report/EventAttribute.java | 4 +- .../event/tsf/report/EventResponse.java | 4 +- .../plugins/event/tsf/v1/TsfEventData.java | 4 +- .../event/tsf/v1/TsfEventDataPair.java | 4 +- .../event/tsf/v1/TsfEventResponse.java | 4 +- .../plugins/event/tsf/v1/TsfGenericEvent.java | 4 +- .../polaris/plugins/stat/common/TestUtil.java | 17 ++ .../model/StatInfoRevisionCollectorTest.java | 18 ++ .../model/StatInfoStatefulCollectorTest.java | 18 ++ .../stat/common/model/StatMetricTest.java | 17 ++ .../stat/common/util/SignatureUtilTest.java | 17 ++ .../stat/prometheus/exporter/PushGateway.java | 229 +++++++++--------- .../concurrency/ConcurrencyQuotaBucket.java | 4 +- .../RejectConcurrencyRateLimiter.java | 4 +- .../ratelimiter/tsf/TsfRateLimiter.java | 4 +- .../ratelimiter/tsf/TsfTokenBucket.java | 17 ++ .../plugins/ratelimiter/tsf/MockTicker.java | 17 ++ .../ratelimiter/tsf/TsfTokenBucketTest.java | 17 ++ .../router/healthy/RecoverRouterConfig.java | 17 ++ .../router/metadata/MetadataRouterConfig.java | 17 ++ .../router/namespace/NamespaceRouter.java | 4 +- .../router/namespace/NamespaceRouterTest.java | 4 +- .../router/nearby/NearbyRouterConfig.java | 13 +- .../router/rule/RuleBasedRouterConfig.java | 17 ++ .../plugins/router/rule/RuleMatchType.java | 17 ++ .../plugins/router/rule/RuleStatus.java | 17 ++ .../client/flow/AsyncRateLimitConnector.java | 29 ++- .../client/flow/DurationBaseCallback.java | 17 ++ .../ratelimit/client/flow/HostIdentifier.java | 17 ++ .../client/flow/InitializeRecord.java | 18 ++ .../client/flow/StreamCounterSet.java | 21 +- .../client/sync/PolarisRemoteSyncTask.java | 4 +- .../ratelimit/client/sync/RemoteSyncTask.java | 4 +- .../client/sync/tsf/ReportRequest.java | 4 +- .../client/sync/tsf/ReportResponse.java | 4 +- .../sync/tsf/TsfRateLimitConstants.java | 4 +- .../sync/tsf/TsfRateLimitMasterUtils.java | 4 +- .../client/sync/tsf/TsfRemoteSyncTask.java | 4 +- .../client/utils/RateLimiterEventUtils.java | 4 +- .../sync/tsf/TsfRateLimitMasterUtilsTest.java | 4 +- 170 files changed, 1379 insertions(+), 454 deletions(-) diff --git a/polaris-auth/polaris-auth-api/src/main/java/com/tencent/polaris/auth/api/core/AuthAPI.java b/polaris-auth/polaris-auth-api/src/main/java/com/tencent/polaris/auth/api/core/AuthAPI.java index dc1cf43e8..87a4b941a 100644 --- a/polaris-auth/polaris-auth-api/src/main/java/com/tencent/polaris/auth/api/core/AuthAPI.java +++ b/polaris-auth/polaris-auth-api/src/main/java/com/tencent/polaris/auth/api/core/AuthAPI.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-auth/polaris-auth-api/src/main/java/com/tencent/polaris/auth/api/rpc/AuthRequest.java b/polaris-auth/polaris-auth-api/src/main/java/com/tencent/polaris/auth/api/rpc/AuthRequest.java index 9babda03b..7dc6f7815 100644 --- a/polaris-auth/polaris-auth-api/src/main/java/com/tencent/polaris/auth/api/rpc/AuthRequest.java +++ b/polaris-auth/polaris-auth-api/src/main/java/com/tencent/polaris/auth/api/rpc/AuthRequest.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-auth/polaris-auth-api/src/main/java/com/tencent/polaris/auth/api/rpc/AuthResponse.java b/polaris-auth/polaris-auth-api/src/main/java/com/tencent/polaris/auth/api/rpc/AuthResponse.java index 90be24022..5a2a20876 100644 --- a/polaris-auth/polaris-auth-api/src/main/java/com/tencent/polaris/auth/api/rpc/AuthResponse.java +++ b/polaris-auth/polaris-auth-api/src/main/java/com/tencent/polaris/auth/api/rpc/AuthResponse.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-auth/polaris-auth-client/src/main/java/com/tencent/polaris/auth/client/flow/DefaultAuthFlow.java b/polaris-auth/polaris-auth-client/src/main/java/com/tencent/polaris/auth/client/flow/DefaultAuthFlow.java index 421ec010d..bdbcd7f5e 100644 --- a/polaris-auth/polaris-auth-client/src/main/java/com/tencent/polaris/auth/client/flow/DefaultAuthFlow.java +++ b/polaris-auth/polaris-auth-client/src/main/java/com/tencent/polaris/auth/client/flow/DefaultAuthFlow.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-common/polaris-client/src/main/java/com/tencent/polaris/client/flow/ResourcesResponse.java b/polaris-common/polaris-client/src/main/java/com/tencent/polaris/client/flow/ResourcesResponse.java index 961823dd0..0f5867d86 100644 --- a/polaris-common/polaris-client/src/main/java/com/tencent/polaris/client/flow/ResourcesResponse.java +++ b/polaris-common/polaris-client/src/main/java/com/tencent/polaris/client/flow/ResourcesResponse.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making Polaris available. * - * Copyright (C) 2019 - 2020. THL A29 Limited, a Tencent company. All rights reserved. + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the BSD 3-Clause License (the "License"); * you may not use this file except in compliance with the License. diff --git a/polaris-common/polaris-config/src/main/java/com/tencent/polaris/api/config/configuration/ConfigFileConfig.java b/polaris-common/polaris-config/src/main/java/com/tencent/polaris/api/config/configuration/ConfigFileConfig.java index 9ee58e482..4b25f6370 100644 --- a/polaris-common/polaris-config/src/main/java/com/tencent/polaris/api/config/configuration/ConfigFileConfig.java +++ b/polaris-common/polaris-config/src/main/java/com/tencent/polaris/api/config/configuration/ConfigFileConfig.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.api.config.configuration; import com.tencent.polaris.api.config.verify.Verifier; diff --git a/polaris-common/polaris-config/src/main/java/com/tencent/polaris/api/config/configuration/ConnectorConfig.java b/polaris-common/polaris-config/src/main/java/com/tencent/polaris/api/config/configuration/ConnectorConfig.java index 22692508f..d0c1e8d73 100644 --- a/polaris-common/polaris-config/src/main/java/com/tencent/polaris/api/config/configuration/ConnectorConfig.java +++ b/polaris-common/polaris-config/src/main/java/com/tencent/polaris/api/config/configuration/ConnectorConfig.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.api.config.configuration; import com.tencent.polaris.api.config.global.ServerConnectorConfig; diff --git a/polaris-common/polaris-config/src/main/java/com/tencent/polaris/api/config/consumer/WeightAdjustConfig.java b/polaris-common/polaris-config/src/main/java/com/tencent/polaris/api/config/consumer/WeightAdjustConfig.java index 179c21ff6..d2572d8f8 100644 --- a/polaris-common/polaris-config/src/main/java/com/tencent/polaris/api/config/consumer/WeightAdjustConfig.java +++ b/polaris-common/polaris-config/src/main/java/com/tencent/polaris/api/config/consumer/WeightAdjustConfig.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.api.config.consumer; import java.util.List; diff --git a/polaris-common/polaris-config/src/main/java/com/tencent/polaris/api/config/global/AdminConfig.java b/polaris-common/polaris-config/src/main/java/com/tencent/polaris/api/config/global/AdminConfig.java index cfdf238a6..8cbba1543 100644 --- a/polaris-common/polaris-config/src/main/java/com/tencent/polaris/api/config/global/AdminConfig.java +++ b/polaris-common/polaris-config/src/main/java/com/tencent/polaris/api/config/global/AdminConfig.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-common/polaris-config/src/main/java/com/tencent/polaris/api/config/plugin/PluginConfigProvider.java b/polaris-common/polaris-config/src/main/java/com/tencent/polaris/api/config/plugin/PluginConfigProvider.java index 0b63618b7..3d9252d08 100644 --- a/polaris-common/polaris-config/src/main/java/com/tencent/polaris/api/config/plugin/PluginConfigProvider.java +++ b/polaris-common/polaris-config/src/main/java/com/tencent/polaris/api/config/plugin/PluginConfigProvider.java @@ -3,15 +3,16 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in - * compliance with the License. You may obtain a copy of the License at + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause * - * 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. + * 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.tencent.polaris.api.config.plugin; diff --git a/polaris-common/polaris-config/src/main/java/com/tencent/polaris/factory/config/configuration/ConfigFileConfigImpl.java b/polaris-common/polaris-config/src/main/java/com/tencent/polaris/factory/config/configuration/ConfigFileConfigImpl.java index 6925c53e1..b037f826e 100644 --- a/polaris-common/polaris-config/src/main/java/com/tencent/polaris/factory/config/configuration/ConfigFileConfigImpl.java +++ b/polaris-common/polaris-config/src/main/java/com/tencent/polaris/factory/config/configuration/ConfigFileConfigImpl.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.factory.config.configuration; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/polaris-common/polaris-config/src/main/java/com/tencent/polaris/factory/config/configuration/ConnectorConfigImpl.java b/polaris-common/polaris-config/src/main/java/com/tencent/polaris/factory/config/configuration/ConnectorConfigImpl.java index b7444260b..0c258a5e3 100644 --- a/polaris-common/polaris-config/src/main/java/com/tencent/polaris/factory/config/configuration/ConnectorConfigImpl.java +++ b/polaris-common/polaris-config/src/main/java/com/tencent/polaris/factory/config/configuration/ConnectorConfigImpl.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.factory.config.configuration; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/polaris-common/polaris-config/src/main/java/com/tencent/polaris/factory/config/consumer/ServiceRouterConfigImpl.java b/polaris-common/polaris-config/src/main/java/com/tencent/polaris/factory/config/consumer/ServiceRouterConfigImpl.java index b6260096f..82f534c6e 100644 --- a/polaris-common/polaris-config/src/main/java/com/tencent/polaris/factory/config/consumer/ServiceRouterConfigImpl.java +++ b/polaris-common/polaris-config/src/main/java/com/tencent/polaris/factory/config/consumer/ServiceRouterConfigImpl.java @@ -3,15 +3,16 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in - * compliance with the License. You may obtain a copy of the License at + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause * - * 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. + * 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.tencent.polaris.factory.config.consumer; diff --git a/polaris-common/polaris-config/src/main/java/com/tencent/polaris/factory/config/global/AdminConfigImpl.java b/polaris-common/polaris-config/src/main/java/com/tencent/polaris/factory/config/global/AdminConfigImpl.java index 11645e85c..eded13bf7 100644 --- a/polaris-common/polaris-config/src/main/java/com/tencent/polaris/factory/config/global/AdminConfigImpl.java +++ b/polaris-common/polaris-config/src/main/java/com/tencent/polaris/factory/config/global/AdminConfigImpl.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-common/polaris-config/src/main/java/com/tencent/polaris/factory/replace/SystemPropertyPlaceholderResolver.java b/polaris-common/polaris-config/src/main/java/com/tencent/polaris/factory/replace/SystemPropertyPlaceholderResolver.java index 79f4b5da2..dcf96307d 100644 --- a/polaris-common/polaris-config/src/main/java/com/tencent/polaris/factory/replace/SystemPropertyPlaceholderResolver.java +++ b/polaris-common/polaris-config/src/main/java/com/tencent/polaris/factory/replace/SystemPropertyPlaceholderResolver.java @@ -1,17 +1,18 @@ /* - * Copyright 2002-2018 the original author or authors. + * Tencent is pleased to support the open source community by making Polaris available. * - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://opensource.org/licenses/BSD-3-Clause * - * 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. + * 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.tencent.polaris.factory.replace; diff --git a/polaris-common/polaris-config/src/main/java/com/tencent/polaris/factory/util/IPV4Util.java b/polaris-common/polaris-config/src/main/java/com/tencent/polaris/factory/util/IPV4Util.java index 8d59a90c8..a4c0536a2 100644 --- a/polaris-common/polaris-config/src/main/java/com/tencent/polaris/factory/util/IPV4Util.java +++ b/polaris-common/polaris-config/src/main/java/com/tencent/polaris/factory/util/IPV4Util.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.factory.util; /** diff --git a/polaris-common/polaris-config/src/main/java/com/tencent/polaris/factory/util/PropertyPlaceholderHelper.java b/polaris-common/polaris-config/src/main/java/com/tencent/polaris/factory/util/PropertyPlaceholderHelper.java index 45f3ad7ea..93c7de680 100644 --- a/polaris-common/polaris-config/src/main/java/com/tencent/polaris/factory/util/PropertyPlaceholderHelper.java +++ b/polaris-common/polaris-config/src/main/java/com/tencent/polaris/factory/util/PropertyPlaceholderHelper.java @@ -1,17 +1,18 @@ /* - * Copyright 2002-2018 the original author or authors. + * Tencent is pleased to support the open source community by making Polaris available. * - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://opensource.org/licenses/BSD-3-Clause * - * 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. + * 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.tencent.polaris.factory.util; diff --git a/polaris-common/polaris-metadata/src/main/java/com/tencent/polaris/metadata/core/constant/MetadataConstants.java b/polaris-common/polaris-metadata/src/main/java/com/tencent/polaris/metadata/core/constant/MetadataConstants.java index b88849250..c5c8c4532 100644 --- a/polaris-common/polaris-metadata/src/main/java/com/tencent/polaris/metadata/core/constant/MetadataConstants.java +++ b/polaris-common/polaris-metadata/src/main/java/com/tencent/polaris/metadata/core/constant/MetadataConstants.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-common/polaris-metadata/src/main/java/com/tencent/polaris/metadata/core/constant/TsfMetadataConstants.java b/polaris-common/polaris-metadata/src/main/java/com/tencent/polaris/metadata/core/constant/TsfMetadataConstants.java index d1827aff1..ea4b6b258 100644 --- a/polaris-common/polaris-metadata/src/main/java/com/tencent/polaris/metadata/core/constant/TsfMetadataConstants.java +++ b/polaris-common/polaris-metadata/src/main/java/com/tencent/polaris/metadata/core/constant/TsfMetadataConstants.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/pojo/HttpElement.java b/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/pojo/HttpElement.java index 08fb92061..4b54e7595 100644 --- a/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/pojo/HttpElement.java +++ b/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/pojo/HttpElement.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/pojo/ServiceEventKey.java b/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/pojo/ServiceEventKey.java index 6cd7464a9..402926655 100644 --- a/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/pojo/ServiceEventKey.java +++ b/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/pojo/ServiceEventKey.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.api.pojo; import com.tencent.polaris.api.utils.StringUtils; diff --git a/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/pojo/Services.java b/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/pojo/Services.java index daed29ae5..2cc7a54a7 100644 --- a/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/pojo/Services.java +++ b/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/pojo/Services.java @@ -1,18 +1,18 @@ /* - * Tencent is pleased to support the open source community by making Polaris available. + * Tencent is pleased to support the open source community by making Polaris available. * - * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * https://opensource.org/licenses/BSD-3-Clause + * https://opensource.org/licenses/BSD-3-Clause * - * 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. + * 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.tencent.polaris.api.pojo; diff --git a/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/pojo/TrieNode.java b/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/pojo/TrieNode.java index 3baa8e97f..c8420b4f9 100644 --- a/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/pojo/TrieNode.java +++ b/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/pojo/TrieNode.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/rpc/RuleBasedRouterFailoverType.java b/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/rpc/RuleBasedRouterFailoverType.java index 903fa3b39..672afa472 100644 --- a/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/rpc/RuleBasedRouterFailoverType.java +++ b/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/rpc/RuleBasedRouterFailoverType.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.api.rpc; /** diff --git a/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/utils/CompareUtils.java b/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/utils/CompareUtils.java index da7135790..75beda8a2 100644 --- a/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/utils/CompareUtils.java +++ b/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/utils/CompareUtils.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/utils/IPAddressUtils.java b/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/utils/IPAddressUtils.java index 271812bd7..c8fa60ad6 100644 --- a/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/utils/IPAddressUtils.java +++ b/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/utils/IPAddressUtils.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/utils/TrieUtil.java b/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/utils/TrieUtil.java index bf7717e53..f52f2c95e 100644 --- a/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/utils/TrieUtil.java +++ b/polaris-common/polaris-model/src/main/java/com/tencent/polaris/api/utils/TrieUtil.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-common/polaris-model/src/main/java/com/tencent/polaris/client/pojo/ServicesByProto.java b/polaris-common/polaris-model/src/main/java/com/tencent/polaris/client/pojo/ServicesByProto.java index 39266f4c9..89eecb06e 100644 --- a/polaris-common/polaris-model/src/main/java/com/tencent/polaris/client/pojo/ServicesByProto.java +++ b/polaris-common/polaris-model/src/main/java/com/tencent/polaris/client/pojo/ServicesByProto.java @@ -1,18 +1,18 @@ /* - * Tencent is pleased to support the open source community by making Polaris available. + * Tencent is pleased to support the open source community by making Polaris available. * - * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * https://opensource.org/licenses/BSD-3-Clause + * https://opensource.org/licenses/BSD-3-Clause * - * 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. + * 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.tencent.polaris.client.pojo; diff --git a/polaris-common/polaris-model/src/main/java/com/tencent/polaris/client/util/EscapeNonAsciiWriter.java b/polaris-common/polaris-model/src/main/java/com/tencent/polaris/client/util/EscapeNonAsciiWriter.java index dad610243..93e38a96e 100644 --- a/polaris-common/polaris-model/src/main/java/com/tencent/polaris/client/util/EscapeNonAsciiWriter.java +++ b/polaris-common/polaris-model/src/main/java/com/tencent/polaris/client/util/EscapeNonAsciiWriter.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-common/polaris-model/src/test/java/com/tencent/polaris/api/utils/CompareUtilsTest.java b/polaris-common/polaris-model/src/test/java/com/tencent/polaris/api/utils/CompareUtilsTest.java index 51e3ec152..7eca58ee7 100644 --- a/polaris-common/polaris-model/src/test/java/com/tencent/polaris/api/utils/CompareUtilsTest.java +++ b/polaris-common/polaris-model/src/test/java/com/tencent/polaris/api/utils/CompareUtilsTest.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-common/polaris-model/src/test/java/com/tencent/polaris/api/utils/RuleUtilsTest.java b/polaris-common/polaris-model/src/test/java/com/tencent/polaris/api/utils/RuleUtilsTest.java index 8dafda7d0..81c533819 100644 --- a/polaris-common/polaris-model/src/test/java/com/tencent/polaris/api/utils/RuleUtilsTest.java +++ b/polaris-common/polaris-model/src/test/java/com/tencent/polaris/api/utils/RuleUtilsTest.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-common/polaris-model/src/test/java/com/tencent/polaris/api/utils/StringUtilsTest.java b/polaris-common/polaris-model/src/test/java/com/tencent/polaris/api/utils/StringUtilsTest.java index d691ac22b..0e4cb2352 100644 --- a/polaris-common/polaris-model/src/test/java/com/tencent/polaris/api/utils/StringUtilsTest.java +++ b/polaris-common/polaris-model/src/test/java/com/tencent/polaris/api/utils/StringUtilsTest.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-common/polaris-model/src/test/java/com/tencent/polaris/api/utils/TrieUtilTest.java b/polaris-common/polaris-model/src/test/java/com/tencent/polaris/api/utils/TrieUtilTest.java index 238951b47..e079398f2 100644 --- a/polaris-common/polaris-model/src/test/java/com/tencent/polaris/api/utils/TrieUtilTest.java +++ b/polaris-common/polaris-model/src/test/java/com/tencent/polaris/api/utils/TrieUtilTest.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-common/polaris-threadlocal/src/main/java/com/tencent/polaris/threadlocal/cross/CompletableFutureUtils.java b/polaris-common/polaris-threadlocal/src/main/java/com/tencent/polaris/threadlocal/cross/CompletableFutureUtils.java index f1b5e1de3..97490b687 100644 --- a/polaris-common/polaris-threadlocal/src/main/java/com/tencent/polaris/threadlocal/cross/CompletableFutureUtils.java +++ b/polaris-common/polaris-threadlocal/src/main/java/com/tencent/polaris/threadlocal/cross/CompletableFutureUtils.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-discovery/polaris-discovery-api/src/main/java/com/tencent/polaris/api/core/ConsumerAPI.java b/polaris-discovery/polaris-discovery-api/src/main/java/com/tencent/polaris/api/core/ConsumerAPI.java index 59ee38a02..472b08995 100644 --- a/polaris-discovery/polaris-discovery-api/src/main/java/com/tencent/polaris/api/core/ConsumerAPI.java +++ b/polaris-discovery/polaris-discovery-api/src/main/java/com/tencent/polaris/api/core/ConsumerAPI.java @@ -3,15 +3,16 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in - * compliance with the License. You may obtain a copy of the License at + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause * - * 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. + * 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.tencent.polaris.api.core; @@ -32,6 +33,7 @@ import com.tencent.polaris.api.rpc.UnWatchServiceRequest; import com.tencent.polaris.api.rpc.WatchServiceRequest; import com.tencent.polaris.api.rpc.WatchServiceResponse; + import java.io.Closeable; /** @@ -77,9 +79,7 @@ public interface ConsumerAPI extends AutoCloseable, Closeable { * @param req 请求 * @return 单个服务实例 * @throws PolarisException 错误码及错误信息 - * - * @deprecated - * *

Use {@link com.tencent.polaris.assembly.api.AssemblyAPI#getOneInstance(com.tencent.polaris.assembly.api.pojo.GetOneInstanceRequest)} instead. + * @deprecated *

Use {@link com.tencent.polaris.assembly.api.AssemblyAPI#getOneInstance(com.tencent.polaris.assembly.api.pojo.GetOneInstanceRequest)} instead. */ @Deprecated InstancesResponse getOneInstance(GetOneInstanceRequest req) throws PolarisException; @@ -90,9 +90,7 @@ public interface ConsumerAPI extends AutoCloseable, Closeable { * @param req 请求 * @return 过滤后的服务列表 * @throws PolarisException 错误码及错误信息 - * - * @deprecated - * *

Use {@link com.tencent.polaris.assembly.api.AssemblyAPI#getReachableInstances(com.tencent.polaris.assembly.api.pojo.GetReachableInstancesRequest)} instead. + * @deprecated *

Use {@link com.tencent.polaris.assembly.api.AssemblyAPI#getReachableInstances(com.tencent.polaris.assembly.api.pojo.GetReachableInstancesRequest)} instead. */ @Deprecated InstancesResponse getInstances(GetInstancesRequest req) throws PolarisException; @@ -129,9 +127,7 @@ public interface ConsumerAPI extends AutoCloseable, Closeable { * * @param req 调用结果(包括成功失败,返回码,以及时延) * @throws PolarisException 错误码及错误信息 - * - * @deprecated - * *

Use {@link com.tencent.polaris.assembly.api.AssemblyAPI#updateServiceCallResult(ServiceCallResult)} instead. + * @deprecated *

Use {@link com.tencent.polaris.assembly.api.AssemblyAPI#updateServiceCallResult(ServiceCallResult)} instead. */ @Deprecated void updateServiceCallResult(ServiceCallResult req) throws PolarisException; @@ -167,7 +163,7 @@ public interface ConsumerAPI extends AutoCloseable, Closeable { * 取消服务的监听 * case 1. 移除对 service 的所有 Listener * case 2. 只移除部分对 service 的 Listener - * + *

* 移除部分Listener与移除全部Listener是互斥的,每次 unWatch 只能执行其中的一种 case * * @param request 取消监听请求 diff --git a/polaris-discovery/polaris-discovery-api/src/main/java/com/tencent/polaris/api/rpc/GetHealthyInstancesRequest.java b/polaris-discovery/polaris-discovery-api/src/main/java/com/tencent/polaris/api/rpc/GetHealthyInstancesRequest.java index 9be50c7ba..fa1ce3012 100644 --- a/polaris-discovery/polaris-discovery-api/src/main/java/com/tencent/polaris/api/rpc/GetHealthyInstancesRequest.java +++ b/polaris-discovery/polaris-discovery-api/src/main/java/com/tencent/polaris/api/rpc/GetHealthyInstancesRequest.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.api.rpc; /** diff --git a/polaris-discovery/polaris-discovery-api/src/main/java/com/tencent/polaris/api/rpc/ServiceRuleResponse.java b/polaris-discovery/polaris-discovery-api/src/main/java/com/tencent/polaris/api/rpc/ServiceRuleResponse.java index c0c24c654..e3acac57e 100644 --- a/polaris-discovery/polaris-discovery-api/src/main/java/com/tencent/polaris/api/rpc/ServiceRuleResponse.java +++ b/polaris-discovery/polaris-discovery-api/src/main/java/com/tencent/polaris/api/rpc/ServiceRuleResponse.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making Polaris available. * - * Copyright (C) 2019 - 2020. THL A29 Limited, a Tencent company. All rights reserved. + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the BSD 3-Clause License (the "License"); * you may not use this file except in compliance with the License. diff --git a/polaris-discovery/polaris-discovery-api/src/main/java/com/tencent/polaris/api/rpc/ServicesResponse.java b/polaris-discovery/polaris-discovery-api/src/main/java/com/tencent/polaris/api/rpc/ServicesResponse.java index 7b531ad28..d44931dcd 100644 --- a/polaris-discovery/polaris-discovery-api/src/main/java/com/tencent/polaris/api/rpc/ServicesResponse.java +++ b/polaris-discovery/polaris-discovery-api/src/main/java/com/tencent/polaris/api/rpc/ServicesResponse.java @@ -1,5 +1,4 @@ /* - * * Tencent is pleased to support the open source community by making Polaris available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. @@ -14,7 +13,6 @@ * 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.tencent.polaris.api.rpc; @@ -30,7 +28,7 @@ * * @author liaochuntao */ -public class ServicesResponse extends BaseEntity { +public class ServicesResponse extends BaseEntity { private final Services services; diff --git a/polaris-discovery/polaris-discovery-api/src/main/java/com/tencent/polaris/api/rpc/UnWatchInstancesRequest.java b/polaris-discovery/polaris-discovery-api/src/main/java/com/tencent/polaris/api/rpc/UnWatchInstancesRequest.java index 0f5b19263..3719cdba8 100644 --- a/polaris-discovery/polaris-discovery-api/src/main/java/com/tencent/polaris/api/rpc/UnWatchInstancesRequest.java +++ b/polaris-discovery/polaris-discovery-api/src/main/java/com/tencent/polaris/api/rpc/UnWatchInstancesRequest.java @@ -1,5 +1,4 @@ /* - * * Tencent is pleased to support the open source community by making Polaris available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. @@ -14,7 +13,6 @@ * 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.tencent.polaris.api.rpc; diff --git a/polaris-discovery/polaris-discovery-api/src/main/java/com/tencent/polaris/api/rpc/UnWatchServiceRequest.java b/polaris-discovery/polaris-discovery-api/src/main/java/com/tencent/polaris/api/rpc/UnWatchServiceRequest.java index 01c82624e..b4a1fcb7d 100644 --- a/polaris-discovery/polaris-discovery-api/src/main/java/com/tencent/polaris/api/rpc/UnWatchServiceRequest.java +++ b/polaris-discovery/polaris-discovery-api/src/main/java/com/tencent/polaris/api/rpc/UnWatchServiceRequest.java @@ -1,5 +1,4 @@ /* - * * Tencent is pleased to support the open source community by making Polaris available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. @@ -14,7 +13,6 @@ * 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.tencent.polaris.api.rpc; diff --git a/polaris-discovery/polaris-discovery-api/src/main/java/com/tencent/polaris/api/rpc/WatchServiceRequest.java b/polaris-discovery/polaris-discovery-api/src/main/java/com/tencent/polaris/api/rpc/WatchServiceRequest.java index 7963a2468..8e9416e86 100644 --- a/polaris-discovery/polaris-discovery-api/src/main/java/com/tencent/polaris/api/rpc/WatchServiceRequest.java +++ b/polaris-discovery/polaris-discovery-api/src/main/java/com/tencent/polaris/api/rpc/WatchServiceRequest.java @@ -1,5 +1,4 @@ /* - * * Tencent is pleased to support the open source community by making Polaris available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. @@ -14,7 +13,6 @@ * 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.tencent.polaris.api.rpc; diff --git a/polaris-discovery/polaris-discovery-client/src/main/java/com/tencent/polaris/discovery/client/api/DefaultProviderAPI.java b/polaris-discovery/polaris-discovery-client/src/main/java/com/tencent/polaris/discovery/client/api/DefaultProviderAPI.java index c6308aeb7..574a3cfd0 100644 --- a/polaris-discovery/polaris-discovery-client/src/main/java/com/tencent/polaris/discovery/client/api/DefaultProviderAPI.java +++ b/polaris-discovery/polaris-discovery-client/src/main/java/com/tencent/polaris/discovery/client/api/DefaultProviderAPI.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.discovery.client.api; import com.tencent.polaris.api.core.ProviderAPI; diff --git a/polaris-discovery/polaris-discovery-client/src/main/java/com/tencent/polaris/discovery/client/flow/CommonServicesRequest.java b/polaris-discovery/polaris-discovery-client/src/main/java/com/tencent/polaris/discovery/client/flow/CommonServicesRequest.java index c892e1027..e38c2820d 100644 --- a/polaris-discovery/polaris-discovery-client/src/main/java/com/tencent/polaris/discovery/client/flow/CommonServicesRequest.java +++ b/polaris-discovery/polaris-discovery-client/src/main/java/com/tencent/polaris/discovery/client/flow/CommonServicesRequest.java @@ -1,18 +1,18 @@ /* - * Tencent is pleased to support the open source community by making Polaris available. + * Tencent is pleased to support the open source community by making Polaris available. * - * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * https://opensource.org/licenses/BSD-3-Clause + * https://opensource.org/licenses/BSD-3-Clause * - * 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. + * 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.tencent.polaris.discovery.client.flow; @@ -25,6 +25,7 @@ import com.tencent.polaris.api.rpc.GetServicesRequest; import com.tencent.polaris.client.flow.BaseFlow; import com.tencent.polaris.client.flow.FlowControlParam; + import java.util.Collections; import java.util.Set; diff --git a/polaris-discovery/polaris-discovery-factory/src/test/java/com/tencent/polaris/discovery/test/core/GetServicesTest.java b/polaris-discovery/polaris-discovery-factory/src/test/java/com/tencent/polaris/discovery/test/core/GetServicesTest.java index 00194379d..b0d3f0f5a 100644 --- a/polaris-discovery/polaris-discovery-factory/src/test/java/com/tencent/polaris/discovery/test/core/GetServicesTest.java +++ b/polaris-discovery/polaris-discovery-factory/src/test/java/com/tencent/polaris/discovery/test/core/GetServicesTest.java @@ -1,18 +1,18 @@ /* - * Tencent is pleased to support the open source community by making Polaris available. + * Tencent is pleased to support the open source community by making Polaris available. * - * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * https://opensource.org/licenses/BSD-3-Clause + * https://opensource.org/licenses/BSD-3-Clause * - * 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. + * 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.tencent.polaris.discovery.test.core; @@ -30,7 +30,9 @@ import com.tencent.polaris.factory.api.DiscoveryAPIFactory; import com.tencent.polaris.test.common.TestUtils; import com.tencent.polaris.test.mock.discovery.NamingServer; + import java.io.IOException; + import org.junit.After; import org.junit.Assert; import org.junit.Before; @@ -61,7 +63,7 @@ public void testRoundTrip() { Configuration configuration = TestUtils.configWithEnvAddress(); try (ConsumerAPI consumerAPI = DiscoveryAPIFactory.createConsumerAPIByConfig(configuration)) { for (int i = 0; i < 5; i++) { - namingServer.getNamingService().addService(new ServiceKey(NAMESPACE_TEST, "get_services_test_" + i)); + namingServer.getNamingService().addService(new ServiceKey(NAMESPACE_TEST, "get_services_test_" + i)); } ServicesResponse response = consumerAPI.getServices(GetServicesRequest.builder().namespace(NAMESPACE_TEST).build()); diff --git a/polaris-discovery/polaris-discovery-factory/src/test/java/com/tencent/polaris/discovery/test/core/MetadataRouterTest.java b/polaris-discovery/polaris-discovery-factory/src/test/java/com/tencent/polaris/discovery/test/core/MetadataRouterTest.java index b4a725ebf..7807a24e5 100644 --- a/polaris-discovery/polaris-discovery-factory/src/test/java/com/tencent/polaris/discovery/test/core/MetadataRouterTest.java +++ b/polaris-discovery/polaris-discovery-factory/src/test/java/com/tencent/polaris/discovery/test/core/MetadataRouterTest.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.discovery.test.core; import static com.tencent.polaris.test.common.Consts.NAMESPACE_PRODUCTION; @@ -15,9 +32,11 @@ import com.tencent.polaris.test.common.TestUtils; import com.tencent.polaris.test.mock.discovery.NamingServer; import com.tencent.polaris.test.mock.discovery.NamingService.InstanceParameter; + import java.io.IOException; import java.util.HashMap; import java.util.Map; + import org.junit.After; import org.junit.Assert; import org.junit.Before; diff --git a/polaris-discovery/polaris-discovery-factory/src/test/java/com/tencent/polaris/discovery/test/core/ServiceDynamicRuleTest.java b/polaris-discovery/polaris-discovery-factory/src/test/java/com/tencent/polaris/discovery/test/core/ServiceDynamicRuleTest.java index 9f43ca0ea..c206bf958 100644 --- a/polaris-discovery/polaris-discovery-factory/src/test/java/com/tencent/polaris/discovery/test/core/ServiceDynamicRuleTest.java +++ b/polaris-discovery/polaris-discovery-factory/src/test/java/com/tencent/polaris/discovery/test/core/ServiceDynamicRuleTest.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.discovery.test.core; import static com.tencent.polaris.test.common.Consts.NAMESPACE_PRODUCTION; @@ -23,9 +40,11 @@ import com.tencent.polaris.test.common.TestUtils; import com.tencent.polaris.test.mock.discovery.NamingServer; import com.tencent.polaris.test.mock.discovery.NamingService.InstanceParameter; + import java.io.IOException; import java.util.HashMap; import java.util.Map; + import org.junit.After; import org.junit.Assert; import org.junit.Before; @@ -74,11 +93,11 @@ public void before() { .build()); Routing routing = Routing.newBuilder() .addInbounds(Route.newBuilder().addDestinations(Destination.newBuilder().putAllMetadata(data).setWeight( - UInt32Value.newBuilder().setValue(100).build()).build()) + UInt32Value.newBuilder().setValue(100).build()).build()) .addSources(Source.newBuilder().setNamespace(StringValue.newBuilder().setValue("*").build()) .setService( StringValue.newBuilder().setValue("*").build()). - putAllMetadata(srcData).build()).build()) + putAllMetadata(srcData).build()).build()) .build(); namingServer.getNamingService().setRouting(serviceKey, routing); } diff --git a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/auth/AuthInfo.java b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/auth/AuthInfo.java index eca475fe4..5dc84bd8e 100644 --- a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/auth/AuthInfo.java +++ b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/auth/AuthInfo.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/auth/AuthResult.java b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/auth/AuthResult.java index 31dabc86f..554c27d18 100644 --- a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/auth/AuthResult.java +++ b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/auth/AuthResult.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/auth/Authenticator.java b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/auth/Authenticator.java index 6413dd46a..8fc95da5c 100644 --- a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/auth/Authenticator.java +++ b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/auth/Authenticator.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/cache/CacheConstants.java b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/cache/CacheConstants.java index 3ef04e6c1..f6bb4a552 100644 --- a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/cache/CacheConstants.java +++ b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/cache/CacheConstants.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/cache/FlowCacheUtils.java b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/cache/FlowCacheUtils.java index a967f0a23..bd7fd3f41 100644 --- a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/cache/FlowCacheUtils.java +++ b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/cache/FlowCacheUtils.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/common/ValueContext.java b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/common/ValueContext.java index a176cfece..bd7423dbc 100644 --- a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/common/ValueContext.java +++ b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/common/ValueContext.java @@ -3,15 +3,16 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in - * compliance with the License. You may obtain a copy of the License at + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause * - * 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. + * 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.tencent.polaris.api.plugin.common; diff --git a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/event/EventReporter.java b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/event/EventReporter.java index 737001d2a..2aad6f9b8 100644 --- a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/event/EventReporter.java +++ b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/event/EventReporter.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/event/FlowEvent.java b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/event/FlowEvent.java index e2eb1d118..97cfcf99d 100644 --- a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/event/FlowEvent.java +++ b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/event/FlowEvent.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/event/FlowEventConstants.java b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/event/FlowEventConstants.java index fedecbb93..4463f6e89 100644 --- a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/event/FlowEventConstants.java +++ b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/event/FlowEventConstants.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/event/tsf/TsfEventDataConstants.java b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/event/tsf/TsfEventDataConstants.java index 2dee0828b..286c93c8d 100644 --- a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/event/tsf/TsfEventDataConstants.java +++ b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/event/tsf/TsfEventDataConstants.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/ratelimiter/ServiceRateLimiter.java b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/ratelimiter/ServiceRateLimiter.java index da73074ef..69d3cc9d6 100644 --- a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/ratelimiter/ServiceRateLimiter.java +++ b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/ratelimiter/ServiceRateLimiter.java @@ -3,15 +3,16 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in - * compliance with the License. You may obtain a copy of the License at + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause * - * 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. + * 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.tencent.polaris.api.plugin.ratelimiter; diff --git a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/route/RouteInfo.java b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/route/RouteInfo.java index f7efd67cc..e85fa6b6a 100644 --- a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/route/RouteInfo.java +++ b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/route/RouteInfo.java @@ -3,15 +3,16 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in - * compliance with the License. You may obtain a copy of the License at + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause * - * 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. + * 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.tencent.polaris.api.plugin.route; diff --git a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/route/RouterConstants.java b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/route/RouterConstants.java index 1670a2d49..6cf839a88 100644 --- a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/route/RouterConstants.java +++ b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/route/RouterConstants.java @@ -3,15 +3,16 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in - * compliance with the License. You may obtain a copy of the License at + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause * - * 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. + * 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.tencent.polaris.api.plugin.route; diff --git a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/server/InterfaceDescriptor.java b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/server/InterfaceDescriptor.java index 8f8f8536c..17114ccc7 100644 --- a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/server/InterfaceDescriptor.java +++ b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/server/InterfaceDescriptor.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/server/ReportClientRequest.java b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/server/ReportClientRequest.java index 037d0dabf..eebfce985 100644 --- a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/server/ReportClientRequest.java +++ b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/server/ReportClientRequest.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.api.plugin.server; import com.tencent.polaris.api.plugin.stat.ReporterMetaInfo; diff --git a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/server/ReportClientResponse.java b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/server/ReportClientResponse.java index 7442e3a45..aaa7c2ae0 100644 --- a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/server/ReportClientResponse.java +++ b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/server/ReportClientResponse.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.api.plugin.server; /** diff --git a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/server/ReportServiceContractRequest.java b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/server/ReportServiceContractRequest.java index eb0484db2..d7e350117 100644 --- a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/server/ReportServiceContractRequest.java +++ b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/server/ReportServiceContractRequest.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/server/ReportServiceContractResponse.java b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/server/ReportServiceContractResponse.java index fb3043e51..59775be02 100644 --- a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/server/ReportServiceContractResponse.java +++ b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/server/ReportServiceContractResponse.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/stat/CircuitBreakGauge.java b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/stat/CircuitBreakGauge.java index ae1a6d21a..8482ef3c2 100644 --- a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/stat/CircuitBreakGauge.java +++ b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/stat/CircuitBreakGauge.java @@ -3,15 +3,16 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in - * compliance with the License. You may obtain a copy of the License at + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause * - * 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. + * 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.tencent.polaris.api.plugin.stat; diff --git a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/stat/DefaultCircuitBreakResult.java b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/stat/DefaultCircuitBreakResult.java index 0209163a2..dd9f1ff15 100644 --- a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/stat/DefaultCircuitBreakResult.java +++ b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/stat/DefaultCircuitBreakResult.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.api.plugin.stat; import com.tencent.polaris.api.pojo.CircuitBreakerStatus; diff --git a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/stat/DefaultRateLimitResult.java b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/stat/DefaultRateLimitResult.java index 6dada8091..92aacda09 100644 --- a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/stat/DefaultRateLimitResult.java +++ b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/stat/DefaultRateLimitResult.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.api.plugin.stat; public class DefaultRateLimitResult implements RateLimitGauge { diff --git a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/stat/TraceConstants.java b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/stat/TraceConstants.java index e0d54a3a5..66d3578f5 100644 --- a/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/stat/TraceConstants.java +++ b/polaris-plugins/polaris-plugin-api/src/main/java/com/tencent/polaris/api/plugin/stat/TraceConstants.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-auth/auth-block-allow-list/src/main/java/com/tencent/polaris/plugins/auth/blockallowlist/BlockAllowListAuthenticator.java b/polaris-plugins/polaris-plugins-auth/auth-block-allow-list/src/main/java/com/tencent/polaris/plugins/auth/blockallowlist/BlockAllowListAuthenticator.java index 0df3295fa..34d4a38ee 100644 --- a/polaris-plugins/polaris-plugins-auth/auth-block-allow-list/src/main/java/com/tencent/polaris/plugins/auth/blockallowlist/BlockAllowListAuthenticator.java +++ b/polaris-plugins/polaris-plugins-auth/auth-block-allow-list/src/main/java/com/tencent/polaris/plugins/auth/blockallowlist/BlockAllowListAuthenticator.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-auth/auth-block-allow-list/src/test/java/com/tencent/polaris/plugins/auth/blockallowlist/BlockAllowListAuthenticatorTest.java b/polaris-plugins/polaris-plugins-auth/auth-block-allow-list/src/test/java/com/tencent/polaris/plugins/auth/blockallowlist/BlockAllowListAuthenticatorTest.java index 93fd46ef0..b1905df7f 100644 --- a/polaris-plugins/polaris-plugins-auth/auth-block-allow-list/src/test/java/com/tencent/polaris/plugins/auth/blockallowlist/BlockAllowListAuthenticatorTest.java +++ b/polaris-plugins/polaris-plugins-auth/auth-block-allow-list/src/test/java/com/tencent/polaris/plugins/auth/blockallowlist/BlockAllowListAuthenticatorTest.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-circuitbreaker/circuitbreaker-composite/src/test/java/com/tencent/polaris/plugins/circuitbreaker/composite/CircuitBreakerRuleDictionaryTest.java b/polaris-plugins/polaris-plugins-circuitbreaker/circuitbreaker-composite/src/test/java/com/tencent/polaris/plugins/circuitbreaker/composite/CircuitBreakerRuleDictionaryTest.java index a36e6b5e6..a98387ccc 100644 --- a/polaris-plugins/polaris-plugins-circuitbreaker/circuitbreaker-composite/src/test/java/com/tencent/polaris/plugins/circuitbreaker/composite/CircuitBreakerRuleDictionaryTest.java +++ b/polaris-plugins/polaris-plugins-circuitbreaker/circuitbreaker-composite/src/test/java/com/tencent/polaris/plugins/circuitbreaker/composite/CircuitBreakerRuleDictionaryTest.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-circuitbreaker/circuitbreaker-composite/src/test/java/com/tencent/polaris/plugins/circuitbreaker/composite/ResourceHealthCheckerTest.java b/polaris-plugins/polaris-plugins-circuitbreaker/circuitbreaker-composite/src/test/java/com/tencent/polaris/plugins/circuitbreaker/composite/ResourceHealthCheckerTest.java index b7cf4cefe..fda6f7d70 100644 --- a/polaris-plugins/polaris-plugins-circuitbreaker/circuitbreaker-composite/src/test/java/com/tencent/polaris/plugins/circuitbreaker/composite/ResourceHealthCheckerTest.java +++ b/polaris-plugins/polaris-plugins-circuitbreaker/circuitbreaker-composite/src/test/java/com/tencent/polaris/plugins/circuitbreaker/composite/ResourceHealthCheckerTest.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-circuitbreaker/circuitbreaker-composite/src/test/java/com/tencent/polaris/plugins/circuitbreaker/composite/utils/CircuitBreakerUtilsTest.java b/polaris-plugins/polaris-plugins-circuitbreaker/circuitbreaker-composite/src/test/java/com/tencent/polaris/plugins/circuitbreaker/composite/utils/CircuitBreakerUtilsTest.java index 68b0bb5e0..98822f507 100644 --- a/polaris-plugins/polaris-plugins-circuitbreaker/circuitbreaker-composite/src/test/java/com/tencent/polaris/plugins/circuitbreaker/composite/utils/CircuitBreakerUtilsTest.java +++ b/polaris-plugins/polaris-plugins-circuitbreaker/circuitbreaker-composite/src/test/java/com/tencent/polaris/plugins/circuitbreaker/composite/utils/CircuitBreakerUtilsTest.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-configuration-connector/consul-configuration-connector/src/main/java/com/tencent/polaris/plugins/configuration/connector/consul/ConsulConfigConstants.java b/polaris-plugins/polaris-plugins-configuration-connector/consul-configuration-connector/src/main/java/com/tencent/polaris/plugins/configuration/connector/consul/ConsulConfigConstants.java index 9213bfc7e..c5c66b3d3 100644 --- a/polaris-plugins/polaris-plugins-configuration-connector/consul-configuration-connector/src/main/java/com/tencent/polaris/plugins/configuration/connector/consul/ConsulConfigConstants.java +++ b/polaris-plugins/polaris-plugins-configuration-connector/consul-configuration-connector/src/main/java/com/tencent/polaris/plugins/configuration/connector/consul/ConsulConfigConstants.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause @@ -27,7 +27,7 @@ public interface ConsulConfigConstants { String WAIT_TIME_KEY = "waitTime"; String DELAY_KEY = "delay"; - + String CONSUL_ERROR_SLEEP_KEY = "consulErrorSleep"; /** diff --git a/polaris-plugins/polaris-plugins-configuration-connector/consul-configuration-connector/src/main/java/com/tencent/polaris/plugins/configuration/connector/consul/ConsulConfigFileConnector.java b/polaris-plugins/polaris-plugins-configuration-connector/consul-configuration-connector/src/main/java/com/tencent/polaris/plugins/configuration/connector/consul/ConsulConfigFileConnector.java index c54224bf5..8ac7590c6 100644 --- a/polaris-plugins/polaris-plugins-configuration-connector/consul-configuration-connector/src/main/java/com/tencent/polaris/plugins/configuration/connector/consul/ConsulConfigFileConnector.java +++ b/polaris-plugins/polaris-plugins-configuration-connector/consul-configuration-connector/src/main/java/com/tencent/polaris/plugins/configuration/connector/consul/ConsulConfigFileConnector.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-configuration-connector/consul-configuration-connector/src/main/java/com/tencent/polaris/plugins/configuration/connector/consul/RefreshEventData.java b/polaris-plugins/polaris-plugins-configuration-connector/consul-configuration-connector/src/main/java/com/tencent/polaris/plugins/configuration/connector/consul/RefreshEventData.java index 3f166c798..a94e3ca1e 100644 --- a/polaris-plugins/polaris-plugins-configuration-connector/consul-configuration-connector/src/main/java/com/tencent/polaris/plugins/configuration/connector/consul/RefreshEventData.java +++ b/polaris-plugins/polaris-plugins-configuration-connector/consul-configuration-connector/src/main/java/com/tencent/polaris/plugins/configuration/connector/consul/RefreshEventData.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-configuration-connector/consul-configuration-connector/src/main/java/com/tencent/polaris/plugins/configuration/connector/consul/utils/ConsulConfigFileUtils.java b/polaris-plugins/polaris-plugins-configuration-connector/consul-configuration-connector/src/main/java/com/tencent/polaris/plugins/configuration/connector/consul/utils/ConsulConfigFileUtils.java index 5efef6729..42aa9c4eb 100644 --- a/polaris-plugins/polaris-plugins-configuration-connector/consul-configuration-connector/src/main/java/com/tencent/polaris/plugins/configuration/connector/consul/utils/ConsulConfigFileUtils.java +++ b/polaris-plugins/polaris-plugins-configuration-connector/consul-configuration-connector/src/main/java/com/tencent/polaris/plugins/configuration/connector/consul/utils/ConsulConfigFileUtils.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-connector/connector-common/src/main/java/com/tencent/polaris/plugins/connector/common/constant/ConnectorConstant.java b/polaris-plugins/polaris-plugins-connector/connector-common/src/main/java/com/tencent/polaris/plugins/connector/common/constant/ConnectorConstant.java index 1bb738b38..4fa2ec58b 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-common/src/main/java/com/tencent/polaris/plugins/connector/common/constant/ConnectorConstant.java +++ b/polaris-plugins/polaris-plugins-connector/connector-common/src/main/java/com/tencent/polaris/plugins/connector/common/constant/ConnectorConstant.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-connector/connector-composite/src/main/java/com/tencent/polaris/plugins/connector/composite/zero/InstanceListMeta.java b/polaris-plugins/polaris-plugins-connector/connector-composite/src/main/java/com/tencent/polaris/plugins/connector/composite/zero/InstanceListMeta.java index b0695350a..59099bee3 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-composite/src/main/java/com/tencent/polaris/plugins/connector/composite/zero/InstanceListMeta.java +++ b/polaris-plugins/polaris-plugins-connector/connector-composite/src/main/java/com/tencent/polaris/plugins/connector/composite/zero/InstanceListMeta.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-connector/connector-composite/src/main/java/com/tencent/polaris/plugins/connector/composite/zero/NetUtils.java b/polaris-plugins/polaris-plugins-connector/connector-composite/src/main/java/com/tencent/polaris/plugins/connector/composite/zero/NetUtils.java index 3ead40a52..693750e84 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-composite/src/main/java/com/tencent/polaris/plugins/connector/composite/zero/NetUtils.java +++ b/polaris-plugins/polaris-plugins-connector/connector-composite/src/main/java/com/tencent/polaris/plugins/connector/composite/zero/NetUtils.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-connector/connector-composite/src/main/java/com/tencent/polaris/plugins/connector/composite/zero/TestConnectivityTask.java b/polaris-plugins/polaris-plugins-connector/connector-composite/src/main/java/com/tencent/polaris/plugins/connector/composite/zero/TestConnectivityTask.java index 87a0c508e..c71487fa7 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-composite/src/main/java/com/tencent/polaris/plugins/connector/composite/zero/TestConnectivityTask.java +++ b/polaris-plugins/polaris-plugins-connector/connector-composite/src/main/java/com/tencent/polaris/plugins/connector/composite/zero/TestConnectivityTask.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-connector/connector-composite/src/main/java/com/tencent/polaris/plugins/connector/composite/zero/TestConnectivityTaskManager.java b/polaris-plugins/polaris-plugins-connector/connector-composite/src/main/java/com/tencent/polaris/plugins/connector/composite/zero/TestConnectivityTaskManager.java index 657e7ecd3..291e7e31f 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-composite/src/main/java/com/tencent/polaris/plugins/connector/composite/zero/TestConnectivityTaskManager.java +++ b/polaris-plugins/polaris-plugins-connector/connector-composite/src/main/java/com/tencent/polaris/plugins/connector/composite/zero/TestConnectivityTaskManager.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/ConsulServerUtils.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/ConsulServerUtils.java index 2b2985680..db61db39b 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/ConsulServerUtils.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/ConsulServerUtils.java @@ -1,17 +1,18 @@ /* - * Copyright 2013-2015 the original author or authors. + * Tencent is pleased to support the open source community by making Polaris available. * - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://opensource.org/licenses/BSD-3-Clause * - * 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. + * 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.tencent.polaris.plugins.connector.consul; diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/ConsulServiceUpdateTask.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/ConsulServiceUpdateTask.java index 2aa770694..9d3a384de 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/ConsulServiceUpdateTask.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/ConsulServiceUpdateTask.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/ConsulService.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/ConsulService.java index 5f7d4822b..4d5363b9c 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/ConsulService.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/ConsulService.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/InstanceService.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/InstanceService.java index ce3169498..d09406dbf 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/InstanceService.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/InstanceService.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/ServiceService.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/ServiceService.java index 9890a1a99..0893101cd 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/ServiceService.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/ServiceService.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/authority/AuthorityService.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/authority/AuthorityService.java index 660ce2c65..d48398d53 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/authority/AuthorityService.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/authority/AuthorityService.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/authority/entity/AuthRule.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/authority/entity/AuthRule.java index 951543de9..a07dad33f 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/authority/entity/AuthRule.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/authority/entity/AuthRule.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.connector.consul.service.authority.entity; import java.io.Serializable; diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/authority/entity/AuthRuleGroup.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/authority/entity/AuthRuleGroup.java index 9fa0f0cf0..f614e1130 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/authority/entity/AuthRuleGroup.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/authority/entity/AuthRuleGroup.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.connector.consul.service.authority.entity; import java.io.Serializable; diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/authority/entity/AuthTag.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/authority/entity/AuthTag.java index ba0410919..cc607234f 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/authority/entity/AuthTag.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/authority/entity/AuthTag.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.connector.consul.service.authority.entity; diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/authority/entity/TsfAuthConstant.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/authority/entity/TsfAuthConstant.java index dff9251d6..95ac90732 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/authority/entity/TsfAuthConstant.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/authority/entity/TsfAuthConstant.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.connector.consul.service.authority.entity; public class TsfAuthConstant { diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/circuitbreaker/CircuitBreakingService.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/circuitbreaker/CircuitBreakingService.java index 20c5dac22..939668710 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/circuitbreaker/CircuitBreakingService.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/circuitbreaker/CircuitBreakingService.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/circuitbreaker/entity/CircuitBreakerApi.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/circuitbreaker/entity/CircuitBreakerApi.java index 8206da9fb..1eb3bd00d 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/circuitbreaker/entity/CircuitBreakerApi.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/circuitbreaker/entity/CircuitBreakerApi.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.connector.consul.service.circuitbreaker.entity; diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/circuitbreaker/entity/CircuitBreakerRule.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/circuitbreaker/entity/CircuitBreakerRule.java index 378e32ae5..afd5528da 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/circuitbreaker/entity/CircuitBreakerRule.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/circuitbreaker/entity/CircuitBreakerRule.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.connector.consul.service.circuitbreaker.entity; diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/circuitbreaker/entity/CircuitBreakerStrategy.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/circuitbreaker/entity/CircuitBreakerStrategy.java index 90e578ca2..3554b10c8 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/circuitbreaker/entity/CircuitBreakerStrategy.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/circuitbreaker/entity/CircuitBreakerStrategy.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.connector.consul.service.circuitbreaker.entity; import java.io.Serializable; diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/circuitbreaker/entity/TsfCircuitBreakerConstant.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/circuitbreaker/entity/TsfCircuitBreakerConstant.java index 3012d53c8..021228414 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/circuitbreaker/entity/TsfCircuitBreakerConstant.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/circuitbreaker/entity/TsfCircuitBreakerConstant.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.connector.consul.service.circuitbreaker.entity; public class TsfCircuitBreakerConstant { diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/circuitbreaker/entity/TsfCircuitBreakerIsolationLevelEnum.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/circuitbreaker/entity/TsfCircuitBreakerIsolationLevelEnum.java index df6f99022..50034e3a0 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/circuitbreaker/entity/TsfCircuitBreakerIsolationLevelEnum.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/circuitbreaker/entity/TsfCircuitBreakerIsolationLevelEnum.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.connector.consul.service.circuitbreaker.entity; /** diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/common/TagCondition.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/common/TagCondition.java index d6dc5ffec..11136ca33 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/common/TagCondition.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/common/TagCondition.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/common/TagConditionUtil.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/common/TagConditionUtil.java index e601c2378..edb9486b3 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/common/TagConditionUtil.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/common/TagConditionUtil.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/common/TagConstant.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/common/TagConstant.java index 78d604376..8ea4f7e70 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/common/TagConstant.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/common/TagConstant.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/common/TagRule.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/common/TagRule.java index 6f197cda7..013b686ec 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/common/TagRule.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/common/TagRule.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lane/LaneService.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lane/LaneService.java index f0ef03dc3..d05f0d75c 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lane/LaneService.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lane/LaneService.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lane/entity/LaneGroup.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lane/entity/LaneGroup.java index 24dcb7963..5c97731e1 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lane/entity/LaneGroup.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lane/entity/LaneGroup.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.connector.consul.service.lane.entity; import java.sql.Timestamp; diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lane/entity/LaneInfo.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lane/entity/LaneInfo.java index ef919ecf5..980b089a6 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lane/entity/LaneInfo.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lane/entity/LaneInfo.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.connector.consul.service.lane.entity; import java.sql.Timestamp; diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lane/entity/LaneRule.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lane/entity/LaneRule.java index 1d8751a3b..dad9b4e4b 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lane/entity/LaneRule.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lane/entity/LaneRule.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.connector.consul.service.lane.entity; import java.sql.Timestamp; diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lane/entity/LaneRuleTag.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lane/entity/LaneRuleTag.java index ef9877a7d..203e74fb4 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lane/entity/LaneRuleTag.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lane/entity/LaneRuleTag.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.connector.consul.service.lane.entity; import java.sql.Timestamp; diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lane/entity/RuleTagRelationship.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lane/entity/RuleTagRelationship.java index 95c98fe2e..c50e76bcb 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lane/entity/RuleTagRelationship.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lane/entity/RuleTagRelationship.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.connector.consul.service.lane.entity; /** diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lossless/LosslessService.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lossless/LosslessService.java index 056e553ec..3c7440e04 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lossless/LosslessService.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lossless/LosslessService.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lossless/entity/WarmupSetting.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lossless/entity/WarmupSetting.java index bb916eaf8..7928d1084 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lossless/entity/WarmupSetting.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/lossless/entity/WarmupSetting.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/ratelimiting/RateLimitingService.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/ratelimiting/RateLimitingService.java index a77045816..a1351d423 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/ratelimiting/RateLimitingService.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/ratelimiting/RateLimitingService.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/ratelimiting/entity/Rule.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/ratelimiting/entity/Rule.java index 727028398..c2cdad961 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/ratelimiting/entity/Rule.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/ratelimiting/entity/Rule.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/NearByRouteRuleService.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/NearByRouteRuleService.java index b7f4dcd6e..7f6a36092 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/NearByRouteRuleService.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/NearByRouteRuleService.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/RoutingService.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/RoutingService.java index af03bba48..26aefc629 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/RoutingService.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/RoutingService.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/entity/RouteAffinity.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/entity/RouteAffinity.java index cd96f631d..2f0018c29 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/entity/RouteAffinity.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/entity/RouteAffinity.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.connector.consul.service.router.entity; import java.io.Serializable; diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/entity/RouteDest.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/entity/RouteDest.java index bc6186060..f9aca0b3e 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/entity/RouteDest.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/entity/RouteDest.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/entity/RouteDestItem.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/entity/RouteDestItem.java index 966882885..bf383a82f 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/entity/RouteDestItem.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/entity/RouteDestItem.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/entity/RouteRule.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/entity/RouteRule.java index 1c0a4e67c..36a78cf7b 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/entity/RouteRule.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/entity/RouteRule.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/entity/RouteRuleGroup.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/entity/RouteRuleGroup.java index 8e8873fb5..40757214e 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/entity/RouteRuleGroup.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/entity/RouteRuleGroup.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/entity/RouteTag.java b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/entity/RouteTag.java index 87a3b5c94..63cb65e12 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/entity/RouteTag.java +++ b/polaris-plugins/polaris-plugins-connector/connector-consul/src/main/java/com/tencent/polaris/plugins/connector/consul/service/router/entity/RouteTag.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-connector/connector-nacos/src/test/java/com/tencent/polaris/plugins/connector/nacos/NacosConnectorTests.java b/polaris-plugins/polaris-plugins-connector/connector-nacos/src/test/java/com/tencent/polaris/plugins/connector/nacos/NacosConnectorTests.java index 99c065867..844583344 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-nacos/src/test/java/com/tencent/polaris/plugins/connector/nacos/NacosConnectorTests.java +++ b/polaris-plugins/polaris-plugins-connector/connector-nacos/src/test/java/com/tencent/polaris/plugins/connector/nacos/NacosConnectorTests.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.connector.nacos; import org.junit.Assert; diff --git a/polaris-plugins/polaris-plugins-connector/connector-polaris-grpc/src/main/java/com/tencent/polaris/plugins/connector/grpc/GrpcUtil.java b/polaris-plugins/polaris-plugins-connector/connector-polaris-grpc/src/main/java/com/tencent/polaris/plugins/connector/grpc/GrpcUtil.java index e55320204..b4bc6541b 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-polaris-grpc/src/main/java/com/tencent/polaris/plugins/connector/grpc/GrpcUtil.java +++ b/polaris-plugins/polaris-plugins-connector/connector-polaris-grpc/src/main/java/com/tencent/polaris/plugins/connector/grpc/GrpcUtil.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.connector.grpc; import com.tencent.polaris.api.exception.ErrorCode; diff --git a/polaris-plugins/polaris-plugins-connector/connector-polaris-grpc/src/main/java/com/tencent/polaris/plugins/connector/grpc/codec/ServicesCacheHandler.java b/polaris-plugins/polaris-plugins-connector/connector-polaris-grpc/src/main/java/com/tencent/polaris/plugins/connector/grpc/codec/ServicesCacheHandler.java index 43ca033e5..d16f081de 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-polaris-grpc/src/main/java/com/tencent/polaris/plugins/connector/grpc/codec/ServicesCacheHandler.java +++ b/polaris-plugins/polaris-plugins-connector/connector-polaris-grpc/src/main/java/com/tencent/polaris/plugins/connector/grpc/codec/ServicesCacheHandler.java @@ -1,18 +1,18 @@ /* - * Tencent is pleased to support the open source community by making Polaris available. + * Tencent is pleased to support the open source community by making Polaris available. * - * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * https://opensource.org/licenses/BSD-3-Clause + * https://opensource.org/licenses/BSD-3-Clause * - * 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. + * 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.tencent.polaris.plugins.connector.grpc.codec; diff --git a/polaris-plugins/polaris-plugins-connector/connector-polaris-grpc/src/test/java/com/tencent/polaris/plugins/connector/grpc/GrpcUtilTest.java b/polaris-plugins/polaris-plugins-connector/connector-polaris-grpc/src/test/java/com/tencent/polaris/plugins/connector/grpc/GrpcUtilTest.java index df08674ca..d8275dd13 100644 --- a/polaris-plugins/polaris-plugins-connector/connector-polaris-grpc/src/test/java/com/tencent/polaris/plugins/connector/grpc/GrpcUtilTest.java +++ b/polaris-plugins/polaris-plugins-connector/connector-polaris-grpc/src/test/java/com/tencent/polaris/plugins/connector/grpc/GrpcUtilTest.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.connector.grpc; import com.google.protobuf.UInt32Value; diff --git a/polaris-plugins/polaris-plugins-observability/event-logger/src/main/java/com/tencent/polaris/plugins/event/logger/LoggerEventReporter.java b/polaris-plugins/polaris-plugins-observability/event-logger/src/main/java/com/tencent/polaris/plugins/event/logger/LoggerEventReporter.java index b296cb4be..12776f31c 100644 --- a/polaris-plugins/polaris-plugins-observability/event-logger/src/main/java/com/tencent/polaris/plugins/event/logger/LoggerEventReporter.java +++ b/polaris-plugins/polaris-plugins-observability/event-logger/src/main/java/com/tencent/polaris/plugins/event/logger/LoggerEventReporter.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/TsfEventDataUtils.java b/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/TsfEventDataUtils.java index c49a3c63c..d759a1ed1 100644 --- a/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/TsfEventDataUtils.java +++ b/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/TsfEventDataUtils.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/TsfEventReporter.java b/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/TsfEventReporter.java index 439022bee..515071397 100644 --- a/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/TsfEventReporter.java +++ b/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/TsfEventReporter.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/TsfEventReporterConfig.java b/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/TsfEventReporterConfig.java index 2254d330b..3f56b8f36 100644 --- a/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/TsfEventReporterConfig.java +++ b/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/TsfEventReporterConfig.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.event.tsf; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/report/CloudEvent.java b/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/report/CloudEvent.java index 166f54d15..2a34c7505 100644 --- a/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/report/CloudEvent.java +++ b/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/report/CloudEvent.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/report/Event.java b/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/report/Event.java index bcf929d3f..7bfc731ca 100644 --- a/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/report/Event.java +++ b/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/report/Event.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/report/EventAttribute.java b/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/report/EventAttribute.java index 6aa5da380..d34d1fd0e 100644 --- a/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/report/EventAttribute.java +++ b/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/report/EventAttribute.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/report/EventResponse.java b/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/report/EventResponse.java index 017c364c4..2b1c02403 100644 --- a/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/report/EventResponse.java +++ b/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/report/EventResponse.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/v1/TsfEventData.java b/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/v1/TsfEventData.java index 310afbcd6..750bff7b0 100644 --- a/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/v1/TsfEventData.java +++ b/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/v1/TsfEventData.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/v1/TsfEventDataPair.java b/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/v1/TsfEventDataPair.java index 17df020d1..7650ee41a 100644 --- a/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/v1/TsfEventDataPair.java +++ b/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/v1/TsfEventDataPair.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/v1/TsfEventResponse.java b/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/v1/TsfEventResponse.java index bd4945813..03d3ed4eb 100644 --- a/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/v1/TsfEventResponse.java +++ b/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/v1/TsfEventResponse.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/v1/TsfGenericEvent.java b/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/v1/TsfGenericEvent.java index 69fde32e0..14de5b642 100644 --- a/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/v1/TsfGenericEvent.java +++ b/polaris-plugins/polaris-plugins-observability/event-tsf/src/main/java/com/tencent/polaris/plugins/event/tsf/v1/TsfGenericEvent.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-observability/stat-common/src/test/java/com/tencent/polaris/plugins/stat/common/TestUtil.java b/polaris-plugins/polaris-plugins-observability/stat-common/src/test/java/com/tencent/polaris/plugins/stat/common/TestUtil.java index a32be52ce..d2425a12c 100644 --- a/polaris-plugins/polaris-plugins-observability/stat-common/src/test/java/com/tencent/polaris/plugins/stat/common/TestUtil.java +++ b/polaris-plugins/polaris-plugins-observability/stat-common/src/test/java/com/tencent/polaris/plugins/stat/common/TestUtil.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.stat.common; import java.util.HashMap; diff --git a/polaris-plugins/polaris-plugins-observability/stat-common/src/test/java/com/tencent/polaris/plugins/stat/common/model/StatInfoRevisionCollectorTest.java b/polaris-plugins/polaris-plugins-observability/stat-common/src/test/java/com/tencent/polaris/plugins/stat/common/model/StatInfoRevisionCollectorTest.java index 4e0c3e73d..12ec90289 100644 --- a/polaris-plugins/polaris-plugins-observability/stat-common/src/test/java/com/tencent/polaris/plugins/stat/common/model/StatInfoRevisionCollectorTest.java +++ b/polaris-plugins/polaris-plugins-observability/stat-common/src/test/java/com/tencent/polaris/plugins/stat/common/model/StatInfoRevisionCollectorTest.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.stat.common.model; import static com.tencent.polaris.plugins.stat.common.TestUtil.getRandomLabels; @@ -5,6 +22,7 @@ import java.util.Map; import java.util.concurrent.CountDownLatch; import java.util.concurrent.atomic.AtomicLong; + import org.junit.Assert; import org.junit.Before; import org.junit.Test; diff --git a/polaris-plugins/polaris-plugins-observability/stat-common/src/test/java/com/tencent/polaris/plugins/stat/common/model/StatInfoStatefulCollectorTest.java b/polaris-plugins/polaris-plugins-observability/stat-common/src/test/java/com/tencent/polaris/plugins/stat/common/model/StatInfoStatefulCollectorTest.java index 022a4eea1..7c710957c 100644 --- a/polaris-plugins/polaris-plugins-observability/stat-common/src/test/java/com/tencent/polaris/plugins/stat/common/model/StatInfoStatefulCollectorTest.java +++ b/polaris-plugins/polaris-plugins-observability/stat-common/src/test/java/com/tencent/polaris/plugins/stat/common/model/StatInfoStatefulCollectorTest.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.stat.common.model; import static com.tencent.polaris.plugins.stat.common.TestUtil.getRandomLabels; @@ -7,6 +24,7 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicLong; + import org.junit.Assert; import org.junit.Test; diff --git a/polaris-plugins/polaris-plugins-observability/stat-common/src/test/java/com/tencent/polaris/plugins/stat/common/model/StatMetricTest.java b/polaris-plugins/polaris-plugins-observability/stat-common/src/test/java/com/tencent/polaris/plugins/stat/common/model/StatMetricTest.java index 55669777f..dd585b825 100644 --- a/polaris-plugins/polaris-plugins-observability/stat-common/src/test/java/com/tencent/polaris/plugins/stat/common/model/StatMetricTest.java +++ b/polaris-plugins/polaris-plugins-observability/stat-common/src/test/java/com/tencent/polaris/plugins/stat/common/model/StatMetricTest.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.stat.common.model; import org.junit.Assert; diff --git a/polaris-plugins/polaris-plugins-observability/stat-common/src/test/java/com/tencent/polaris/plugins/stat/common/util/SignatureUtilTest.java b/polaris-plugins/polaris-plugins-observability/stat-common/src/test/java/com/tencent/polaris/plugins/stat/common/util/SignatureUtilTest.java index e8804f965..9a4ebd5a6 100644 --- a/polaris-plugins/polaris-plugins-observability/stat-common/src/test/java/com/tencent/polaris/plugins/stat/common/util/SignatureUtilTest.java +++ b/polaris-plugins/polaris-plugins-observability/stat-common/src/test/java/com/tencent/polaris/plugins/stat/common/util/SignatureUtilTest.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.stat.common.util; import org.junit.Assert; diff --git a/polaris-plugins/polaris-plugins-observability/stat-prometheus/src/main/java/com/tencent/polaris/plugins/stat/prometheus/exporter/PushGateway.java b/polaris-plugins/polaris-plugins-observability/stat-prometheus/src/main/java/com/tencent/polaris/plugins/stat/prometheus/exporter/PushGateway.java index 901287cef..3855a5f2f 100644 --- a/polaris-plugins/polaris-plugins-observability/stat-prometheus/src/main/java/com/tencent/polaris/plugins/stat/prometheus/exporter/PushGateway.java +++ b/polaris-plugins/polaris-plugins-observability/stat-prometheus/src/main/java/com/tencent/polaris/plugins/stat/prometheus/exporter/PushGateway.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.stat.prometheus.exporter; import java.io.BufferedWriter; @@ -20,113 +37,107 @@ public class PushGateway extends io.prometheus.client.exporter.PushGateway { - private static final int MILLISECONDS_PER_SECOND = 1000; - - private HttpConnectionFactory connectionFactory = new DefaultHttpConnectionFactory(); - - public PushGateway(String address) { - super(address); - } - - - public void setConnectionFactory(HttpConnectionFactory connectionFactory) { - super.setConnectionFactory(connectionFactory); - this.connectionFactory = connectionFactory; - } - - /** - * Pushes all metrics in a registry, replacing only previously pushed metrics of the same name, job and grouping key. - *

- * This uses the POST HTTP method. - */ - public void pushAddByGzip(CollectorRegistry registry, String job, Map groupingKey) throws IOException { - doRequestByGzip(registry, job, groupingKey, "POST"); - } - - void doRequestByGzip(CollectorRegistry registry, String job, Map groupingKey, String method) throws IOException { - String url = gatewayBaseURL; - if (job.contains("/")) { - url += "job@base64/" + base64url(job); - } - else { - url += "job/" + URLEncoder.encode(job, "UTF-8"); - } - - if (groupingKey != null) { - for (Map.Entry entry : groupingKey.entrySet()) { - if (entry.getValue().isEmpty()) { - url += "/" + entry.getKey() + "@base64/="; - } - else if (entry.getValue().contains("/")) { - url += "/" + entry.getKey() + "@base64/" + base64url(entry.getValue()); - } - else { - url += "/" + entry.getKey() + "/" + URLEncoder.encode(entry.getValue(), "UTF-8"); - } - } - } - HttpURLConnection connection = connectionFactory.create(url); - connection.setRequestProperty("Content-Type", TextFormat.CONTENT_TYPE_004); - connection.setRequestProperty("Content-Encoding", "gzip"); - if (!method.equals("DELETE")) { - connection.setDoOutput(true); - } - connection.setRequestMethod(method); - - connection.setConnectTimeout(10 * MILLISECONDS_PER_SECOND); - connection.setReadTimeout(10 * MILLISECONDS_PER_SECOND); - connection.connect(); - - try { - if (!method.equals("DELETE")) { - ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); - BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(outputStream, "UTF-8")); - TextFormat.write004(writer, registry.metricFamilySamples()); - writer.flush(); - writer.close(); - GZIPOutputStream zipStream = new GZIPOutputStream(connection.getOutputStream()); - zipStream.write(outputStream.toByteArray()); - zipStream.finish(); - zipStream.flush(); - zipStream.close(); - } - - int response = connection.getResponseCode(); - if (response / 100 != 2) { - String errorMessage; - InputStream errorStream = connection.getErrorStream(); - if (errorStream != null) { - String errBody = readFromStream(errorStream); - errorMessage = "Response code from " + url + " was " + response + ", response body: " + errBody; - } - else { - errorMessage = "Response code from " + url + " was " + response; - } - throw new IOException(errorMessage); - } - } - finally { - connection.disconnect(); - } - } - - private static String base64url(String v) { - // Per RFC4648 table 2. We support Java 6, and java.util.Base64 was only added in Java 8, - try { - return DatatypeConverter.printBase64Binary(v.getBytes("UTF-8")).replace("+", "-").replace("/", "_"); - } - catch (UnsupportedEncodingException e) { - throw new RuntimeException(e); // Unreachable. - } - } - - private static String readFromStream(InputStream is) throws IOException { - ByteArrayOutputStream result = new ByteArrayOutputStream(); - byte[] buffer = new byte[1024]; - int length; - while ((length = is.read(buffer)) != -1) { - result.write(buffer, 0, length); - } - return result.toString("UTF-8"); - } + private static final int MILLISECONDS_PER_SECOND = 1000; + + private HttpConnectionFactory connectionFactory = new DefaultHttpConnectionFactory(); + + public PushGateway(String address) { + super(address); + } + + + public void setConnectionFactory(HttpConnectionFactory connectionFactory) { + super.setConnectionFactory(connectionFactory); + this.connectionFactory = connectionFactory; + } + + /** + * Pushes all metrics in a registry, replacing only previously pushed metrics of the same name, job and grouping key. + *

+ * This uses the POST HTTP method. + */ + public void pushAddByGzip(CollectorRegistry registry, String job, Map groupingKey) throws IOException { + doRequestByGzip(registry, job, groupingKey, "POST"); + } + + void doRequestByGzip(CollectorRegistry registry, String job, Map groupingKey, String method) throws IOException { + String url = gatewayBaseURL; + if (job.contains("/")) { + url += "job@base64/" + base64url(job); + } else { + url += "job/" + URLEncoder.encode(job, "UTF-8"); + } + + if (groupingKey != null) { + for (Map.Entry entry : groupingKey.entrySet()) { + if (entry.getValue().isEmpty()) { + url += "/" + entry.getKey() + "@base64/="; + } else if (entry.getValue().contains("/")) { + url += "/" + entry.getKey() + "@base64/" + base64url(entry.getValue()); + } else { + url += "/" + entry.getKey() + "/" + URLEncoder.encode(entry.getValue(), "UTF-8"); + } + } + } + HttpURLConnection connection = connectionFactory.create(url); + connection.setRequestProperty("Content-Type", TextFormat.CONTENT_TYPE_004); + connection.setRequestProperty("Content-Encoding", "gzip"); + if (!method.equals("DELETE")) { + connection.setDoOutput(true); + } + connection.setRequestMethod(method); + + connection.setConnectTimeout(10 * MILLISECONDS_PER_SECOND); + connection.setReadTimeout(10 * MILLISECONDS_PER_SECOND); + connection.connect(); + + try { + if (!method.equals("DELETE")) { + ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); + BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(outputStream, "UTF-8")); + TextFormat.write004(writer, registry.metricFamilySamples()); + writer.flush(); + writer.close(); + GZIPOutputStream zipStream = new GZIPOutputStream(connection.getOutputStream()); + zipStream.write(outputStream.toByteArray()); + zipStream.finish(); + zipStream.flush(); + zipStream.close(); + } + + int response = connection.getResponseCode(); + if (response / 100 != 2) { + String errorMessage; + InputStream errorStream = connection.getErrorStream(); + if (errorStream != null) { + String errBody = readFromStream(errorStream); + errorMessage = "Response code from " + url + " was " + response + ", response body: " + errBody; + } else { + errorMessage = "Response code from " + url + " was " + response; + } + throw new IOException(errorMessage); + } + } finally { + connection.disconnect(); + } + } + + private static String base64url(String v) { + // Per RFC4648 table 2. We support Java 6, and java.util.Base64 was only added in Java 8, + try { + return DatatypeConverter.printBase64Binary(v.getBytes("UTF-8")).replace("+", "-").replace("/", "_"); + } catch (UnsupportedEncodingException e) { + throw new RuntimeException(e); // Unreachable. + } + } + + private static String readFromStream(InputStream is) throws IOException { + ByteArrayOutputStream result = new ByteArrayOutputStream(); + byte[] buffer = new byte[1024]; + int length; + while ((length = is.read(buffer)) != -1) { + result.write(buffer, 0, length); + } + return result.toString("UTF-8"); + } } diff --git a/polaris-plugins/polaris-plugins-ratelimiter/ratelimiter-reject-concurrency/src/main/java/com/tencent/polaris/plugins/ratelimiter/reject/concurrency/ConcurrencyQuotaBucket.java b/polaris-plugins/polaris-plugins-ratelimiter/ratelimiter-reject-concurrency/src/main/java/com/tencent/polaris/plugins/ratelimiter/reject/concurrency/ConcurrencyQuotaBucket.java index 62093381d..200ecba51 100644 --- a/polaris-plugins/polaris-plugins-ratelimiter/ratelimiter-reject-concurrency/src/main/java/com/tencent/polaris/plugins/ratelimiter/reject/concurrency/ConcurrencyQuotaBucket.java +++ b/polaris-plugins/polaris-plugins-ratelimiter/ratelimiter-reject-concurrency/src/main/java/com/tencent/polaris/plugins/ratelimiter/reject/concurrency/ConcurrencyQuotaBucket.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-ratelimiter/ratelimiter-reject-concurrency/src/main/java/com/tencent/polaris/plugins/ratelimiter/reject/concurrency/RejectConcurrencyRateLimiter.java b/polaris-plugins/polaris-plugins-ratelimiter/ratelimiter-reject-concurrency/src/main/java/com/tencent/polaris/plugins/ratelimiter/reject/concurrency/RejectConcurrencyRateLimiter.java index 55bc1c013..2666d0b7a 100644 --- a/polaris-plugins/polaris-plugins-ratelimiter/ratelimiter-reject-concurrency/src/main/java/com/tencent/polaris/plugins/ratelimiter/reject/concurrency/RejectConcurrencyRateLimiter.java +++ b/polaris-plugins/polaris-plugins-ratelimiter/ratelimiter-reject-concurrency/src/main/java/com/tencent/polaris/plugins/ratelimiter/reject/concurrency/RejectConcurrencyRateLimiter.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-ratelimiter/ratelimiter-tsf/src/main/java/com/tencent/polaris/plugins/ratelimiter/tsf/TsfRateLimiter.java b/polaris-plugins/polaris-plugins-ratelimiter/ratelimiter-tsf/src/main/java/com/tencent/polaris/plugins/ratelimiter/tsf/TsfRateLimiter.java index 96800c349..32658d29b 100644 --- a/polaris-plugins/polaris-plugins-ratelimiter/ratelimiter-tsf/src/main/java/com/tencent/polaris/plugins/ratelimiter/tsf/TsfRateLimiter.java +++ b/polaris-plugins/polaris-plugins-ratelimiter/ratelimiter-tsf/src/main/java/com/tencent/polaris/plugins/ratelimiter/tsf/TsfRateLimiter.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-ratelimiter/ratelimiter-tsf/src/main/java/com/tencent/polaris/plugins/ratelimiter/tsf/TsfTokenBucket.java b/polaris-plugins/polaris-plugins-ratelimiter/ratelimiter-tsf/src/main/java/com/tencent/polaris/plugins/ratelimiter/tsf/TsfTokenBucket.java index 65faa3bf4..c6f03165b 100644 --- a/polaris-plugins/polaris-plugins-ratelimiter/ratelimiter-tsf/src/main/java/com/tencent/polaris/plugins/ratelimiter/tsf/TsfTokenBucket.java +++ b/polaris-plugins/polaris-plugins-ratelimiter/ratelimiter-tsf/src/main/java/com/tencent/polaris/plugins/ratelimiter/tsf/TsfTokenBucket.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.ratelimiter.tsf; import com.google.common.base.Ticker; diff --git a/polaris-plugins/polaris-plugins-ratelimiter/ratelimiter-tsf/src/test/java/com/tencent/polaris/plugins/ratelimiter/tsf/MockTicker.java b/polaris-plugins/polaris-plugins-ratelimiter/ratelimiter-tsf/src/test/java/com/tencent/polaris/plugins/ratelimiter/tsf/MockTicker.java index 88f372164..0334fa18c 100644 --- a/polaris-plugins/polaris-plugins-ratelimiter/ratelimiter-tsf/src/test/java/com/tencent/polaris/plugins/ratelimiter/tsf/MockTicker.java +++ b/polaris-plugins/polaris-plugins-ratelimiter/ratelimiter-tsf/src/test/java/com/tencent/polaris/plugins/ratelimiter/tsf/MockTicker.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.ratelimiter.tsf; import com.google.common.base.Ticker; diff --git a/polaris-plugins/polaris-plugins-ratelimiter/ratelimiter-tsf/src/test/java/com/tencent/polaris/plugins/ratelimiter/tsf/TsfTokenBucketTest.java b/polaris-plugins/polaris-plugins-ratelimiter/ratelimiter-tsf/src/test/java/com/tencent/polaris/plugins/ratelimiter/tsf/TsfTokenBucketTest.java index ac700b1e1..c9b1afcf0 100644 --- a/polaris-plugins/polaris-plugins-ratelimiter/ratelimiter-tsf/src/test/java/com/tencent/polaris/plugins/ratelimiter/tsf/TsfTokenBucketTest.java +++ b/polaris-plugins/polaris-plugins-ratelimiter/ratelimiter-tsf/src/test/java/com/tencent/polaris/plugins/ratelimiter/tsf/TsfTokenBucketTest.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.ratelimiter.tsf; import com.tencent.polaris.api.plugin.ratelimiter.RemoteQuotaInfo; diff --git a/polaris-plugins/polaris-plugins-router/router-healthy/src/main/java/com/tencent/polaris/plugins/router/healthy/RecoverRouterConfig.java b/polaris-plugins/polaris-plugins-router/router-healthy/src/main/java/com/tencent/polaris/plugins/router/healthy/RecoverRouterConfig.java index abd1645e0..cfe1ee90b 100644 --- a/polaris-plugins/polaris-plugins-router/router-healthy/src/main/java/com/tencent/polaris/plugins/router/healthy/RecoverRouterConfig.java +++ b/polaris-plugins/polaris-plugins-router/router-healthy/src/main/java/com/tencent/polaris/plugins/router/healthy/RecoverRouterConfig.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.router.healthy; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/polaris-plugins/polaris-plugins-router/router-metadata/src/main/java/com/tencent/polaris/plugins/router/metadata/MetadataRouterConfig.java b/polaris-plugins/polaris-plugins-router/router-metadata/src/main/java/com/tencent/polaris/plugins/router/metadata/MetadataRouterConfig.java index 2fb8e2437..d91d07b42 100644 --- a/polaris-plugins/polaris-plugins-router/router-metadata/src/main/java/com/tencent/polaris/plugins/router/metadata/MetadataRouterConfig.java +++ b/polaris-plugins/polaris-plugins-router/router-metadata/src/main/java/com/tencent/polaris/plugins/router/metadata/MetadataRouterConfig.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.router.metadata; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/polaris-plugins/polaris-plugins-router/router-namespace/src/main/java/com/tencent/polaris/plugins/router/namespace/NamespaceRouter.java b/polaris-plugins/polaris-plugins-router/router-namespace/src/main/java/com/tencent/polaris/plugins/router/namespace/NamespaceRouter.java index 3f602fb26..56c3bc610 100644 --- a/polaris-plugins/polaris-plugins-router/router-namespace/src/main/java/com/tencent/polaris/plugins/router/namespace/NamespaceRouter.java +++ b/polaris-plugins/polaris-plugins-router/router-namespace/src/main/java/com/tencent/polaris/plugins/router/namespace/NamespaceRouter.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-router/router-namespace/src/test/java/com/tencent/polaris/plugins/router/namespace/NamespaceRouterTest.java b/polaris-plugins/polaris-plugins-router/router-namespace/src/test/java/com/tencent/polaris/plugins/router/namespace/NamespaceRouterTest.java index 3968d67ed..79085a9a2 100644 --- a/polaris-plugins/polaris-plugins-router/router-namespace/src/test/java/com/tencent/polaris/plugins/router/namespace/NamespaceRouterTest.java +++ b/polaris-plugins/polaris-plugins-router/router-namespace/src/test/java/com/tencent/polaris/plugins/router/namespace/NamespaceRouterTest.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-plugins/polaris-plugins-router/router-nearby/src/main/java/com/tencent/polaris/plugins/router/nearby/NearbyRouterConfig.java b/polaris-plugins/polaris-plugins-router/router-nearby/src/main/java/com/tencent/polaris/plugins/router/nearby/NearbyRouterConfig.java index 0a636b34a..b56998ba8 100644 --- a/polaris-plugins/polaris-plugins-router/router-nearby/src/main/java/com/tencent/polaris/plugins/router/nearby/NearbyRouterConfig.java +++ b/polaris-plugins/polaris-plugins-router/router-nearby/src/main/java/com/tencent/polaris/plugins/router/nearby/NearbyRouterConfig.java @@ -3,15 +3,16 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in - * compliance with the License. You may obtain a copy of the License at + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause * - * 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. + * 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.tencent.polaris.plugins.router.nearby; diff --git a/polaris-plugins/polaris-plugins-router/router-rule/src/main/java/com/tencent/polaris/plugins/router/rule/RuleBasedRouterConfig.java b/polaris-plugins/polaris-plugins-router/router-rule/src/main/java/com/tencent/polaris/plugins/router/rule/RuleBasedRouterConfig.java index 207ef9029..ce20a0548 100644 --- a/polaris-plugins/polaris-plugins-router/router-rule/src/main/java/com/tencent/polaris/plugins/router/rule/RuleBasedRouterConfig.java +++ b/polaris-plugins/polaris-plugins-router/router-rule/src/main/java/com/tencent/polaris/plugins/router/rule/RuleBasedRouterConfig.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.router.rule; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/polaris-plugins/polaris-plugins-router/router-rule/src/main/java/com/tencent/polaris/plugins/router/rule/RuleMatchType.java b/polaris-plugins/polaris-plugins-router/router-rule/src/main/java/com/tencent/polaris/plugins/router/rule/RuleMatchType.java index df8df083a..601dbd340 100644 --- a/polaris-plugins/polaris-plugins-router/router-rule/src/main/java/com/tencent/polaris/plugins/router/rule/RuleMatchType.java +++ b/polaris-plugins/polaris-plugins-router/router-rule/src/main/java/com/tencent/polaris/plugins/router/rule/RuleMatchType.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.router.rule; /** diff --git a/polaris-plugins/polaris-plugins-router/router-rule/src/main/java/com/tencent/polaris/plugins/router/rule/RuleStatus.java b/polaris-plugins/polaris-plugins-router/router-rule/src/main/java/com/tencent/polaris/plugins/router/rule/RuleStatus.java index 6a641d9bb..0e0fb05b2 100644 --- a/polaris-plugins/polaris-plugins-router/router-rule/src/main/java/com/tencent/polaris/plugins/router/rule/RuleStatus.java +++ b/polaris-plugins/polaris-plugins-router/router-rule/src/main/java/com/tencent/polaris/plugins/router/rule/RuleStatus.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.plugins.router.rule; /** diff --git a/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/flow/AsyncRateLimitConnector.java b/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/flow/AsyncRateLimitConnector.java index 5fbc041c9..6b51ec5ab 100644 --- a/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/flow/AsyncRateLimitConnector.java +++ b/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/flow/AsyncRateLimitConnector.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.ratelimit.client.flow; import com.tencent.polaris.api.config.consumer.LoadBalanceConfig; @@ -11,10 +28,12 @@ import com.tencent.polaris.api.rpc.Criteria; import com.tencent.polaris.client.flow.BaseFlow; import com.tencent.polaris.logging.LoggerFactory; + import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; + import org.slf4j.Logger; /** @@ -46,14 +65,14 @@ public AsyncRateLimitConnector() { /** * 获取连接流对象 * - * @param extensions 插件容器 - * @param remoteCluster 远程限流集群名 - * @param uniqueKey 唯一主键 + * @param extensions 插件容器 + * @param remoteCluster 远程限流集群名 + * @param uniqueKey 唯一主键 * @param serviceIdentifier 服务标识 * @return 连接流对象 */ public StreamCounterSet getStreamCounterSet(Extensions extensions, ServiceKey remoteCluster, - ServiceInstances remoteAddresses, String uniqueKey, ServiceIdentifier serviceIdentifier) { + ServiceInstances remoteAddresses, String uniqueKey, ServiceIdentifier serviceIdentifier) { HostIdentifier hostIdentifier = getServiceInstance(extensions, remoteCluster, remoteAddresses, uniqueKey); if (hostIdentifier == null) { LOG.error("[getStreamCounterSet] ratelimit cluster service not found."); @@ -93,7 +112,7 @@ public StreamCounterSet getStreamCounterSet(Extensions extensions, ServiceKey re * @return 节点标识 */ private HostIdentifier getServiceInstance(Extensions extensions, ServiceKey remoteCluster, - ServiceInstances remoteAddresses, String hashValue) { + ServiceInstances remoteAddresses, String hashValue) { Instance instance; if (null != remoteCluster) { instance = BaseFlow diff --git a/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/flow/DurationBaseCallback.java b/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/flow/DurationBaseCallback.java index b1f33af2f..0927d79f3 100644 --- a/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/flow/DurationBaseCallback.java +++ b/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/flow/DurationBaseCallback.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.ratelimit.client.flow; /** diff --git a/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/flow/HostIdentifier.java b/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/flow/HostIdentifier.java index ace5de28c..b0070efc7 100644 --- a/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/flow/HostIdentifier.java +++ b/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/flow/HostIdentifier.java @@ -1,3 +1,20 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.ratelimit.client.flow; import java.util.Objects; diff --git a/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/flow/InitializeRecord.java b/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/flow/InitializeRecord.java index 38e410c77..aac74ce02 100644 --- a/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/flow/InitializeRecord.java +++ b/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/flow/InitializeRecord.java @@ -1,6 +1,24 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.ratelimit.client.flow; import com.google.common.collect.Maps; + import java.util.Map; /** diff --git a/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/flow/StreamCounterSet.java b/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/flow/StreamCounterSet.java index 819a65e4d..c0aecfad9 100644 --- a/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/flow/StreamCounterSet.java +++ b/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/flow/StreamCounterSet.java @@ -1,8 +1,27 @@ +/* + * Tencent is pleased to support the open source community by making Polaris available. + * + * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. + * + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://opensource.org/licenses/BSD-3-Clause + * + * 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.tencent.polaris.ratelimit.client.flow; import com.tencent.polaris.logging.LoggerFactory; + import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicReference; + import org.slf4j.Logger; /** @@ -44,7 +63,7 @@ public HostIdentifier getIdentifier() { * @return 同步阻塞的客户端 */ public StreamResource checkAndCreateResource(ServiceIdentifier serviceIdentifier, - RateLimitWindow rateLimitWindow) { + RateLimitWindow rateLimitWindow) { StreamResource streamResource = currentStreamResource.get(); if (null != streamResource && !streamResource.isEndStream()) { return streamResource; diff --git a/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/sync/PolarisRemoteSyncTask.java b/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/sync/PolarisRemoteSyncTask.java index 56c01a880..56f52c269 100644 --- a/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/sync/PolarisRemoteSyncTask.java +++ b/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/sync/PolarisRemoteSyncTask.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/sync/RemoteSyncTask.java b/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/sync/RemoteSyncTask.java index 4b2ce5ed5..cc210a6d1 100644 --- a/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/sync/RemoteSyncTask.java +++ b/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/sync/RemoteSyncTask.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/sync/tsf/ReportRequest.java b/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/sync/tsf/ReportRequest.java index 356b6c1e8..f6da64fdd 100644 --- a/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/sync/tsf/ReportRequest.java +++ b/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/sync/tsf/ReportRequest.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/sync/tsf/ReportResponse.java b/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/sync/tsf/ReportResponse.java index 06e508339..7fd53cdd5 100644 --- a/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/sync/tsf/ReportResponse.java +++ b/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/sync/tsf/ReportResponse.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/sync/tsf/TsfRateLimitConstants.java b/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/sync/tsf/TsfRateLimitConstants.java index 50e1f3ebd..52d6a94e7 100644 --- a/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/sync/tsf/TsfRateLimitConstants.java +++ b/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/sync/tsf/TsfRateLimitConstants.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/sync/tsf/TsfRateLimitMasterUtils.java b/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/sync/tsf/TsfRateLimitMasterUtils.java index 5c7d5d0e2..1fa389aa3 100644 --- a/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/sync/tsf/TsfRateLimitMasterUtils.java +++ b/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/sync/tsf/TsfRateLimitMasterUtils.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/sync/tsf/TsfRemoteSyncTask.java b/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/sync/tsf/TsfRemoteSyncTask.java index 594ceccc7..6ef907dd4 100644 --- a/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/sync/tsf/TsfRemoteSyncTask.java +++ b/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/sync/tsf/TsfRemoteSyncTask.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/utils/RateLimiterEventUtils.java b/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/utils/RateLimiterEventUtils.java index ac800c159..fde5c8368 100644 --- a/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/utils/RateLimiterEventUtils.java +++ b/polaris-ratelimit/polaris-ratelimit-client/src/main/java/com/tencent/polaris/ratelimit/client/utils/RateLimiterEventUtils.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause diff --git a/polaris-ratelimit/polaris-ratelimit-client/src/test/java/com/tencent/polaris/ratelimit/client/sync/tsf/TsfRateLimitMasterUtilsTest.java b/polaris-ratelimit/polaris-ratelimit-client/src/test/java/com/tencent/polaris/ratelimit/client/sync/tsf/TsfRateLimitMasterUtilsTest.java index 4314bfdc4..eacd3886a 100644 --- a/polaris-ratelimit/polaris-ratelimit-client/src/test/java/com/tencent/polaris/ratelimit/client/sync/tsf/TsfRateLimitMasterUtilsTest.java +++ b/polaris-ratelimit/polaris-ratelimit-client/src/test/java/com/tencent/polaris/ratelimit/client/sync/tsf/TsfRateLimitMasterUtilsTest.java @@ -3,8 +3,8 @@ * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * - * Licensed under the BSD 3-Clause License (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the BSD 3-Clause License (the "License"); + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/BSD-3-Clause