components.xml 3.3 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>
U
unknown 已提交
19
				<analyzerNames>failure,transaction</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>
U
unknown 已提交
76
		<component>
F
Frankie Wu 已提交
77 78
			<role>com.dianping.cat.consumer.transaction.TransactionReportAnalyzer</role>
			<implementation>com.dianping.cat.consumer.transaction.TransactionReportAnalyzer</implementation>
U
unknown 已提交
79 80
			<instantiation-strategy>per-lookup</instantiation-strategy>
			<configuration>
F
Frankie Wu 已提交
81
				<reportPath>target/report/transaction/</reportPath>
U
unknown 已提交
82
			</configuration>
F
Frankie Wu 已提交
83 84 85 86
			<requirements>
				<requirement>
					<role>com.dianping.cat.message.spi.MessageManager</role>
				</requirement>
F
uprev  
Frankie Wu 已提交
87 88 89 90
				<requirement>
					<role>com.dianping.cat.message.spi.MessageStorage</role>
					<role-hint>html</role-hint>
				</requirement>
F
Frankie Wu 已提交
91
			</requirements>
U
unknown 已提交
92
		</component>
Y
youyong 已提交
93 94
	</components>
</plexus>