Newspaper process monitor
The processmonitor is a deployable meant to run inside a Tomcat.
Files
Service war file:
httpsstatistics module consists of two parts
- An autonomous component that generates statistics output
- A simple webpage to display the generated statistics
Files
The distribution tar-ball::
http://sbforge.org/nexus/content/repositories/releases/dk/statsbiblioteket/newspaper/processnewspaper-monitor-frontendstatistics/1.43/processnewspaper-monitorstatistics-frontend1.3-1package.4tar.wargz
Configuration
Deployment descriptor
Code Block |
---|
<Context> <!-- Logback config loading --> <Parameter name="CONFIGDIR" value="path/to/dir/that/contains/logback.xml/" override="false"/> <!-- Application configuration --> <Parameter name="contextConfigLocation" value="file://${user.home}/path/to/ApplicationContext.xml" override="false"/> </Context> |
...
Code Block |
---|
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"> <context:component-scan base-package="dk.statsbiblioteket.newspaper.processmonitor.backend"/> <bean id="sboi_config" class="dk.statsbiblioteket.medieplatform.autonomous.processmonitor.datasources.SBOIDatasourceConfiguration" scope="singleton"> <property name="summaLocation" value="http://achernar:57608/domsgui/search/services/SearchWS?wsdl"/> <property name="domsLocation" value="http://achernar:7880/fedora"/> <property name="domsUser" value="<doms user>"/> <property name="domsPassword" value="<doms pass>"/> </bean> <bean id="sboi" class="dk.statsbiblioteket.medieplatform.autonomous.processmonitor.datasources.SBOIDatasource" scope="singleton"> <constructor-arg ref="sboi_config"/> </bean> <bean id="mpPakConfig" class="dk.statsbiblioteket.newspaper.mfpakintegration.configuration.MfPakConfiguration"> <property name="databaseUrl" value="jdbc:postgresql://achernar/mfpak-devel"/> <property name="databaseUser" value="<mfpak db user>"/> <property name="databasePassword" value="<mfpak db pass>"/> </bean> <bean id="mfPak" class="dk.statsbiblioteket.newspaper.mfpakintegration.MfPakDataSource"> <constructor-arg ref="mpPakConfig"/> </bean> <!--Reserved name for the data sources list--> <util:list id="dataSourcesList" list-class="java.util.ArrayList"> <ref bean="mfPak"/> <ref bean="sboi"/> </util:list> <bean id="statisticsService" class="dk.statsbiblioteket.newspaper.processmonitor.stats.StatisticsService"> <property name="statisticsBaseUrl" value="http://achernar:7820/statistics/statistics.html?batchid="/> </bean> </beans> |
Changelog
Change log can be seen on github:
...