/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.alipay.sofa.boot.autoconfigure.rpc;
import com.alipay.sofa.rpc.common.SofaOptions;
import com.google.common.base.CaseFormat;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.EnvironmentAware;
import org.springframework.core.env.Environment;
import org.springframework.util.ObjectUtils;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Configuration properties to configure sofa rpc.
*
* @author khotyn
*/
@ConfigurationProperties("sofa.boot.rpc")
public class SofaBootRpcProperties implements EnvironmentAware {
public static final String PREFIX = "sofa.boot.rpc";
public static final String OLD_PREFIX = "com.alipay.sofa.rpc";
private Environment environment;
/**
* whether enable auto publish service when application start.
*/
private boolean enableAutoPublish;
/**
* whether regulation effective (是否开启单机故障剔除功能)
*/
private String aftRegulationEffective;
/**
* whether regulation effective (是否开启降级)
*/
private String aftDegradeEffective;
/**
* aft time window of caculation (时间窗口)
*/
private String aftTimeWindow;
/**
* aft least invoke times in window (最小调用次数)
*/
private String aftLeastWindowCount;
/**
* aft least exception rate multiple than average exception rate (最小异常率)
*/
private String aftLeastWindowExceptionRateMultiple;
/**
* aft weight was degraded by this rate (降级速率)
*/
private String aftWeightDegradeRate;
/**
* aft weight was recovered by this rate (恢复速率)
*/
private String aftWeightRecoverRate;
/**
* the least weight that aft could degrade one provider (降级最小权重)
*/
private String aftDegradeLeastWeight;
/**
* the max ip numbers that aft could degrade (最大降级 ip)
*/
private String aftDegradeMaxIpCount;
/* fault-tolerance end */
/* Bolt start*/
/**
* the port of bolt (bolt 端口)
*/
private String boltPort;
/**
* the core thread pool size of bolt (bolt 核心线程数)
*/
private String boltThreadPoolCoreSize;
/**
* the max thread pool size of bolt (bolt 最大线程数)
*/
private String boltThreadPoolMaxSize;
/**
* the queue size of bolt server(bolt 线程池队列)
*/
private String boltThreadPoolQueueSize;
/**
* the max accept size of bolt (bolt 服务端允许客户端建立的连接数)
*/
private String boltAcceptsSize;
/**
* process in bolt io worker thread (bolt 服务端业务处理是否直接在worker中处理)
*/
private Boolean boltProcessInIoThread;
/**
* export a port to show swagger
*/
private Boolean enableSwagger;
/**
* Location of remote mock server . If specified ,auto enable mock.
*/
private String mockUrl;
/* Bolt end*/
/* H2c start*/
/**
* the port of http2 (http2 端口)
*/
private String h2cPort;
/**
* the core thread pool size of http2 (http2 核心线程数)
*/
private String h2cThreadPoolCoreSize;
/**
* the max thread pool size of http2 (http2 最大线程数)
*/
private String h2cThreadPoolMaxSize;
/**
* the queue size of http2 server(http2 线程池队列)
*/
private String h2cThreadPoolQueueSize;
/**
* the max accept size of http2 (http2 服务端允许客户端建立的连接数)
*/
private String h2cAcceptsSize;
/* Bolt end*/
/* rest start*/
/**
* rest host name (rest 绑定的 hostname)
*/
private String restHostname;
/**
* the port of rest (rest 端口)
*/
private String restPort;
/**
* the io thread size of rest io (rest io 线程数)
*/
private String restIoThreadSize;
/**
* rest context path (rest context path)
*/
private String restContextPath;
/**
* cors settings
*/
private String restAllowedOrigins;
/**
* the max thread pool size of rest (rest 最大线程数)
*/
private String restThreadPoolMaxSize;
/**
* the max request size of per request (rest 最大请求大小)
*/
private String restMaxRequestSize;
/**
* whether allow rest telnet (是否允许 rest telnet)
*/
private String restTelnet;
/**
* whether rest server is daemon (是否hold住端口,true的话随主线程退出而退出)
*/
private String restDaemon;
private boolean restSwagger;
/* rest end */
/* dubbo start*/
/**
* the port of dubbo (dubbo 端口)
*/
private String dubboPort;
/**
* the io thread size of dubbo io (dubbo io 线程数)
*/
private String dubboIoThreadSize;
/**
* the max thread pool size of dubbo (dubbo 最大线程数)
*/
private String dubboThreadPoolMaxSize;
/**
* the max accept size of dubbo (dubbo 服务端允许客户端建立的连接数)
*/
private String dubboAcceptsSize;
/* dubbo end*/
/* http start*/
/**
* the port of http (http 端口)
*/
private String httpPort;
/**
* the core thread pool size of http (http 核心线程数)
*/
private String httpThreadPoolCoreSize;
/**
* the max thread pool size of http (http 最大线程数)
*/
private String httpThreadPoolMaxSize;
/**
* the queue size of http server(http 线程池队列)
*/
private String httpThreadPoolQueueSize;
/**
* the max accept size of http (http 服务端允许客户端建立的连接数)
*/
private String httpAcceptsSize;
/* http end*/
/* triple start*/
/**
* the port of triple (triple 端口)
*/
private String triplePort;
/**
* the core thread pool size of triple (triple 核心线程数)
*/
private String tripleThreadPoolCoreSize;
/**
* the max thread pool size of triple (triple 最大线程数)
*/
private String tripleThreadPoolMaxSize;
/**
* the queue size of triple server(triple 线程池队列)
*/
private String tripleThreadPoolQueueSize;
/**
* the max accept size of triple (triple 服务端允许客户端建立的连接数)
*/
private String tripleAcceptsSize;
/* triple end*/
没有合适的资源?快使用搜索试试~ 我知道了~
基于SpringBoot研发框架,它在SpringBoot的基础上,提供了诸如ReadinessCheck,类隔离,日志等能力
共1046个文件
java:859个
xml:93个
properties:42个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 187 浏览量
2024-05-11
11:03:18
上传
评论
收藏 1.67MB ZIP 举报
温馨提示
SOFABoot 是蚂蚁集团开源的基于 Spring Boot 的研发框架,它在SpringBoot的基础上,提供了诸如ReadinessCheck,类隔离,日志空间隔离等等能力。在增强了 Spring Boot 的同时,SOFABoot 提供了让用户可以在 Spring Boot 中非常方便地使用 SOFA 中间件的能力。
资源推荐
资源详情
资源评论
收起资源包目录
基于SpringBoot研发框架,它在SpringBoot的基础上,提供了诸如ReadinessCheck,类隔离,日志等能力 (1046个子文件)
gradlew.bat 3KB
spring.factories 1KB
spring.factories 1KB
spring.factories 790B
spring.factories 772B
spring.factories 381B
spring.factories 269B
spring.factories 189B
spring.factories 152B
spring.factories 138B
spring.factories 128B
spring.factories 127B
spring.factories 126B
spring.factories 122B
.gitignore 244B
build.gradle 1KB
DependencyManagementPluginActionIntegrationTests.gradle 948B
settings.gradle 45B
gradlew 8KB
spring.handlers 107B
HEADER 755B
org.springframework.boot.autoconfigure.AutoConfiguration.imports 1KB
org.springframework.boot.autoconfigure.AutoConfiguration.imports 938B
org.springframework.boot.autoconfigure.AutoConfiguration.imports 97B
gradle-wrapper.jar 59KB
sofa-boot-ark-plugin.jar 43KB
module.jar 2KB
SofaBootRpcProperties.java 31KB
ServerConfigContainer.java 30KB
RpcBindingConverter.java 26KB
SofaRpcAutoConfigurationTests.java 24KB
ServiceBeanFactoryPostProcessor.java 22KB
XMap.java 22KB
ReadinessCheckListenerTests.java 20KB
ReadinessCheckListener.java 19KB
RpcBindingParam.java 18KB
BeanInjectorResolverTests.java 18KB
HealthCheckerProcessorTests.java 17KB
SofaRpcAutoConfiguration.java 17KB
SofaBootRpcApplicationTests.java 16KB
ServiceComponentTests.java 16KB
HealthCheckerProcessor.java 15KB
HealthIndicatorProcessorTests.java 15KB
StartupReporter.java 14KB
ReferenceComponentTests.java 14KB
ExtensionComponentTests.java 14KB
HealthIndicatorProcessor.java 13KB
ServiceComponent.java 12KB
SofaRpcEndpoint.java 12KB
ExtensionTests.java 12KB
SpringContextInstallStage.java 12KB
DynamicJvmServiceProxyFinderTests.java 12KB
ProviderConfigContainer.java 12KB
ReferenceComponent.java 12KB
XValueFactory.java 11KB
SofaModuleAutoConfiguration.java 11KB
DynamicJvmServiceProxyFinder.java 11KB
ComponentManagerImplTests.java 11KB
LocalVariableTableParameterNameDiscoverer.java 11KB
LocalVariableTableParameterNameDiscoverer.java 11KB
ReadinessAutoConfigurationTests.java 11KB
ModelCreatingStage.java 11KB
SofaRuntimeAutoConfiguration.java 10KB
SofaModuleAutoConfigurationTests.java 10KB
DynamicSpringContextLoader.java 10KB
RpcBindingAdapter.java 10KB
SofaBindingTests.java 10KB
ConsumerConfigHelper.java 10KB
ServerConfigContainerTests.java 10KB
ComponentManagerImpl.java 10KB
SofaBizHealthCheckEventHandlerTests.java 10KB
ModelCreatingStageTests.java 10KB
DependencyTree.java 10KB
BeanInjectorResolver.java 9KB
SofaPostProcessorShareManagerTests.java 9KB
GradleBuild.java 9KB
AbstractExtPointBeanDefinitionParser.java 9KB
ReferenceAnnotationBeanPostProcessor.java 9KB
AbstractContractFactoryBean.java 9KB
AsyncInitBeanFactoryPostProcessor.java 8KB
AbstractDeploymentDescriptor.java 8KB
AbstractDeploymentDescriptorTests.java 8KB
SofaRuntimeAutoConfigurationTests.java 8KB
OpenTracingSpringMvcAutoConfigurationTests.java 8KB
StartupSpringApplicationRunListener.java 8KB
IsleStageStartupReporterTests.java 8KB
DynamicSpringContextLoaderTests.java 8KB
ApplicationRuntimeModelTests.java 8KB
ReadinessAutoConfiguration.java 8KB
SmartAnnotationUtilsTests.java 8KB
RpcBinding.java 8KB
ProviderConfigHelper.java 8KB
JvmServiceInvoker.java 8KB
JvmServiceInvokerTests.java 8KB
XAnnotatedList.java 8KB
SwitchableApplicationListenerTests.java 8KB
ReadinessCheckCallbackProcessorTest.java 8KB
HealthProperties.java 7KB
RegistryConfigContainer.java 7KB
DynamicJvmServiceInvoker.java 7KB
共 1046 条
- 1
- 2
- 3
- 4
- 5
- 6
- 11
资源评论
Java程序员-张凯
- 粉丝: 1w+
- 资源: 6718
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功