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