<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">

	<bean id="defaultMetricExternalFilePath" class="java.lang.String">
		<constructor-arg value="/disk1/config/metrics/properties/metric.ini" />
	</bean>

	<bean id="defaultMetricExternalCollectorFilePath" class="java.lang.String">
		<constructor-arg value="/disk1/config/metrics/properties/metricDumper.ini" />
	</bean>

	<bean id="sectionConfigBeanForMetrices" class="com.hcl.cdp.metrics.config.SectionConfigIni">
		<constructor-arg index="0"
			value="#{ getBeanFactory().containsBean('metricExternalFilePath') ? getBeanFactory().getBean('metricExternalFilePath') : defaultMetricExternalFilePath }"></constructor-arg>
		<constructor-arg index="1" value="metric.ini"></constructor-arg>
	</bean>
	<bean id="sectionConfigBeanForMetricesDumper" class="com.hcl.cdp.metrics.config.SectionConfigIni">
		<constructor-arg index="0"
			value="#{ getBeanFactory().containsBean('metricExternalCollectorFilePath') ? getBeanFactory().getBean('metricExternalCollectorFilePath') : defaultMetricExternalCollectorFilePath }"></constructor-arg>
		<constructor-arg index="1" value="metricDumper.ini"></constructor-arg>
	</bean>
	<bean id="monitoringStatistics" class="com.hcl.cdp.metrics.MonitoringStatistics">
		<constructor-arg index="0" ref="sectionConfigBeanForMetrices"></constructor-arg>
		<constructor-arg index="1"
			ref="sectionConfigBeanForMetricesDumper"></constructor-arg>
		<constructor-arg index="2" value="5000"></constructor-arg>
		<constructor-arg index="3" value="5000"></constructor-arg>
	</bean>

</beans>