components.xml 8.1 KB
Newer Older
Y
youyong 已提交
1 2
<plexus>
	<components>
3 4 5 6 7
		<component>
			<role>com.dianping.cat.consumer.core.aggregation.AggregationHandler</role>
			<implementation>com.dianping.cat.consumer.core.aggregation.DefaultAggregationHandler</implementation>
		</component>
		<component>
Y
yong.you 已提交
8 9
			<role>com.dianping.cat.consumer.core.aggregation.AggregationConfigManager</role>
			<implementation>com.dianping.cat.consumer.core.aggregation.AggregationConfigManager</implementation>
10 11
			<requirements>
				<requirement>
Y
yong.you 已提交
12
					<role>com.dianping.cat.consumer.core.aggregation.AggregationHandler</role>
13 14
				</requirement>
				<requirement>
Y
yong.you 已提交
15
					<role>com.dianping.cat.core.config.ConfigDao</role>
16 17 18 19 20 21 22 23
				</requirement>
			</requirements>
		</component>
		<component>
			<role>com.dianping.cat.consumer.core.problem.ProblemReportAggregation</role>
			<implementation>com.dianping.cat.consumer.core.problem.ProblemReportAggregation</implementation>
			<requirements>
				<requirement>
Y
yong.you 已提交
24
					<role>com.dianping.cat.consumer.core.aggregation.AggregationConfigManager</role>
25 26 27
				</requirement>
			</requirements>
		</component>
Y
youyong 已提交
28
		<component>
29
			<role>com.dianping.cat.message.spi.core.MessageConsumer</role>
30
			<implementation>com.dianping.cat.consumer.RealtimeConsumer</implementation>
Y
youyong 已提交
31 32
			<requirements>
				<requirement>
33
					<role>com.dianping.cat.analysis.MessageAnalyzerManager</role>
Y
youyong 已提交
34
				</requirement>
Y
youyong 已提交
35
				<requirement>
36
					<role>com.dianping.cat.statistic.ServerStatisticManager</role>
Y
youyong 已提交
37
				</requirement>
Y
youyong 已提交
38
			</requirements>
Y
youyong 已提交
39
		</component>
F
Frankie Wu 已提交
40
		<component>
41
			<role>com.dianping.cat.analysis.MessageAnalyzer</role>
F
Frankie Wu 已提交
42 43 44 45 46
			<role-hint>transaction</role-hint>
			<implementation>com.dianping.cat.consumer.transaction.TransactionAnalyzer</implementation>
			<instantiation-strategy>per-lookup</instantiation-strategy>
			<requirements>
				<requirement>
47
					<role>com.dianping.cat.service.ReportManager</role>
F
Frankie Wu 已提交
48 49 50 51 52
					<role-hint>transaction</role-hint>
				</requirement>
			</requirements>
		</component>
		<component>
53
			<role>com.dianping.cat.service.ReportManager</role>
F
Frankie Wu 已提交
54
			<role-hint>transaction</role-hint>
55
			<implementation>com.dianping.cat.service.DefaultReportManager</implementation>
F
Frankie Wu 已提交
56 57 58
			<configuration>
				<name>transaction</name>
			</configuration>
F
Frankie Wu 已提交
59 60
			<requirements>
				<requirement>
61
					<role>com.dianping.cat.service.ReportDelegate</role>
F
Frankie Wu 已提交
62 63 64 65 66 67
					<role-hint>transaction</role-hint>
				</requirement>
				<requirement>
					<role>com.dianping.cat.storage.BucketManager</role>
				</requirement>
				<requirement>
Y
yong.you 已提交
68
					<role>com.dianping.cat.core.dal.HourlyReportDao</role>
F
Frankie Wu 已提交
69 70 71 72
				</requirement>
			</requirements>
		</component>
		<component>
73
			<role>com.dianping.cat.service.ReportDelegate</role>
F
Frankie Wu 已提交
74 75
			<role-hint>transaction</role-hint>
			<implementation>com.dianping.cat.consumer.transaction.TransactionDelegate</implementation>
Y
yong.you 已提交
76 77 78 79 80
			<requirements>
				<requirement>
					<role>com.dianping.cat.core.dal.TaskDao</role>
				</requirement>
			</requirements>
F
Frankie Wu 已提交
81
		</component>
Y
You Yong 已提交
82
		<component>
F
Frankie Wu 已提交
83
			<role>com.dianping.cat.consumer.core.problem.ProblemHandler</role>
84
			<role-hint>default-problem</role-hint>
F
Frankie Wu 已提交
85
			<implementation>com.dianping.cat.consumer.core.problem.DefaultProblemHandler</implementation>
Y
youyong 已提交
86
			<configuration>
Y
youyong 已提交
87
				<failureType>URL,SQL,Call,PigeonCall,Cache</failureType>
Y
youyong 已提交
88
				<errorType>Error,RuntimeException,Exception</errorType>
Y
youyong 已提交
89 90 91
			</configuration>
		</component>
		<component>
F
Frankie Wu 已提交
92
			<role>com.dianping.cat.consumer.core.problem.ProblemHandler</role>
93
			<role-hint>long-execution</role-hint>
F
Frankie Wu 已提交
94
			<implementation>com.dianping.cat.consumer.core.problem.LongExecutionProblemHandler</implementation>
95 96
			<requirements>
				<requirement>
97
					<role>com.dianping.cat.ServerConfigManager</role>
98 99
				</requirement>
			</requirements>
Y
youyong 已提交
100 101
		</component>
		<component>
102
			<role>com.dianping.cat.analysis.MessageAnalyzer</role>
103
			<role-hint>problem</role-hint>
F
Frankie Wu 已提交
104
			<implementation>com.dianping.cat.consumer.core.ProblemAnalyzer</implementation>
Y
youyong 已提交
105 106
			<instantiation-strategy>per-lookup</instantiation-strategy>
			<requirements>
F
Frankie Wu 已提交
107 108 109
				<requirement>
					<role>com.dianping.cat.storage.BucketManager</role>
				</requirement>
110
				<requirement>
Y
yong.you 已提交
111
					<role>com.dianping.cat.core.dal.HourlyReportDao</role>
112
				</requirement>
S
sean.wang 已提交
113
				<requirement>
Y
yong.you 已提交
114
					<role>com.dianping.cat.task.TaskManager</role>
S
sean.wang 已提交
115
				</requirement>
116 117 118
				<requirement>
					<role>com.dianping.cat.consumer.core.problem.ProblemReportAggregation</role>
				</requirement>
Y
You Yong 已提交
119
				<requirement>
F
Frankie Wu 已提交
120
					<role>com.dianping.cat.consumer.core.problem.ProblemHandler</role>
F
Frankie Wu 已提交
121
					<role-hints>
122 123
						<role-hint>default-problem</role-hint>
						<role-hint>long-execution</role-hint>
F
Frankie Wu 已提交
124 125
					</role-hints>
					<field-name>m_handlers</field-name>
Y
You Yong 已提交
126
				</requirement>
Y
youyong 已提交
127
			</requirements>
Y
youyong 已提交
128
		</component>
F
Frankie Wu 已提交
129
		<component>
130
			<role>com.dianping.cat.analysis.MessageAnalyzer</role>
131
			<role-hint>event</role-hint>
F
Frankie Wu 已提交
132
			<implementation>com.dianping.cat.consumer.core.EventAnalyzer</implementation>
F
Frankie Wu 已提交
133 134 135 136 137 138
			<instantiation-strategy>per-lookup</instantiation-strategy>
			<requirements>
				<requirement>
					<role>com.dianping.cat.storage.BucketManager</role>
				</requirement>
				<requirement>
Y
yong.you 已提交
139
					<role>com.dianping.cat.core.dal.HourlyReportDao</role>
F
Frankie Wu 已提交
140
				</requirement>
S
sean.wang 已提交
141
				<requirement>
Y
yong.you 已提交
142
					<role>com.dianping.cat.task.TaskManager</role>
S
sean.wang 已提交
143
				</requirement>
F
Frankie Wu 已提交
144 145
			</requirements>
		</component>
Y
youyong 已提交
146
		<component>
147
			<role>com.dianping.cat.analysis.MessageAnalyzer</role>
148
			<role-hint>state</role-hint>
F
Frankie Wu 已提交
149
			<implementation>com.dianping.cat.consumer.core.StateAnalyzer</implementation>
Y
youyong 已提交
150
			<instantiation-strategy>per-lookup</instantiation-strategy>
Y
youyong 已提交
151 152
			<requirements>
				<requirement>
Y
yong.you 已提交
153
					<role>com.dianping.cat.core.dal.HostinfoDao</role>
Y
youyong 已提交
154
				</requirement>
Y
youyong 已提交
155
				<requirement>
Y
yong.you 已提交
156
					<role>com.dianping.cat.core.dal.HourlyReportDao</role>
Y
youyong 已提交
157
				</requirement>
Y
youyong 已提交
158
				<requirement>
Y
yong.you 已提交
159
					<role>com.dianping.cat.core.dal.ProjectDao</role>
Y
youyong 已提交
160
				</requirement>
Y
yong.you 已提交
161 162 163
				<requirement>
					<role>com.dianping.cat.task.TaskManager</role>
				</requirement>
Y
youyong 已提交
164 165 166
				<requirement>
					<role>com.dianping.cat.storage.BucketManager</role>
				</requirement>
Y
youyong 已提交
167
				<requirement>
168
					<role>com.dianping.cat.statistic.ServerStatisticManager</role>
Y
youyong 已提交
169
				</requirement>
Y
youyong 已提交
170
			</requirements>
Y
youyong 已提交
171
		</component>
F
Frankie Wu 已提交
172
		<component>
173
			<role>com.dianping.cat.analysis.MessageAnalyzer</role>
174
			<role-hint>heartbeat</role-hint>
F
Frankie Wu 已提交
175
			<implementation>com.dianping.cat.consumer.core.HeartbeatAnalyzer</implementation>
Y
You Yong 已提交
176 177 178 179 180 181
			<instantiation-strategy>per-lookup</instantiation-strategy>
			<requirements>
				<requirement>
					<role>com.dianping.cat.storage.BucketManager</role>
				</requirement>
				<requirement>
Y
yong.you 已提交
182
					<role>com.dianping.cat.core.dal.HourlyReportDao</role>
Y
You Yong 已提交
183
				</requirement>
S
sean.wang 已提交
184
				<requirement>
Y
yong.you 已提交
185
					<role>com.dianping.cat.task.TaskManager</role>
S
sean.wang 已提交
186
				</requirement>
Y
You Yong 已提交
187 188
			</requirements>
		</component>
F
Frankie Wu 已提交
189
		<component>
190
			<role>com.dianping.cat.analysis.MessageAnalyzer</role>
191
			<role-hint>dump</role-hint>
F
Frankie Wu 已提交
192
			<implementation>com.dianping.cat.consumer.core.DumpAnalyzer</implementation>
F
Frankie Wu 已提交
193
			<instantiation-strategy>per-lookup</instantiation-strategy>
F
Frankie Wu 已提交
194
			<requirements>
F
Frankie Wu 已提交
195
				<requirement>
196
					<role>com.dianping.cat.statistic.ServerStatisticManager</role>
F
Frankie Wu 已提交
197
				</requirement>
F
Frankie Wu 已提交
198 199
				<requirement>
					<role>com.dianping.cat.storage.dump.MessageBucketManager</role>
F
Frankie Wu 已提交
200
					<role-hint>local</role-hint>
F
Frankie Wu 已提交
201
				</requirement>
S
sean.wang 已提交
202 203
			</requirements>
		</component>
Y
youyong 已提交
204
		<component>
205
			<role>com.dianping.cat.analysis.MessageAnalyzer</role>
206
			<role-hint>top</role-hint>
F
Frankie Wu 已提交
207
			<implementation>com.dianping.cat.consumer.core.TopAnalyzer</implementation>
Y
youyong 已提交
208 209 210 211 212 213
			<instantiation-strategy>per-lookup</instantiation-strategy>
			<requirements>
				<requirement>
					<role>com.dianping.cat.storage.BucketManager</role>
				</requirement>
				<requirement>
Y
yong.you 已提交
214
					<role>com.dianping.cat.core.dal.HourlyReportDao</role>
Y
youyong 已提交
215
				</requirement>
F
Frankie Wu 已提交
216 217
			</requirements>
		</component>
Y
yong.you 已提交
218 219 220 221 222
		<component>
			<role>com.dianping.cat.consumer.core.ProductLineConfigManager</role>
			<implementation>com.dianping.cat.consumer.core.ProductLineConfigManager</implementation>
			<requirements>
				<requirement>
Y
yong.you 已提交
223
					<role>com.dianping.cat.core.config.ConfigDao</role>
Y
yong.you 已提交
224 225 226
				</requirement>
			</requirements>
		</component>
227
		<component>
Y
youyong 已提交
228
			<role>org.unidal.initialization.Module</role>
229 230 231
			<role-hint>cat-consumer</role-hint>
			<implementation>com.dianping.cat.consumer.CatConsumerModule</implementation>
		</component>
Y
youyong 已提交
232 233
	</components>
</plexus>