components.xml 6.3 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
		<component>
F
Frankie Wu 已提交
105 106 107 108 109 110 111 112 113 114 115
			<role>com.dianping.cat.consumer.ip.TopIpAnalyzer</role>
			<implementation>com.dianping.cat.consumer.ip.TopIpAnalyzer</implementation>
			<instantiation-strategy>per-lookup</instantiation-strategy>
			<requirements>
				<requirement>
					<role>com.dianping.cat.storage.BucketManager</role>
				</requirement>
				<requirement>
					<role>com.dianping.cat.hadoop.dal.ReportDao</role>
				</requirement>
			</requirements>
F
Frankie Wu 已提交
116 117 118 119
		</component>
		<component>
			<role>com.dianping.cat.consumer.dump.DumpAnalyzer</role>
			<implementation>com.dianping.cat.consumer.dump.DumpAnalyzer</implementation>
F
Frankie Wu 已提交
120
			<instantiation-strategy>per-lookup</instantiation-strategy>
F
Frankie Wu 已提交
121
			<requirements>
F
Frankie Wu 已提交
122 123 124
				<requirement>
					<role>com.dianping.cat.configuration.ServerConfigManager</role>
				</requirement>
F
Frankie Wu 已提交
125 126 127
				<requirement>
					<role>com.dianping.cat.message.spi.MessagePathBuilder</role>
				</requirement>
F
Frankie Wu 已提交
128 129 130
				<requirement>
					<role>com.dianping.cat.consumer.dump.DumpUploader</role>
				</requirement>
F
Frankie Wu 已提交
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
				<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 已提交
149
		</component>
S
sean.wang 已提交
150 151 152
		<component>
			<role>com.dianping.cat.consumer.dump.DumpUploader</role>
			<implementation>com.dianping.cat.consumer.dump.DumpUploader</implementation>
F
Frankie Wu 已提交
153 154
			<requirements>
				<requirement>
F
Frankie Wu 已提交
155
					<role>com.dianping.cat.configuration.ServerConfigManager</role>
F
Frankie Wu 已提交
156 157
				</requirement>
				<requirement>
F
Frankie Wu 已提交
158
					<role>com.dianping.cat.hadoop.hdfs.FileSystemManager</role>
F
Frankie Wu 已提交
159 160 161 162 163 164
				</requirement>
			</requirements>
		</component>
		<component>
			<role>com.dianping.cat.consumer.logview.LogviewUploader</role>
			<implementation>com.dianping.cat.consumer.logview.LogviewUploader</implementation>
S
sean.wang 已提交
165
			<requirements>
F
Frankie Wu 已提交
166 167 168
				<requirement>
					<role>com.dianping.cat.configuration.ServerConfigManager</role>
				</requirement>
F
Frankie Wu 已提交
169
				<requirement>
F
Frankie Wu 已提交
170
					<role>com.dianping.cat.hadoop.hdfs.FileSystemManager</role>
F
Frankie Wu 已提交
171 172
				</requirement>
				<requirement>
F
Frankie Wu 已提交
173
					<role>com.dianping.cat.storage.BucketManager</role>
F
Frankie Wu 已提交
174 175
				</requirement>
				<requirement>
F
Frankie Wu 已提交
176
					<role>com.dianping.cat.hadoop.dal.LogviewDao</role>
F
Frankie Wu 已提交
177
				</requirement>
S
sean.wang 已提交
178 179
			</requirements>
		</component>
Y
youyong 已提交
180 181
	</components>
</plexus>