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