components.xml 11.8 KB
Newer Older
Y
youyong 已提交
1 2
<plexus>
	<components>
Y
youyong 已提交
3
		<component>
4
			<role>com.dianping.cat.message.spi.core.MessageConsumer</role>
5
			<implementation>com.dianping.cat.consumer.RealtimeConsumer</implementation>
Y
youyong 已提交
6 7
			<requirements>
				<requirement>
8
					<role>com.dianping.cat.analysis.MessageAnalyzerManager</role>
Y
youyong 已提交
9
				</requirement>
Y
youyong 已提交
10
				<requirement>
11
					<role>com.dianping.cat.statistic.ServerStatisticManager</role>
Y
youyong 已提交
12
				</requirement>
Y
youyong 已提交
13
			</requirements>
Y
youyong 已提交
14
		</component>
Y
yong.you 已提交
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
		<component>
			<role>com.dianping.cat.consumer.problem.ProblemHandler</role>
			<role-hint>default-problem</role-hint>
			<implementation>com.dianping.cat.consumer.problem.DefaultProblemHandler</implementation>
			<configuration>
				<failureType>URL,SQL,Call,PigeonCall,Cache</failureType>
				<errorType>Error,RuntimeException,Exception</errorType>
			</configuration>
		</component>
		<component>
			<role>com.dianping.cat.consumer.problem.ProblemHandler</role>
			<role-hint>long-execution</role-hint>
			<implementation>com.dianping.cat.consumer.problem.LongExecutionProblemHandler</implementation>
			<requirements>
				<requirement>
					<role>com.dianping.cat.ServerConfigManager</role>
				</requirement>
			</requirements>
		</component>
F
Frankie Wu 已提交
34
		<component>
35
			<role>com.dianping.cat.analysis.MessageAnalyzer</role>
F
Frankie Wu 已提交
36 37 38 39 40
			<role-hint>transaction</role-hint>
			<implementation>com.dianping.cat.consumer.transaction.TransactionAnalyzer</implementation>
			<instantiation-strategy>per-lookup</instantiation-strategy>
			<requirements>
				<requirement>
41
					<role>com.dianping.cat.service.ReportManager</role>
F
Frankie Wu 已提交
42 43
					<role-hint>transaction</role-hint>
				</requirement>
Y
yong.you 已提交
44 45 46 47
				<requirement>
					<role>com.dianping.cat.service.ReportDelegate</role>
					<role-hint>transaction</role-hint>
				</requirement>
F
Frankie Wu 已提交
48 49 50
			</requirements>
		</component>
		<component>
51
			<role>com.dianping.cat.service.ReportManager</role>
F
Frankie Wu 已提交
52
			<role-hint>transaction</role-hint>
53
			<implementation>com.dianping.cat.service.DefaultReportManager</implementation>
F
Frankie Wu 已提交
54 55 56
			<configuration>
				<name>transaction</name>
			</configuration>
F
Frankie Wu 已提交
57 58
			<requirements>
				<requirement>
59
					<role>com.dianping.cat.service.ReportDelegate</role>
F
Frankie Wu 已提交
60 61 62 63 64 65
					<role-hint>transaction</role-hint>
				</requirement>
				<requirement>
					<role>com.dianping.cat.storage.BucketManager</role>
				</requirement>
				<requirement>
Y
yong.you 已提交
66
					<role>com.dianping.cat.core.dal.HourlyReportDao</role>
F
Frankie Wu 已提交
67 68 69 70
				</requirement>
			</requirements>
		</component>
		<component>
71
			<role>com.dianping.cat.service.ReportDelegate</role>
F
Frankie Wu 已提交
72 73
			<role-hint>transaction</role-hint>
			<implementation>com.dianping.cat.consumer.transaction.TransactionDelegate</implementation>
Y
yong.you 已提交
74 75
			<requirements>
				<requirement>
76
					<role>com.dianping.cat.task.TaskManager</role>
Y
yong.you 已提交
77 78
				</requirement>
			</requirements>
F
Frankie Wu 已提交
79
		</component>
Y
You Yong 已提交
80
		<component>
Y
yong.you 已提交
81 82 83 84
			<role>com.dianping.cat.analysis.MessageAnalyzer</role>
			<role-hint>event</role-hint>
			<implementation>com.dianping.cat.consumer.event.EventAnalyzer</implementation>
			<instantiation-strategy>per-lookup</instantiation-strategy>
85 86
			<requirements>
				<requirement>
Y
yong.you 已提交
87 88
					<role>com.dianping.cat.service.ReportManager</role>
					<role-hint>event</role-hint>
89 90
				</requirement>
			</requirements>
Y
youyong 已提交
91 92
		</component>
		<component>
Y
yong.you 已提交
93 94 95 96 97 98
			<role>com.dianping.cat.service.ReportManager</role>
			<role-hint>event</role-hint>
			<implementation>com.dianping.cat.service.DefaultReportManager</implementation>
			<configuration>
				<name>event</name>
			</configuration>
Y
youyong 已提交
99
			<requirements>
Y
yong.you 已提交
100 101 102 103
				<requirement>
					<role>com.dianping.cat.service.ReportDelegate</role>
					<role-hint>event</role-hint>
				</requirement>
F
Frankie Wu 已提交
104 105 106
				<requirement>
					<role>com.dianping.cat.storage.BucketManager</role>
				</requirement>
107
				<requirement>
Y
yong.you 已提交
108
					<role>com.dianping.cat.core.dal.HourlyReportDao</role>
109
				</requirement>
Y
yong.you 已提交
110 111 112 113 114 115 116
			</requirements>
		</component>
		<component>
			<role>com.dianping.cat.service.ReportDelegate</role>
			<role-hint>event</role-hint>
			<implementation>com.dianping.cat.consumer.event.EventDelegate</implementation>
			<requirements>
S
sean.wang 已提交
117
				<requirement>
Y
yong.you 已提交
118
					<role>com.dianping.cat.task.TaskManager</role>
S
sean.wang 已提交
119
				</requirement>
Y
yong.you 已提交
120 121
			</requirements>
		</component>
Y
yong.you 已提交
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
		<component>
			<role>com.dianping.cat.consumer.problem.aggregation.AggregationHandler</role>
			<implementation>com.dianping.cat.consumer.problem.aggregation.DefaultAggregationHandler</implementation>
		</component>
		<component>
			<role>com.dianping.cat.consumer.problem.aggregation.AggregationConfigManager</role>
			<implementation>com.dianping.cat.consumer.problem.aggregation.AggregationConfigManager</implementation>
			<requirements>
				<requirement>
					<role>com.dianping.cat.consumer.problem.aggregation.AggregationHandler</role>
				</requirement>
				<requirement>
					<role>com.dianping.cat.core.config.ConfigDao</role>
				</requirement>
			</requirements>
		</component>
		<component>
			<role>com.dianping.cat.consumer.problem.ProblemReportAggregation</role>
			<implementation>com.dianping.cat.consumer.problem.ProblemReportAggregation</implementation>
			<requirements>
				<requirement>
					<role>com.dianping.cat.consumer.problem.aggregation.AggregationConfigManager</role>
				</requirement>
			</requirements>
		</component>
Y
yong.you 已提交
147 148 149 150 151 152 153 154 155 156
		<component>
			<role>com.dianping.cat.analysis.MessageAnalyzer</role>
			<role-hint>problem</role-hint>
			<implementation>com.dianping.cat.consumer.problem.ProblemAnalyzer</implementation>
			<instantiation-strategy>per-lookup</instantiation-strategy>
			<requirements>
				<requirement>
					<role>com.dianping.cat.service.ReportManager</role>
					<role-hint>problem</role-hint>
				</requirement>
157
				<requirement>
Y
yong.you 已提交
158 159
					<role>com.dianping.cat.service.ReportDelegate</role>
					<role-hint>problem</role-hint>
160
				</requirement>
Y
You Yong 已提交
161
				<requirement>
Y
yong.you 已提交
162
					<role>com.dianping.cat.consumer.problem.ProblemHandler</role>
F
Frankie Wu 已提交
163
					<role-hints>
164 165
						<role-hint>default-problem</role-hint>
						<role-hint>long-execution</role-hint>
F
Frankie Wu 已提交
166 167
					</role-hints>
					<field-name>m_handlers</field-name>
Y
You Yong 已提交
168
				</requirement>
Y
youyong 已提交
169
			</requirements>
Y
youyong 已提交
170
		</component>
F
Frankie Wu 已提交
171
		<component>
Y
yong.you 已提交
172 173 174 175 176 177
			<role>com.dianping.cat.service.ReportManager</role>
			<role-hint>problem</role-hint>
			<implementation>com.dianping.cat.service.DefaultReportManager</implementation>
			<configuration>
				<name>problem</name>
			</configuration>
F
Frankie Wu 已提交
178
			<requirements>
Y
yong.you 已提交
179 180 181 182
				<requirement>
					<role>com.dianping.cat.service.ReportDelegate</role>
					<role-hint>problem</role-hint>
				</requirement>
F
Frankie Wu 已提交
183 184 185 186
				<requirement>
					<role>com.dianping.cat.storage.BucketManager</role>
				</requirement>
				<requirement>
Y
yong.you 已提交
187
					<role>com.dianping.cat.core.dal.HourlyReportDao</role>
F
Frankie Wu 已提交
188
				</requirement>
Y
yong.you 已提交
189 190 191 192 193 194 195 196 197 198
			</requirements>
		</component>
		<component>
			<role>com.dianping.cat.service.ReportDelegate</role>
			<role-hint>problem</role-hint>
			<implementation>com.dianping.cat.consumer.problem.ProblemDelegate</implementation>
			<requirements>
				<requirement>
					<role>com.dianping.cat.consumer.problem.ProblemReportAggregation</role>
				</requirement>
S
sean.wang 已提交
199
				<requirement>
Y
yong.you 已提交
200
					<role>com.dianping.cat.task.TaskManager</role>
S
sean.wang 已提交
201
				</requirement>
F
Frankie Wu 已提交
202 203
			</requirements>
		</component>
Y
youyong 已提交
204
		<component>
205
			<role>com.dianping.cat.analysis.MessageAnalyzer</role>
Y
yong.you 已提交
206 207
			<role-hint>heartbeat</role-hint>
			<implementation>com.dianping.cat.consumer.heartbeat.HeartbeatAnalyzer</implementation>
Y
youyong 已提交
208
			<instantiation-strategy>per-lookup</instantiation-strategy>
Y
youyong 已提交
209 210
			<requirements>
				<requirement>
Y
yong.you 已提交
211 212
					<role>com.dianping.cat.service.ReportManager</role>
					<role-hint>heartbeat</role-hint>
Y
youyong 已提交
213
				</requirement>
Y
yong.you 已提交
214 215 216 217 218 219 220 221 222 223
			</requirements>
		</component>
		<component>
			<role>com.dianping.cat.service.ReportManager</role>
			<role-hint>heartbeat</role-hint>
			<implementation>com.dianping.cat.service.DefaultReportManager</implementation>
			<configuration>
				<name>heartbeat</name>
			</configuration>
			<requirements>
Y
youyong 已提交
224
				<requirement>
Y
yong.you 已提交
225 226
					<role>com.dianping.cat.service.ReportDelegate</role>
					<role-hint>heartbeat</role-hint>
Y
youyong 已提交
227
				</requirement>
Y
yong.you 已提交
228
				<requirement>
Y
yong.you 已提交
229
					<role>com.dianping.cat.storage.BucketManager</role>
Y
yong.you 已提交
230
				</requirement>
Y
youyong 已提交
231
				<requirement>
Y
yong.you 已提交
232
					<role>com.dianping.cat.core.dal.HourlyReportDao</role>
Y
youyong 已提交
233
				</requirement>
Y
yong.you 已提交
234 235 236 237 238 239 240
			</requirements>
		</component>
		<component>
			<role>com.dianping.cat.service.ReportDelegate</role>
			<role-hint>heartbeat</role-hint>
			<implementation>com.dianping.cat.consumer.heartbeat.HeartbeatDelegate</implementation>
			<requirements>
Y
youyong 已提交
241
				<requirement>
Y
yong.you 已提交
242
					<role>com.dianping.cat.task.TaskManager</role>
Y
youyong 已提交
243
				</requirement>
Y
youyong 已提交
244
			</requirements>
Y
youyong 已提交
245
		</component>
F
Frankie Wu 已提交
246
		<component>
247
			<role>com.dianping.cat.analysis.MessageAnalyzer</role>
Y
yong.you 已提交
248 249
			<role-hint>top</role-hint>
			<implementation>com.dianping.cat.consumer.top.TopAnalyzer</implementation>
Y
You Yong 已提交
250 251 252
			<instantiation-strategy>per-lookup</instantiation-strategy>
			<requirements>
				<requirement>
Y
yong.you 已提交
253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268
					<role>com.dianping.cat.service.ReportManager</role>
					<role-hint>top</role-hint>
				</requirement>
			</requirements>
		</component>
		<component>
			<role>com.dianping.cat.service.ReportManager</role>
			<role-hint>top</role-hint>
			<implementation>com.dianping.cat.service.DefaultReportManager</implementation>
			<configuration>
				<name>top</name>
			</configuration>
			<requirements>
				<requirement>
					<role>com.dianping.cat.service.ReportDelegate</role>
					<role-hint>top</role-hint>
Y
You Yong 已提交
269 270
				</requirement>
				<requirement>
Y
yong.you 已提交
271
					<role>com.dianping.cat.storage.BucketManager</role>
Y
You Yong 已提交
272
				</requirement>
S
sean.wang 已提交
273
				<requirement>
Y
yong.you 已提交
274
					<role>com.dianping.cat.core.dal.HourlyReportDao</role>
S
sean.wang 已提交
275
				</requirement>
Y
You Yong 已提交
276 277
			</requirements>
		</component>
Y
yong.you 已提交
278 279 280 281 282
		<component>
			<role>com.dianping.cat.service.ReportDelegate</role>
			<role-hint>top</role-hint>
			<implementation>com.dianping.cat.consumer.top.TopDelegate</implementation>
		</component>
F
Frankie Wu 已提交
283
		<component>
284
			<role>com.dianping.cat.analysis.MessageAnalyzer</role>
285
			<role-hint>dump</role-hint>
Y
yong.you 已提交
286
			<implementation>com.dianping.cat.consumer.dump.DumpAnalyzer</implementation>
F
Frankie Wu 已提交
287
			<instantiation-strategy>per-lookup</instantiation-strategy>
F
Frankie Wu 已提交
288
			<requirements>
F
Frankie Wu 已提交
289
				<requirement>
290
					<role>com.dianping.cat.statistic.ServerStatisticManager</role>
F
Frankie Wu 已提交
291
				</requirement>
F
Frankie Wu 已提交
292 293
				<requirement>
					<role>com.dianping.cat.storage.dump.MessageBucketManager</role>
F
Frankie Wu 已提交
294
					<role-hint>local</role-hint>
F
Frankie Wu 已提交
295
				</requirement>
S
sean.wang 已提交
296 297
			</requirements>
		</component>
Y
youyong 已提交
298
		<component>
299
			<role>com.dianping.cat.analysis.MessageAnalyzer</role>
Y
yong.you 已提交
300 301
			<role-hint>state</role-hint>
			<implementation>com.dianping.cat.consumer.state.StateAnalyzer</implementation>
Y
youyong 已提交
302 303
			<instantiation-strategy>per-lookup</instantiation-strategy>
			<requirements>
Y
yong.you 已提交
304 305 306 307 308
				<requirement>
					<role>com.dianping.cat.service.ReportManager</role>
					<role-hint>state</role-hint>
				</requirement>
				<requirement>
S
sunryuan 已提交
309
					<role>com.dianping.cat.DomainManager</role>
Y
yong.you 已提交
310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327
				</requirement>
				<requirement>
					<role>com.dianping.cat.statistic.ServerStatisticManager</role>
				</requirement>
			</requirements>
		</component>
		<component>
			<role>com.dianping.cat.service.ReportManager</role>
			<role-hint>state</role-hint>
			<implementation>com.dianping.cat.service.DefaultReportManager</implementation>
			<configuration>
				<name>state</name>
			</configuration>
			<requirements>
				<requirement>
					<role>com.dianping.cat.service.ReportDelegate</role>
					<role-hint>state</role-hint>
				</requirement>
Y
youyong 已提交
328 329 330 331
				<requirement>
					<role>com.dianping.cat.storage.BucketManager</role>
				</requirement>
				<requirement>
Y
yong.you 已提交
332
					<role>com.dianping.cat.core.dal.HourlyReportDao</role>
Y
youyong 已提交
333
				</requirement>
F
Frankie Wu 已提交
334 335
			</requirements>
		</component>
Y
yong.you 已提交
336
		<component>
Y
yong.you 已提交
337 338 339
			<role>com.dianping.cat.service.ReportDelegate</role>
			<role-hint>state</role-hint>
			<implementation>com.dianping.cat.consumer.state.StateDelegate</implementation>
Y
yong.you 已提交
340 341
			<requirements>
				<requirement>
Y
yong.you 已提交
342
					<role>com.dianping.cat.task.TaskManager</role>
Y
yong.you 已提交
343 344 345
				</requirement>
			</requirements>
		</component>
346
		<component>
Y
youyong 已提交
347
			<role>org.unidal.initialization.Module</role>
348 349 350
			<role-hint>cat-consumer</role-hint>
			<implementation>com.dianping.cat.consumer.CatConsumerModule</implementation>
		</component>
Y
youyong 已提交
351 352
	</components>
</plexus>