components.xml 16.4 KB
Newer Older
Y
youyong 已提交
1 2
<plexus>
	<components>
3 4 5 6 7
		<component>
			<role>com.dianping.cat.consumer.core.aggregation.AggregationHandler</role>
			<implementation>com.dianping.cat.consumer.core.aggregation.DefaultAggregationHandler</implementation>
		</component>
		<component>
Y
yong.you 已提交
8 9
			<role>com.dianping.cat.consumer.core.aggregation.AggregationConfigManager</role>
			<implementation>com.dianping.cat.consumer.core.aggregation.AggregationConfigManager</implementation>
10 11
			<requirements>
				<requirement>
Y
yong.you 已提交
12
					<role>com.dianping.cat.consumer.core.aggregation.AggregationHandler</role>
13 14
				</requirement>
				<requirement>
Y
yong.you 已提交
15
					<role>com.dianping.cat.consumer.core.config.ConfigDao</role>
16 17 18 19 20 21 22 23
				</requirement>
			</requirements>
		</component>
		<component>
			<role>com.dianping.cat.consumer.core.problem.ProblemReportAggregation</role>
			<implementation>com.dianping.cat.consumer.core.problem.ProblemReportAggregation</implementation>
			<requirements>
				<requirement>
Y
yong.you 已提交
24
					<role>com.dianping.cat.consumer.core.aggregation.AggregationConfigManager</role>
25 26 27
				</requirement>
			</requirements>
		</component>
Y
youyong 已提交
28
		<component>
29 30
			<role>com.dianping.cat.consumer.MessageAnalyzerManager</role>
			<implementation>com.dianping.cat.consumer.DefaultMessageAnalyzerManager</implementation>
Y
youyong 已提交
31
		</component>
Y
youyong 已提交
32 33 34
		<component>
			<role>com.dianping.cat.message.spi.MessageConsumer</role>
			<role-hint>realtime</role-hint>
35
			<implementation>com.dianping.cat.consumer.RealtimeConsumer</implementation>
Y
youyong 已提交
36 37
			<requirements>
				<requirement>
38
					<role>com.dianping.cat.consumer.MessageAnalyzerManager</role>
Y
youyong 已提交
39
				</requirement>
Y
youyong 已提交
40 41 42
				<requirement>
					<role>com.dianping.cat.status.ServerStateManager</role>
				</requirement>
Y
youyong 已提交
43
			</requirements>
Y
youyong 已提交
44
		</component>
F
Frankie Wu 已提交
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
		<component>
			<role>com.dianping.cat.report.RemoteModelService</role>
			<implementation>com.dianping.cat.report.RemoteModelService</implementation>
		</component>
		<component>
			<role>com.dianping.cat.report.ReportService</role>
			<implementation>com.dianping.cat.report.DefaultReportService</implementation>
			<requirements>
				<requirement>
					<role>com.dianping.cat.configuration.ServerConfigManager</role>
				</requirement>
				<requirement>
					<role>com.dianping.cat.report.RemoteModelService</role>
				</requirement>
				<requirement>
F
Frankie Wu 已提交
60
					<role>com.dianping.cat.consumer.core.dal.ReportDao</role>
F
Frankie Wu 已提交
61 62
				</requirement>
				<requirement>
F
Frankie Wu 已提交
63
					<role>com.dianping.cat.consumer.core.dal.DailyReportDao</role>
F
Frankie Wu 已提交
64 65
				</requirement>
				<requirement>
F
Frankie Wu 已提交
66
					<role>com.dianping.cat.consumer.core.dal.WeeklyReportDao</role>
F
Frankie Wu 已提交
67 68
				</requirement>
				<requirement>
F
Frankie Wu 已提交
69
					<role>com.dianping.cat.consumer.core.dal.MonthlyReportDao</role>
F
Frankie Wu 已提交
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
				</requirement>
			</requirements>
		</component>
		<component>
			<role>com.dianping.cat.consumer.MessageAnalyzer</role>
			<role-hint>transaction</role-hint>
			<implementation>com.dianping.cat.consumer.transaction.TransactionAnalyzer</implementation>
			<instantiation-strategy>per-lookup</instantiation-strategy>
			<requirements>
				<requirement>
					<role>com.dianping.cat.report.ReportManager</role>
					<role-hint>transaction</role-hint>
				</requirement>
			</requirements>
		</component>
		<component>
			<role>com.dianping.cat.report.ReportManager</role>
			<role-hint>transaction</role-hint>
			<implementation>com.dianping.cat.report.DefaultReportManager</implementation>
F
Frankie Wu 已提交
89 90 91
			<configuration>
				<name>transaction</name>
			</configuration>
F
Frankie Wu 已提交
92 93 94 95 96 97 98 99 100
			<requirements>
				<requirement>
					<role>com.dianping.cat.report.ReportDelegate</role>
					<role-hint>transaction</role-hint>
				</requirement>
				<requirement>
					<role>com.dianping.cat.storage.BucketManager</role>
				</requirement>
				<requirement>
F
Frankie Wu 已提交
101
					<role>com.dianping.cat.consumer.core.dal.ReportDao</role>
F
Frankie Wu 已提交
102 103
				</requirement>
				<requirement>
F
Frankie Wu 已提交
104
					<role>com.dianping.cat.consumer.core.dal.TaskDao</role>
F
Frankie Wu 已提交
105 106 107 108 109 110 111 112
				</requirement>
			</requirements>
		</component>
		<component>
			<role>com.dianping.cat.report.ReportDelegate</role>
			<role-hint>transaction</role-hint>
			<implementation>com.dianping.cat.consumer.transaction.TransactionDelegate</implementation>
		</component>
Y
You Yong 已提交
113
		<component>
F
Frankie Wu 已提交
114
			<role>com.dianping.cat.consumer.core.problem.ProblemHandler</role>
115
			<role-hint>default-problem</role-hint>
F
Frankie Wu 已提交
116
			<implementation>com.dianping.cat.consumer.core.problem.DefaultProblemHandler</implementation>
Y
youyong 已提交
117
			<configuration>
Y
youyong 已提交
118
				<failureType>URL,SQL,Call,PigeonCall,Cache</failureType>
Y
youyong 已提交
119
				<errorType>Error,RuntimeException,Exception</errorType>
Y
youyong 已提交
120 121 122
			</configuration>
		</component>
		<component>
F
Frankie Wu 已提交
123
			<role>com.dianping.cat.consumer.core.problem.ProblemHandler</role>
124
			<role-hint>long-execution</role-hint>
F
Frankie Wu 已提交
125
			<implementation>com.dianping.cat.consumer.core.problem.LongExecutionProblemHandler</implementation>
126 127 128 129 130
			<requirements>
				<requirement>
					<role>com.dianping.cat.configuration.ServerConfigManager</role>
				</requirement>
			</requirements>
Y
youyong 已提交
131 132
		</component>
		<component>
133 134
			<role>com.dianping.cat.consumer.MessageAnalyzer</role>
			<role-hint>problem</role-hint>
F
Frankie Wu 已提交
135
			<implementation>com.dianping.cat.consumer.core.ProblemAnalyzer</implementation>
Y
youyong 已提交
136 137
			<instantiation-strategy>per-lookup</instantiation-strategy>
			<requirements>
F
Frankie Wu 已提交
138 139 140
				<requirement>
					<role>com.dianping.cat.storage.BucketManager</role>
				</requirement>
141
				<requirement>
Y
yong.you 已提交
142
					<role>com.dianping.cat.consumer.core.dal.ReportDao</role>
143
				</requirement>
S
sean.wang 已提交
144
				<requirement>
Y
yong.you 已提交
145
					<role>com.dianping.cat.consumer.core.dal.TaskDao</role>
S
sean.wang 已提交
146
				</requirement>
147 148 149
				<requirement>
					<role>com.dianping.cat.consumer.core.problem.ProblemReportAggregation</role>
				</requirement>
Y
You Yong 已提交
150
				<requirement>
F
Frankie Wu 已提交
151
					<role>com.dianping.cat.consumer.core.problem.ProblemHandler</role>
F
Frankie Wu 已提交
152
					<role-hints>
153 154
						<role-hint>default-problem</role-hint>
						<role-hint>long-execution</role-hint>
F
Frankie Wu 已提交
155 156
					</role-hints>
					<field-name>m_handlers</field-name>
Y
You Yong 已提交
157
				</requirement>
Y
youyong 已提交
158
			</requirements>
Y
youyong 已提交
159
		</component>
F
Frankie Wu 已提交
160
		<component>
161 162
			<role>com.dianping.cat.consumer.MessageAnalyzer</role>
			<role-hint>event</role-hint>
F
Frankie Wu 已提交
163
			<implementation>com.dianping.cat.consumer.core.EventAnalyzer</implementation>
F
Frankie Wu 已提交
164 165 166 167 168 169
			<instantiation-strategy>per-lookup</instantiation-strategy>
			<requirements>
				<requirement>
					<role>com.dianping.cat.storage.BucketManager</role>
				</requirement>
				<requirement>
Y
yong.you 已提交
170
					<role>com.dianping.cat.consumer.core.dal.ReportDao</role>
F
Frankie Wu 已提交
171
				</requirement>
S
sean.wang 已提交
172
				<requirement>
Y
yong.you 已提交
173
					<role>com.dianping.cat.consumer.core.dal.TaskDao</role>
S
sean.wang 已提交
174
				</requirement>
F
Frankie Wu 已提交
175 176
			</requirements>
		</component>
Y
youyong 已提交
177
		<component>
178 179
			<role>com.dianping.cat.consumer.MessageAnalyzer</role>
			<role-hint>state</role-hint>
F
Frankie Wu 已提交
180
			<implementation>com.dianping.cat.consumer.core.StateAnalyzer</implementation>
Y
youyong 已提交
181
			<instantiation-strategy>per-lookup</instantiation-strategy>
Y
youyong 已提交
182 183
			<requirements>
				<requirement>
Y
yong.you 已提交
184
					<role>com.dianping.cat.consumer.core.dal.HostinfoDao</role>
Y
youyong 已提交
185
				</requirement>
Y
youyong 已提交
186
				<requirement>
Y
yong.you 已提交
187
					<role>com.dianping.cat.consumer.core.dal.ReportDao</role>
Y
youyong 已提交
188
				</requirement>
Y
youyong 已提交
189
				<requirement>
Y
yong.you 已提交
190
					<role>com.dianping.cat.consumer.core.dal.ProjectDao</role>
Y
youyong 已提交
191
				</requirement>
Y
youyong 已提交
192 193 194
				<requirement>
					<role>com.dianping.cat.storage.BucketManager</role>
				</requirement>
Y
youyong 已提交
195 196 197
				<requirement>
					<role>com.dianping.cat.status.ServerStateManager</role>
				</requirement>
Y
youyong 已提交
198
			</requirements>
Y
youyong 已提交
199
		</component>
F
Frankie Wu 已提交
200
		<component>
201 202
			<role>com.dianping.cat.consumer.MessageAnalyzer</role>
			<role-hint>heartbeat</role-hint>
F
Frankie Wu 已提交
203
			<implementation>com.dianping.cat.consumer.core.HeartbeatAnalyzer</implementation>
Y
You Yong 已提交
204 205 206 207 208 209
			<instantiation-strategy>per-lookup</instantiation-strategy>
			<requirements>
				<requirement>
					<role>com.dianping.cat.storage.BucketManager</role>
				</requirement>
				<requirement>
Y
yong.you 已提交
210
					<role>com.dianping.cat.consumer.core.dal.ReportDao</role>
Y
You Yong 已提交
211
				</requirement>
S
sean.wang 已提交
212
				<requirement>
Y
yong.you 已提交
213
					<role>com.dianping.cat.consumer.core.dal.TaskDao</role>
S
sean.wang 已提交
214
				</requirement>
Y
You Yong 已提交
215 216
			</requirements>
		</component>
F
Frankie Wu 已提交
217
		<component>
218 219
			<role>com.dianping.cat.consumer.MessageAnalyzer</role>
			<role-hint>dump</role-hint>
F
Frankie Wu 已提交
220
			<implementation>com.dianping.cat.consumer.core.DumpAnalyzer</implementation>
F
Frankie Wu 已提交
221
			<instantiation-strategy>per-lookup</instantiation-strategy>
F
Frankie Wu 已提交
222
			<requirements>
F
Frankie Wu 已提交
223
				<requirement>
224
					<role>com.dianping.cat.status.ServerStateManager</role>
F
Frankie Wu 已提交
225
				</requirement>
F
Frankie Wu 已提交
226 227
				<requirement>
					<role>com.dianping.cat.storage.dump.MessageBucketManager</role>
F
Frankie Wu 已提交
228
					<role-hint>local</role-hint>
F
Frankie Wu 已提交
229
				</requirement>
S
sean.wang 已提交
230 231
			</requirements>
		</component>
Y
youyong 已提交
232
		<component>
233 234
			<role>com.dianping.cat.consumer.MessageAnalyzer</role>
			<role-hint>top</role-hint>
F
Frankie Wu 已提交
235
			<implementation>com.dianping.cat.consumer.core.TopAnalyzer</implementation>
Y
youyong 已提交
236 237 238 239 240 241
			<instantiation-strategy>per-lookup</instantiation-strategy>
			<requirements>
				<requirement>
					<role>com.dianping.cat.storage.BucketManager</role>
				</requirement>
				<requirement>
Y
yong.you 已提交
242
					<role>com.dianping.cat.consumer.core.dal.ReportDao</role>
Y
youyong 已提交
243
				</requirement>
F
Frankie Wu 已提交
244 245
			</requirements>
		</component>
Y
yong.you 已提交
246 247 248 249 250 251 252 253 254
		<component>
			<role>com.dianping.cat.consumer.core.ProductLineConfigManager</role>
			<implementation>com.dianping.cat.consumer.core.ProductLineConfigManager</implementation>
			<requirements>
				<requirement>
					<role>com.dianping.cat.consumer.core.config.ConfigDao</role>
				</requirement>
			</requirements>
		</component>
255
		<component>
Y
youyong 已提交
256
			<role>org.unidal.initialization.Module</role>
257 258 259
			<role-hint>cat-consumer</role-hint>
			<implementation>com.dianping.cat.consumer.CatConsumerModule</implementation>
		</component>
F
Frankie Wu 已提交
260
		<component>
Y
youyong 已提交
261 262
			<role>org.unidal.dal.jdbc.datasource.JdbcDataSourceConfigurationManager</role>
			<implementation>org.unidal.dal.jdbc.datasource.JdbcDataSourceConfigurationManager</implementation>
F
Frankie Wu 已提交
263 264 265 266
			<configuration>
				<datasourceFile>/data/appdatas/cat/datasources.xml</datasourceFile>
			</configuration>
		</component>
Y
yong.you 已提交
267 268 269 270 271 272 273
		<component>
			<role>org.unidal.dal.jdbc.mapping.TableProvider</role>
			<role-hint>config</role-hint>
			<implementation>org.unidal.dal.jdbc.mapping.SimpleTableProvider</implementation>
			<configuration>
				<logical-table-name>config</logical-table-name>
				<physical-table-name>config</physical-table-name>
Y
yong.you 已提交
274
				<data-source-name>cat</data-source-name>
Y
yong.you 已提交
275 276 277 278 279 280 281 282 283 284 285
			</configuration>
		</component>
		<component>
			<role>com.dianping.cat.consumer.core.config.ConfigDao</role>
			<implementation>com.dianping.cat.consumer.core.config.ConfigDao</implementation>
			<requirements>
				<requirement>
					<role>org.unidal.dal.jdbc.QueryEngine</role>
				</requirement>
			</requirements>
		</component>
286
		<component>
Y
youyong 已提交
287
			<role>org.unidal.dal.jdbc.mapping.TableProvider</role>
288
			<role-hint>hostinfo</role-hint>
Y
youyong 已提交
289
			<implementation>org.unidal.dal.jdbc.mapping.SimpleTableProvider</implementation>
290 291
			<configuration>
				<logical-table-name>hostinfo</logical-table-name>
Y
youyong 已提交
292
				<physical-table-name>hostinfo</physical-table-name>
Y
yong.you 已提交
293
				<data-source-name>cat</data-source-name>
294 295 296
			</configuration>
		</component>
		<component>
Y
youyong 已提交
297
			<role>org.unidal.dal.jdbc.mapping.TableProvider</role>
298
			<role-hint>project</role-hint>
Y
youyong 已提交
299
			<implementation>org.unidal.dal.jdbc.mapping.SimpleTableProvider</implementation>
300
			<configuration>
301 302
				<logical-table-name>project</logical-table-name>
				<physical-table-name>project</physical-table-name>
Y
yong.you 已提交
303
				<data-source-name>cat</data-source-name>
304 305 306
			</configuration>
		</component>
		<component>
Y
youyong 已提交
307
			<role>org.unidal.dal.jdbc.mapping.TableProvider</role>
308
			<role-hint>report</role-hint>
Y
youyong 已提交
309
			<implementation>org.unidal.dal.jdbc.mapping.SimpleTableProvider</implementation>
310
			<configuration>
311 312
				<logical-table-name>report</logical-table-name>
				<physical-table-name>report</physical-table-name>
Y
yong.you 已提交
313
				<data-source-name>cat</data-source-name>
314 315
			</configuration>
		</component>
Y
youyong 已提交
316
		<component>
Y
youyong 已提交
317
			<role>org.unidal.dal.jdbc.mapping.TableProvider</role>
318
			<role-hint>task</role-hint>
Y
youyong 已提交
319
			<implementation>org.unidal.dal.jdbc.mapping.SimpleTableProvider</implementation>
Y
youyong 已提交
320
			<configuration>
321 322
				<logical-table-name>task</logical-table-name>
				<physical-table-name>task</physical-table-name>
Y
yong.you 已提交
323
				<data-source-name>cat</data-source-name>
Y
youyong 已提交
324 325
			</configuration>
		</component>
F
Frankie Wu 已提交
326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375
		<component>
			<role>org.unidal.dal.jdbc.mapping.TableProvider</role>
			<role-hint>dailygraph</role-hint>
			<implementation>org.unidal.dal.jdbc.mapping.SimpleTableProvider</implementation>
			<configuration>
				<logical-table-name>dailygraph</logical-table-name>
				<physical-table-name>dailygraph</physical-table-name>
				<data-source-name>cat</data-source-name>
			</configuration>
		</component>
		<component>
			<role>org.unidal.dal.jdbc.mapping.TableProvider</role>
			<role-hint>dailyreport</role-hint>
			<implementation>org.unidal.dal.jdbc.mapping.SimpleTableProvider</implementation>
			<configuration>
				<logical-table-name>dailyreport</logical-table-name>
				<physical-table-name>dailyreport</physical-table-name>
				<data-source-name>cat</data-source-name>
			</configuration>
		</component>
		<component>
			<role>org.unidal.dal.jdbc.mapping.TableProvider</role>
			<role-hint>graph</role-hint>
			<implementation>org.unidal.dal.jdbc.mapping.SimpleTableProvider</implementation>
			<configuration>
				<logical-table-name>graph</logical-table-name>
				<physical-table-name>graph</physical-table-name>
				<data-source-name>cat</data-source-name>
			</configuration>
		</component>
		<component>
			<role>org.unidal.dal.jdbc.mapping.TableProvider</role>
			<role-hint>monthreport</role-hint>
			<implementation>org.unidal.dal.jdbc.mapping.SimpleTableProvider</implementation>
			<configuration>
				<logical-table-name>monthreport</logical-table-name>
				<physical-table-name>monthreport</physical-table-name>
				<data-source-name>cat</data-source-name>
			</configuration>
		</component>
		<component>
			<role>org.unidal.dal.jdbc.mapping.TableProvider</role>
			<role-hint>weeklyreport</role-hint>
			<implementation>org.unidal.dal.jdbc.mapping.SimpleTableProvider</implementation>
			<configuration>
				<logical-table-name>weeklyreport</logical-table-name>
				<physical-table-name>weeklyreport</physical-table-name>
				<data-source-name>cat</data-source-name>
			</configuration>
		</component>
376
		<component>
Y
yong.you 已提交
377 378
			<role>com.dianping.cat.consumer.core.dal.HostinfoDao</role>
			<implementation>com.dianping.cat.consumer.core.dal.HostinfoDao</implementation>
379 380
			<requirements>
				<requirement>
Y
youyong 已提交
381
					<role>org.unidal.dal.jdbc.QueryEngine</role>
382 383 384 385
				</requirement>
			</requirements>
		</component>
		<component>
Y
yong.you 已提交
386 387
			<role>com.dianping.cat.consumer.core.dal.ProjectDao</role>
			<implementation>com.dianping.cat.consumer.core.dal.ProjectDao</implementation>
388 389
			<requirements>
				<requirement>
Y
youyong 已提交
390
					<role>org.unidal.dal.jdbc.QueryEngine</role>
391 392 393 394
				</requirement>
			</requirements>
		</component>
		<component>
Y
yong.you 已提交
395 396
			<role>com.dianping.cat.consumer.core.dal.ReportDao</role>
			<implementation>com.dianping.cat.consumer.core.dal.ReportDao</implementation>
397 398
			<requirements>
				<requirement>
Y
youyong 已提交
399
					<role>org.unidal.dal.jdbc.QueryEngine</role>
400 401 402
				</requirement>
			</requirements>
		</component>
Y
youyong 已提交
403
		<component>
Y
yong.you 已提交
404 405
			<role>com.dianping.cat.consumer.core.dal.TaskDao</role>
			<implementation>com.dianping.cat.consumer.core.dal.TaskDao</implementation>
Y
youyong 已提交
406 407
			<requirements>
				<requirement>
Y
youyong 已提交
408
					<role>org.unidal.dal.jdbc.QueryEngine</role>
Y
youyong 已提交
409 410 411
				</requirement>
			</requirements>
		</component>
F
Frankie Wu 已提交
412
		<component>
F
Frankie Wu 已提交
413 414
			<role>com.dianping.cat.consumer.core.dal.DailygraphDao</role>
			<implementation>com.dianping.cat.consumer.core.dal.DailygraphDao</implementation>
F
Frankie Wu 已提交
415 416 417 418 419 420 421
			<requirements>
				<requirement>
					<role>org.unidal.dal.jdbc.QueryEngine</role>
				</requirement>
			</requirements>
		</component>
		<component>
F
Frankie Wu 已提交
422 423
			<role>com.dianping.cat.consumer.core.dal.DailyReportDao</role>
			<implementation>com.dianping.cat.consumer.core.dal.DailyReportDao</implementation>
F
Frankie Wu 已提交
424 425 426 427 428 429 430
			<requirements>
				<requirement>
					<role>org.unidal.dal.jdbc.QueryEngine</role>
				</requirement>
			</requirements>
		</component>
		<component>
F
Frankie Wu 已提交
431 432
			<role>com.dianping.cat.consumer.core.dal.GraphDao</role>
			<implementation>com.dianping.cat.consumer.core.dal.GraphDao</implementation>
F
Frankie Wu 已提交
433 434 435 436 437 438 439
			<requirements>
				<requirement>
					<role>org.unidal.dal.jdbc.QueryEngine</role>
				</requirement>
			</requirements>
		</component>
		<component>
F
Frankie Wu 已提交
440 441
			<role>com.dianping.cat.consumer.core.dal.MonthlyReportDao</role>
			<implementation>com.dianping.cat.consumer.core.dal.MonthlyReportDao</implementation>
F
Frankie Wu 已提交
442 443 444 445 446 447 448
			<requirements>
				<requirement>
					<role>org.unidal.dal.jdbc.QueryEngine</role>
				</requirement>
			</requirements>
		</component>
		<component>
F
Frankie Wu 已提交
449 450
			<role>com.dianping.cat.consumer.core.dal.WeeklyReportDao</role>
			<implementation>com.dianping.cat.consumer.core.dal.WeeklyReportDao</implementation>
F
Frankie Wu 已提交
451 452 453 454 455 456
			<requirements>
				<requirement>
					<role>org.unidal.dal.jdbc.QueryEngine</role>
				</requirement>
			</requirements>
		</component>
Y
youyong 已提交
457 458
	</components>
</plexus>