StateAnalyzerTest.xml 1.26 KB
<plexus>
	<components>
		<component>
			<role>com.dianping.cat.report.ReportManager</role>
			<role-hint>state</role-hint>
			<implementation>com.dianping.cat.consumer.state.Configurator$MockStateReportManager</implementation>
			<requirements>
				<requirement>
					<role>com.dianping.cat.report.ReportDelegate</role>
					<role-hint>state</role-hint>
				</requirement>
			</requirements>
		</component>
		<component>
			<role>com.dianping.cat.report.ReportDelegate</role>
			<role-hint>state</role-hint>
			<implementation>com.dianping.cat.consumer.state.Configurator$ExtendedStateDelegate</implementation>
		</component>
		<component>
			<role>com.dianping.cat.analysis.MessageAnalyzer</role>
			<role-hint>state</role-hint>
			<implementation>com.dianping.cat.consumer.state.StateAnalyzer</implementation>
			<configuration>
				<m_ip>192.168.1.1</m_ip>
			</configuration>
			<requirements>
				<requirement>
					<role>com.dianping.cat.report.ReportManager</role>
					<role-hint>state</role-hint>
				</requirement>
				<requirement>
					<role>com.dianping.cat.config.server.ServerConfigManager</role>
				</requirement>
				<requirement>
					<role>com.dianping.cat.statistic.ServerStatisticManager</role>
				</requirement>
			</requirements>
		</component>
	</components>
</plexus>