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