META-INF.monitoring-spring.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of portal-impl Show documentation
Show all versions of portal-impl Show documentation
Contains implementation for the portal services.
<?xml version="1.0"?> <beans default-destroy-method="destroy" default-init-method="afterPropertiesSet" xmlns="http://www.springframework.org/schema/beans" xmlns:util="http://www.springframework.org/schema/util" 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-3.0.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd" > <bean id="chainableMethodAdviceInjector.serviceMonitorAdvice" class="com.liferay.portal.spring.aop.ChainableMethodAdviceInjector"> <property name="injectCondition" value="true" /> <property name="newChainableMethodAdvice" ref="serviceMonitorAdvice" /> <property name="parentChainableMethodAdvice" ref="serviceAdvice" /> </bean> <bean id="portalStatistics" class="com.liferay.portal.monitoring.statistics.portal.ServerStatistics"> <property name="companyLocalService" ref="com.liferay.portal.service.CompanyLocalService" /> </bean> <bean id="portletStatistics" class="com.liferay.portal.monitoring.statistics.portlet.ServerStatistics"> <property name="companyLocalService" ref="com.liferay.portal.service.CompanyLocalService" /> </bean> <bean id="serviceMonitorAdvice" class="com.liferay.portal.monitoring.statistics.service.ServiceMonitorAdvice" /> <bean id="serviceStatistics" class="com.liferay.portal.monitoring.statistics.service.ServerStatistics" /> <bean id="com.liferay.portal.monitoring.MonitoringProcessor" class="com.liferay.portal.kernel.monitoring.DefaultMonitoringProcessor"> <property name="dataSampleProcessors"> <map> <entry key="com.liferay.monitoring.Portal"> <list> <ref bean="portalStatistics" /> </list> </entry> <entry key="com.liferay.monitoring.Portlet"> <list> <ref bean="portletStatistics" /> </list> </entry> <entry key="com.liferay.monitoring.Service"> <list> <ref bean="serviceStatistics" /> </list> </entry> </map> </property> <property name="levels"> <map> <entry key="com.liferay.monitoring.Portal" value="HIGH" /> <entry key="com.liferay.monitoring.Portlet" value="HIGH" /> <entry key="com.liferay.monitoring.Service" value="HIGH" /> </map> </property> </bean> <!-- JMX --> <bean id="com.liferay.portal.monitoring.jmx.MonitoringProcessorManager" class="com.liferay.portal.monitoring.jmx.MonitoringProcessorManager"> <property name="monitoringProcessor" ref="com.liferay.portal.monitoring.MonitoringProcessor" /> </bean> <bean id="com.liferay.portal.servlet.filters.monitoring.jmx.MonitoringFilterManager" class="com.liferay.portal.servlet.filters.monitoring.jmx.MonitoringFilterManager" /> <bean id="com.liferay.portlet.MonitoringPortletManager" class="com.liferay.portlet.MonitoringPortletManager"> <property name="invokerPortletFactory" ref="com.liferay.portlet.InvokerPortletFactoryImpl" /> <property name="monitoringPortletFactoryImpl" ref="com.liferay.portlet.MonitoringPortletFactoryImpl" /> </bean> <bean id="com.liferay.portal.monitoring.jmx.ActionRequestPortletContainerManager" class="com.liferay.portal.monitoring.jmx.PortletManager"> <property name="portletSummaryStatistics"> <bean class="com.liferay.portal.monitoring.statistics.portlet.ActionRequestSummaryStatistics"> <property name="serverStatistics" ref="portletStatistics" /> </bean> </property> <property name="serverStatistics" ref="portletStatistics" /> </bean> <bean id="com.liferay.portal.monitoring.jmx.EventRequestPortletContainerManager" class="com.liferay.portal.monitoring.jmx.PortletManager"> <property name="portletSummaryStatistics"> <bean class="com.liferay.portal.monitoring.statistics.portlet.EventRequestSummaryStatistics"> <property name="serverStatistics" ref="portletStatistics" /> </bean> </property> <property name="serverStatistics" ref="portletStatistics" /> </bean> <bean id="com.liferay.portal.monitoring.jmx.PortalRequestManager" class="com.liferay.portal.monitoring.jmx.PortalManager"> <property name="summaryStatistics"> <bean class="com.liferay.portal.monitoring.statistics.portal.ServerSummaryStatistics"> <property name="serverStatistics" ref="portalStatistics" /> </bean> </property> <property name="serverStatistics" ref="portalStatistics" /> </bean> <bean id="com.liferay.portal.monitoring.jmx.RenderRequestPortletContainerManager" class="com.liferay.portal.monitoring.jmx.PortletManager"> <property name="portletSummaryStatistics"> <bean class="com.liferay.portal.monitoring.statistics.portlet.RenderRequestSummaryStatistics"> <property name="serverStatistics" ref="portletStatistics" /> </bean> </property> <property name="serverStatistics" ref="portletStatistics" /> </bean> <bean id="com.liferay.portal.monitoring.jmx.ResourceRequestPortletContainerManager" class="com.liferay.portal.monitoring.jmx.PortletManager"> <property name="portletSummaryStatistics"> <bean class="com.liferay.portal.monitoring.statistics.portlet.ResourceRequestSummaryStatistics"> <property name="serverStatistics" ref="portletStatistics" /> </bean> </property> <property name="serverStatistics" ref="portletStatistics" /> </bean> <bean id="com.liferay.portal.monitoring.jmx.ServiceManager" class="com.liferay.portal.monitoring.jmx.ServiceManager"> <property name="serverStatistics" ref="serviceStatistics" /> <property name="serviceMonitorAdvice" ref="serviceMonitorAdvice" /> </bean> <bean id="monitoringMBeanExporter" class="org.springframework.jmx.export.MBeanExporter"> <property name="beans"> <map> <entry key="com.liferay.portal.monitoring:classification=instrumentation,name=MonitoringFilterManager" value-ref="com.liferay.portal.servlet.filters.monitoring.jmx.MonitoringFilterManager" /> <entry key="com.liferay.portal.monitoring:classification=instrumentation,name=MonitoringPortletManager" value-ref="com.liferay.portlet.MonitoringPortletManager" /> <entry key="com.liferay.portal.monitoring:classification=monitoring_service,name=MonitoringServiceManager" value-ref="com.liferay.portal.monitoring.jmx.MonitoringProcessorManager" /> <entry key="com.liferay.portal.monitoring:classification=portal_statistic,name=PortalRequestManager" value-ref="com.liferay.portal.monitoring.jmx.PortalRequestManager" /> <entry key="com.liferay.portal.monitoring:classification=portlet_statistic,name=ActionRequestPortletContainerManager" value-ref="com.liferay.portal.monitoring.jmx.ActionRequestPortletContainerManager" /> <entry key="com.liferay.portal.monitoring:classification=portlet_statistic,name=EventRequestPortletContainerManager" value-ref="com.liferay.portal.monitoring.jmx.EventRequestPortletContainerManager" /> <entry key="com.liferay.portal.monitoring:classification=portlet_statistic,name=RenderRequestPortletContainerManager" value-ref="com.liferay.portal.monitoring.jmx.RenderRequestPortletContainerManager" /> <entry key="com.liferay.portal.monitoring:classification=portlet_statistic,name=ResourceRequestPortletContainerManager" value-ref="com.liferay.portal.monitoring.jmx.ResourceRequestPortletContainerManager" /> <entry key="com.liferay.portal.monitoring:classification=instrumentation,name=ServiceManager" value-ref="com.liferay.portal.monitoring.jmx.ServiceManager" /> </map> </property> <property name="registrationBehavior"> <util:constant static-field="org.springframework.jmx.support.MBeanRegistrationSupport.REGISTRATION_IGNORE_EXISTING" /> </property> <property name="server" ref="mBeanServer" /> </bean> <!-- Messaging --> <bean id="destination.monitoring" class="com.liferay.portal.kernel.messaging.ParallelDestination"> <property name="name" value="liferay/monitoring" /> </bean> <bean id="messageListener.monitoring" class="com.liferay.portal.monitoring.messaging.MonitoringMessageListener"> <property name="dataSampleProcessor" ref="com.liferay.portal.monitoring.MonitoringProcessor" /> </bean> <bean id="messagingConfigurator.monitoring" class="com.liferay.portal.kernel.messaging.config.DefaultMessagingConfigurator"> <property name="destinations"> <list> <ref bean="destination.monitoring" /> </list> </property> <property name="messageBus"> <ref bean="com.liferay.portal.kernel.messaging.MessageBus" /> </property> <property name="messageListeners"> <map key-type="java.lang.String" value-type="java.util.List"> <entry key="liferay/monitoring"> <list value-type="com.liferay.portal.kernel.messaging.MessageListener"> <ref bean="messageListener.monitoring" /> </list> </entry> </map> </property> </bean> <!-- Portlet container --> <bean id="messageSender.monitoring" class="com.liferay.portal.kernel.messaging.sender.DefaultSingleDestinationMessageSender"> <property name="destinationName" value="liferay/monitoring" /> <property name="messageSender" ref="com.liferay.portal.kernel.messaging.sender.MessageSender" /> </bean> <bean id="com.liferay.portlet.MonitoringPortletFactoryImpl" class="com.liferay.portlet.MonitoringPortletFactoryImpl" /> </beans>