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