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