SpringForAll社区
首页
瞬间
文档
Spring Boot 3.5.x
Spring Boot 3.4.x
Spring AI 1.0.x
教程
Java 新特性
Spring Boot 1
Spring Boot 2
Spring Cloud
玩转 IntelliJ IDEA
工具
Spring Initializr
文章发布工具
开发者安装大全
关于
登录
菜单
首页
瞬间
文档
Spring Boot 3.5.x
Spring Boot 3.4.x
Spring AI 1.0.x
教程
Java 新特性
Spring Boot 1
Spring Boot 2
Spring Cloud
玩转 IntelliJ IDEA
工具
Spring Initializr
文章发布工具
开发者安装大全
关于
归档
2024 年 09 月
Tomcat源码解析系列(十五)ConnectionHandler
2024-09-18
架构运维
前言 前文中分析了 Poller 和 PollerEvent,Poller#processSocket 方法里获取了一个 SocketProcessorBase 来处理SocketChannel 的读写事件,在 SocketProcessorBase 的子类 SocketProcessor#doRun 方法里通过…
Tomcat源码解析系列(十四)Poller 与 PollerEvent
2024-09-18
架构运维
前言 前文里讲到了 NioEndpint 的启动过程中创建了多个 Poller 对象,并启动了 Poller 线程。在 上篇文章 中介绍了 Acceptor 的 run 方法,其中讲到了 Acceptor 的工作就是接受客户端的连接并转交给 Poller 线程处理,本文将分析 Poller 和 PollerEvent。Poller 和…
Tomcat源码解析系列(十三)Acceptor
2024-09-18
架构运维
前言 前文介绍了 NioEndpoint,其中讲到了在 NioEndpoint#startInternal 方法里创建并启动了 Acceptor 和 Poller,线程。本篇文章先看 Acceptor,下篇文章再看 Poller。 1. Acceptor Acceptor 的构造方法声明为: private final…
Tomcat源码解析系列(十二)NioEndpoint
2024-09-18
架构运维
前言 前文讲到了 ProtocolHandler 及其默认实现类 Http11NioProtocol,在 Http11NioProtocol 的构造方法中创建了一个 NioEndpoint 对象,并且在 Http11NioProtocol 的 init 和 start 方法中最重要的步骤是调用这个 NioEndpoint 对象的 init 和 start…
Tomcat源码解析系列(十一)ProtocolHandler
2024-09-18
架构运维
前言 前文中讲到了 Connector 的初始化与启动,其中最关键的就是 ProtocolHandler 的初始化与启动。tomcat 中 ProtocolHandler 的默认实现类是 Http11NioProtocol。tomcat9.0.16 中 ProtocolHandler 的实现类中还有一个…
Tomcat源码解析系列(十)Connector
2024-09-14
架构运维
前言 在前文中,介绍了 Tomcat 中 Container 及其相关组件,包括 Engine、Host、Context、Wrapper、Pipeline 和 Valve。之前也分析到了 Service 的 initInternal 和 startInternal 方法,在其中就调用了 Connector 的 init 和 start…
Tomcat源码解析系列(九)Pipeline 与 Valve
2024-09-14
架构运维
前言 前文讲到了 Wrapper 的启动,之前也提到了 Pipeline 和 Valve。Pipeline的实现类是 StandardPipeline,StandardPipeline 继承自 LifecycleBase,而 Valve 的实现类则比较多,这些实现类都继承自基类 ValveBase,而 ValveBase 继承自…
Tomcat源码解析系列(八)Wrapper
2024-09-14
架构运维
前言 前文讲到了Context的启动,在 Context 的 startInternal 方法中调用了子容器的 start 方法,Context 的子容器则是 Wrapper,Wrapper 的实现类是 StandardWrapper。StandardWrapper 没有重载 initInternal 方法。 1.…
Tomcat源码解析系列(七)Context
2024-09-14
架构运维
前言 前文简单介绍了 Host,讲到了Context的启动时机,就是在 Engine 的 start 方法中调用了子容器的 start 方法(在ContainerBase#startInternal),子容器又调用子容器的方法,以此类推,所有子容器的start 方法都会被调用。 1. StandardContext#initInternal…
Tomcat源码解析系列(六)Host
2024-09-14
架构运维
前言 前文讲到了 Engine 的 init 和 start 方法,在 Engine 的 start(ContainerBase#startInternal) 方法里调用了子容器的 start 方法,而 Engine 的子容器就是 Host。在 Engine 的 init 方法中并没有调用子容器的 init 方法,而是在 start 方法中调用子容器的…
上一页
1 / 177
2 / 177
3 / 177
4 / 177
5 / 177
6 / 177
7 / 177
8 / 177
9 / 177
10 / 177
11 / 177
12 / 177
13 / 177
14 / 177
15 / 177
16 / 177
17 / 177
18 / 177
19 / 177
20 / 177
21 / 177
22 / 177
23 / 177
24 / 177
25 / 177
26 / 177
27 / 177
28 / 177
29 / 177
30 / 177
31 / 177
32 / 177
33 / 177
34 / 177
35 / 177
36 / 177
37 / 177
38 / 177
39 / 177
40 / 177
41 / 177
42 / 177
43 / 177
44 / 177
45 / 177
46 / 177
47 / 177
48 / 177
49 / 177
50 / 177
51 / 177
52 / 177
53 / 177
54 / 177
55 / 177
56 / 177
57 / 177
58 / 177
59 / 177
60 / 177
61 / 177
62 / 177
63 / 177
64 / 177
65 / 177
66 / 177
67 / 177
68 / 177
69 / 177
70 / 177
71 / 177
72 / 177
73 / 177
74 / 177
75 / 177
76 / 177
77 / 177
78 / 177
79 / 177
80 / 177
81 / 177
82 / 177
83 / 177
84 / 177
85 / 177
86 / 177
87 / 177
88 / 177
89 / 177
90 / 177
91 / 177
92 / 177
93 / 177
94 / 177
95 / 177
96 / 177
97 / 177
98 / 177
99 / 177
100 / 177
101 / 177
102 / 177
103 / 177
104 / 177
105 / 177
106 / 177
107 / 177
108 / 177
109 / 177
110 / 177
111 / 177
112 / 177
113 / 177
114 / 177
115 / 177
116 / 177
117 / 177
118 / 177
119 / 177
120 / 177
121 / 177
122 / 177
123 / 177
124 / 177
125 / 177
126 / 177
127 / 177
128 / 177
129 / 177
130 / 177
131 / 177
132 / 177
133 / 177
134 / 177
135 / 177
136 / 177
137 / 177
138 / 177
139 / 177
140 / 177
141 / 177
142 / 177
143 / 177
144 / 177
145 / 177
146 / 177
147 / 177
148 / 177
149 / 177
150 / 177
151 / 177
152 / 177
153 / 177
154 / 177
155 / 177
156 / 177
157 / 177
158 / 177
159 / 177
160 / 177
161 / 177
162 / 177
163 / 177
164 / 177
165 / 177
166 / 177
167 / 177
168 / 177
169 / 177
170 / 177
171 / 177
172 / 177
173 / 177
174 / 177
175 / 177
176 / 177
177 / 177
下一页