components.xml 6.0 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,dump</analyzers>
Y
youyong 已提交
14
			</configuration>
Y
youyong 已提交
15 16
			<requirements>
				<requirement>
17
					<role>com.dianping.cat.consumer.AnalyzerFactory</role>
Y
youyong 已提交
18
				</requirement>
F
Frankie Wu 已提交
19 20 21
				<requirement>
					<role>com.dianping.cat.consumer.logview.LogviewUploader</role>
				</requirement>
Y
youyong 已提交
22
			</requirements>
Y
youyong 已提交
23
		</component>
Y
You Yong 已提交
24 25 26 27 28
		<component>
			<role>com.dianping.cat.consumer.problem.handler.Handler</role>
			<role-hint>heartbeat</role-hint>
			<implementation>com.dianping.cat.consumer.problem.handler.HeartbeatHandler</implementation>
		</component>
Y
You Yong 已提交
29 30 31 32 33 34 35 36
		<component>
			<role>com.dianping.cat.consumer.problem.handler.Handler</role>
			<role-hint>error</role-hint>
			<implementation>com.dianping.cat.consumer.problem.handler.ErrorHandler</implementation>
			<configuration>
				<errorType>Error,RuntimeException,Exception</errorType>
			</configuration>
		</component>
Y
youyong 已提交
37
		<component>
F
Frankie Wu 已提交
38 39 40
			<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 已提交
41
			<configuration>
Y
You Yong 已提交
42
				<failureType>URL,SQL,Call,Cache</failureType>
Y
youyong 已提交
43 44 45
			</configuration>
		</component>
		<component>
F
Frankie Wu 已提交
46 47 48
			<role>com.dianping.cat.consumer.problem.handler.Handler</role>
			<role-hint>long-url</role-hint>
			<implementation>com.dianping.cat.consumer.problem.handler.LongUrlHandler</implementation>
49 50 51 52 53
			<requirements>
				<requirement>
					<role>com.dianping.cat.configuration.ServerConfigManager</role>
				</requirement>
			</requirements>
Y
youyong 已提交
54 55
		</component>
		<component>
F
Frankie Wu 已提交
56 57
			<role>com.dianping.cat.consumer.problem.ProblemAnalyzer</role>
			<implementation>com.dianping.cat.consumer.problem.ProblemAnalyzer</implementation>
Y
youyong 已提交
58 59
			<instantiation-strategy>per-lookup</instantiation-strategy>
			<requirements>
F
Frankie Wu 已提交
60
				<requirement>
F
Frankie Wu 已提交
61
					<role>com.dianping.cat.consumer.problem.handler.Handler</role>
Y
youyong 已提交
62
					<role-hints>
F
Frankie Wu 已提交
63
						<role-hint>failure</role-hint>
Y
You Yong 已提交
64
						<role-hint>error</role-hint>
F
Frankie Wu 已提交
65
						<role-hint>long-url</role-hint>
Y
You Yong 已提交
66
						<role-hint>heartbeat</role-hint>
Y
youyong 已提交
67 68 69
					</role-hints>
					<field-name>m_handlers</field-name>
				</requirement>
F
Frankie Wu 已提交
70 71 72
				<requirement>
					<role>com.dianping.cat.storage.BucketManager</role>
				</requirement>
73 74 75
				<requirement>
					<role>com.dianping.cat.hadoop.dal.ReportDao</role>
				</requirement>
Y
youyong 已提交
76
			</requirements>
Y
youyong 已提交
77
		</component>
F
Frankie Wu 已提交
78 79 80 81 82
		<component>
			<role>com.dianping.cat.consumer.transaction.TransactionAnalyzer</role>
			<implementation>com.dianping.cat.consumer.transaction.TransactionAnalyzer</implementation>
			<instantiation-strategy>per-lookup</instantiation-strategy>
			<requirements>
83 84 85
				<requirement>
					<role>com.dianping.cat.storage.BucketManager</role>
				</requirement>
F
Frankie Wu 已提交
86
				<requirement>
87
					<role>com.dianping.cat.hadoop.dal.ReportDao</role>
F
Frankie Wu 已提交
88 89 90
				</requirement>
			</requirements>
		</component>
F
Frankie Wu 已提交
91 92 93 94 95 96 97 98 99
		<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>
100
					<role>com.dianping.cat.hadoop.dal.ReportDao</role>
F
Frankie Wu 已提交
101 102 103
				</requirement>
			</requirements>
		</component>
F
Frankie Wu 已提交
104 105 106
		<component>
			<role>com.dianping.cat.consumer.ip.IpAnalyzer</role>
			<implementation>com.dianping.cat.consumer.ip.IpAnalyzer</implementation>
F
Frankie Wu 已提交
107 108 109 110
		</component>
		<component>
			<role>com.dianping.cat.consumer.dump.DumpAnalyzer</role>
			<implementation>com.dianping.cat.consumer.dump.DumpAnalyzer</implementation>
F
Frankie Wu 已提交
111
			<instantiation-strategy>per-lookup</instantiation-strategy>
F
Frankie Wu 已提交
112
			<requirements>
F
Frankie Wu 已提交
113 114 115
				<requirement>
					<role>com.dianping.cat.configuration.ServerConfigManager</role>
				</requirement>
F
Frankie Wu 已提交
116 117 118
				<requirement>
					<role>com.dianping.cat.message.spi.MessagePathBuilder</role>
				</requirement>
F
Frankie Wu 已提交
119 120 121
				<requirement>
					<role>com.dianping.cat.consumer.dump.DumpUploader</role>
				</requirement>
F
Frankie Wu 已提交
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
				<requirement>
					<role>com.dianping.cat.consumer.dump.DumpChannelManager</role>
				</requirement>
			</requirements>
		</component>
		<component>
			<role>com.dianping.cat.consumer.dump.DumpChannel</role>
			<implementation>com.dianping.cat.consumer.dump.DumpChannel</implementation>
		</component>
		<component>
			<role>com.dianping.cat.consumer.dump.DumpChannelManager</role>
			<implementation>com.dianping.cat.consumer.dump.DumpChannelManager</implementation>
			<requirements>
				<requirement>
					<role>com.dianping.cat.message.spi.MessageCodec</role>
					<role-hint>plain-text</role-hint>
				</requirement>
			</requirements>
F
Frankie Wu 已提交
140
		</component>
S
sean.wang 已提交
141 142 143
		<component>
			<role>com.dianping.cat.consumer.dump.DumpUploader</role>
			<implementation>com.dianping.cat.consumer.dump.DumpUploader</implementation>
F
Frankie Wu 已提交
144 145
			<requirements>
				<requirement>
F
Frankie Wu 已提交
146
					<role>com.dianping.cat.configuration.ServerConfigManager</role>
F
Frankie Wu 已提交
147 148
				</requirement>
				<requirement>
F
Frankie Wu 已提交
149
					<role>com.dianping.cat.hadoop.hdfs.FileSystemManager</role>
F
Frankie Wu 已提交
150 151 152 153 154 155
				</requirement>
			</requirements>
		</component>
		<component>
			<role>com.dianping.cat.consumer.logview.LogviewUploader</role>
			<implementation>com.dianping.cat.consumer.logview.LogviewUploader</implementation>
S
sean.wang 已提交
156
			<requirements>
F
Frankie Wu 已提交
157 158 159
				<requirement>
					<role>com.dianping.cat.configuration.ServerConfigManager</role>
				</requirement>
F
Frankie Wu 已提交
160
				<requirement>
F
Frankie Wu 已提交
161
					<role>com.dianping.cat.hadoop.hdfs.FileSystemManager</role>
F
Frankie Wu 已提交
162 163
				</requirement>
				<requirement>
F
Frankie Wu 已提交
164
					<role>com.dianping.cat.storage.BucketManager</role>
F
Frankie Wu 已提交
165 166
				</requirement>
				<requirement>
F
Frankie Wu 已提交
167
					<role>com.dianping.cat.hadoop.dal.LogviewDao</role>
F
Frankie Wu 已提交
168
				</requirement>
S
sean.wang 已提交
169 170
			</requirements>
		</component>
Y
youyong 已提交
171 172
	</components>
</plexus>