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