components.xml 3.2 KB
Newer Older
Y
youyong 已提交
1 2
<plexus>
	<components>
Y
youyong 已提交
3
		<component>
4 5
			<role>com.dianping.cat.consumer.AnalyzerFactory</role>
			<implementation>com.dianping.cat.consumer.DefaultAnalyzerFactory</implementation>
Y
youyong 已提交
6
		</component>
Y
youyong 已提交
7 8 9
		<component>
			<role>com.dianping.cat.message.spi.MessageConsumer</role>
			<role-hint>realtime</role-hint>
10
			<implementation>com.dianping.cat.consumer.RealtimeConsumer</implementation>
Y
youyong 已提交
11
			<configuration>
Y
youyong 已提交
12
				<extraTime>300000</extraTime>
F
Frankie Wu 已提交
13
				<analyzers>problem,transaction,event,ip</analyzers>
Y
youyong 已提交
14
			</configuration>
Y
youyong 已提交
15 16
			<requirements>
				<requirement>
17
					<role>com.dianping.cat.consumer.AnalyzerFactory</role>
Y
youyong 已提交
18 19
				</requirement>
			</requirements>
Y
youyong 已提交
20 21
		</component>
		<component>
F
Frankie Wu 已提交
22 23 24
			<role>com.dianping.cat.consumer.problem.handler.Handler</role>
			<role-hint>failure</role-hint>
			<implementation>com.dianping.cat.consumer.problem.handler.FailureHandler</implementation>
Y
youyong 已提交
25 26 27 28 29
			<configuration>
				<failureType>Error,RuntimeException,Exception</failureType>
			</configuration>
		</component>
		<component>
F
Frankie Wu 已提交
30 31 32
			<role>com.dianping.cat.consumer.problem.handler.Handler</role>
			<role-hint>long-url</role-hint>
			<implementation>com.dianping.cat.consumer.problem.handler.LongUrlHandler</implementation>
33 34 35 36 37
			<requirements>
				<requirement>
					<role>com.dianping.cat.configuration.ServerConfigManager</role>
				</requirement>
			</requirements>
Y
youyong 已提交
38 39
		</component>
		<component>
F
Frankie Wu 已提交
40 41
			<role>com.dianping.cat.consumer.problem.ProblemAnalyzer</role>
			<implementation>com.dianping.cat.consumer.problem.ProblemAnalyzer</implementation>
Y
youyong 已提交
42 43
			<instantiation-strategy>per-lookup</instantiation-strategy>
			<requirements>
F
Frankie Wu 已提交
44
				<requirement>
F
Frankie Wu 已提交
45
					<role>com.dianping.cat.consumer.problem.handler.Handler</role>
Y
youyong 已提交
46
					<role-hints>
F
Frankie Wu 已提交
47 48
						<role-hint>failure</role-hint>
						<role-hint>long-url</role-hint>
Y
youyong 已提交
49 50 51
					</role-hints>
					<field-name>m_handlers</field-name>
				</requirement>
F
Frankie Wu 已提交
52 53 54
				<requirement>
					<role>com.dianping.cat.storage.BucketManager</role>
				</requirement>
55 56 57
				<requirement>
					<role>com.dianping.cat.hadoop.dal.ReportDao</role>
				</requirement>
Y
youyong 已提交
58
			</requirements>
Y
youyong 已提交
59
		</component>
F
Frankie Wu 已提交
60 61 62 63 64
		<component>
			<role>com.dianping.cat.consumer.transaction.TransactionAnalyzer</role>
			<implementation>com.dianping.cat.consumer.transaction.TransactionAnalyzer</implementation>
			<instantiation-strategy>per-lookup</instantiation-strategy>
			<requirements>
65 66 67
				<requirement>
					<role>com.dianping.cat.storage.BucketManager</role>
				</requirement>
F
Frankie Wu 已提交
68
				<requirement>
69
					<role>com.dianping.cat.hadoop.dal.ReportDao</role>
F
Frankie Wu 已提交
70 71 72
				</requirement>
			</requirements>
		</component>
F
Frankie Wu 已提交
73 74 75 76 77 78 79 80 81
		<component>
			<role>com.dianping.cat.consumer.event.EventAnalyzer</role>
			<implementation>com.dianping.cat.consumer.event.EventAnalyzer</implementation>
			<instantiation-strategy>per-lookup</instantiation-strategy>
			<requirements>
				<requirement>
					<role>com.dianping.cat.storage.BucketManager</role>
				</requirement>
				<requirement>
82
					<role>com.dianping.cat.hadoop.dal.ReportDao</role>
F
Frankie Wu 已提交
83 84 85
				</requirement>
			</requirements>
		</component>
F
Frankie Wu 已提交
86 87 88 89 90
		<component>
			<role>com.dianping.cat.consumer.ip.IpAnalyzer</role>
			<implementation>com.dianping.cat.consumer.ip.IpAnalyzer</implementation>
			<instantiation-strategy>per-lookup</instantiation-strategy>
		</component>
Y
youyong 已提交
91 92
	</components>
</plexus>