[jboss-svn-commits] JBL Code SVN: r12362 - in labs/jbosslabs/trunk/stats-server: kosmos and 2 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Jun 6 14:56:29 EDT 2007


Author: wrzep
Date: 2007-06-06 14:56:29 -0400 (Wed, 06 Jun 2007)
New Revision: 12362

Added:
   labs/jbosslabs/trunk/stats-server/build.properties.sample
   labs/jbosslabs/trunk/stats-server/kosmos/conf/server/classes/ehcache.xml.sample
   labs/jbosslabs/trunk/stats-server/kosmos/conf/server/kosmos-services-servlet.xml.sample
   labs/jbosslabs/trunk/stats-server/kosmos/project.xml
   labs/jbosslabs/trunk/stats-server/maven.xml
   labs/jbosslabs/trunk/stats-server/project.xml
Removed:
   labs/jbosslabs/trunk/stats-server/kosmos/build.properties.sample
   labs/jbosslabs/trunk/stats-server/kosmos/conf/server/classes/ehcache.xml
   labs/jbosslabs/trunk/stats-server/kosmos/conf/server/kosmos-services-servlet.xml
   labs/jbosslabs/trunk/stats-server/kosmos/conf/server/web.xml
Modified:
   labs/jbosslabs/trunk/stats-server/
   labs/jbosslabs/trunk/stats-server/kosmos/conf/server/
   labs/jbosslabs/trunk/stats-server/kosmos/conf/server/classes/
   labs/jbosslabs/trunk/stats-server/kosmos/maven.xml
Log:
JBLAB-868, config files



Property changes on: labs/jbosslabs/trunk/stats-server
___________________________________________________________________
Name: svn:ignore
   + build.properties



Copied: labs/jbosslabs/trunk/stats-server/build.properties.sample (from rev 12317, labs/jbosslabs/trunk/stats-server/kosmos/build.properties.sample)
===================================================================
--- labs/jbosslabs/trunk/stats-server/build.properties.sample	                        (rev 0)
+++ labs/jbosslabs/trunk/stats-server/build.properties.sample	2007-06-06 18:56:29 UTC (rev 12362)
@@ -0,0 +1,6 @@
+# Path to JBoss AS
+local.server.dir=
+
+# Path to where Kosmos is to be deployed - you shouldn't
+# have to change that.
+local.deploy.dir=${local.server.dir}/server/default/deploy

Deleted: labs/jbosslabs/trunk/stats-server/kosmos/build.properties.sample
===================================================================
--- labs/jbosslabs/trunk/stats-server/kosmos/build.properties.sample	2007-06-06 16:55:52 UTC (rev 12361)
+++ labs/jbosslabs/trunk/stats-server/kosmos/build.properties.sample	2007-06-06 18:56:29 UTC (rev 12362)
@@ -1,6 +0,0 @@
-# Path to JBoss AS
-local.server.dir=
-
-# Path to where Kosmos is to be deployed - you shouldn't
-# have to change that.
-local.deploy.dir=${local.server.dir}/server/default/deploy


Property changes on: labs/jbosslabs/trunk/stats-server/kosmos/conf/server
___________________________________________________________________
Name: svn:ignore
   + kosmos-services-servlet.xml



Property changes on: labs/jbosslabs/trunk/stats-server/kosmos/conf/server/classes
___________________________________________________________________
Name: svn:ignore
   + ehcache.xml


Deleted: labs/jbosslabs/trunk/stats-server/kosmos/conf/server/classes/ehcache.xml
===================================================================
--- labs/jbosslabs/trunk/stats-server/kosmos/conf/server/classes/ehcache.xml	2007-06-06 16:55:52 UTC (rev 12361)
+++ labs/jbosslabs/trunk/stats-server/kosmos/conf/server/classes/ehcache.xml	2007-06-06 18:56:29 UTC (rev 12362)
@@ -1,10 +0,0 @@
-<ehcache>
-  <diskStore path="java.io.tmpdir"/>
-
-  <!-- durations need to set longer than the "repeatInterval" property of the "serviceResultUpdateTrigger" bean -->
-  <defaultCache name="hu.midori.kosmos.server.defaultCache" maxElementsInMemory="1024" eternal="false"
-	  timeToIdleSeconds="180000" timeToLiveSeconds="18000" overflowToDisk="true" diskPersistent="true"/>
-
-  <cache name="hu.midori.kosmos.server.cache" maxElementsInMemory="1024" eternal="false"
-	  timeToIdleSeconds="180000" timeToLiveSeconds="180000" overflowToDisk="true" diskPersistent="true"/>
-</ehcache>

Copied: labs/jbosslabs/trunk/stats-server/kosmos/conf/server/classes/ehcache.xml.sample (from rev 12317, labs/jbosslabs/trunk/stats-server/kosmos/conf/server/classes/ehcache.xml)
===================================================================
--- labs/jbosslabs/trunk/stats-server/kosmos/conf/server/classes/ehcache.xml.sample	                        (rev 0)
+++ labs/jbosslabs/trunk/stats-server/kosmos/conf/server/classes/ehcache.xml.sample	2007-06-06 18:56:29 UTC (rev 12362)
@@ -0,0 +1,10 @@
+<ehcache>
+  <diskStore path="java.io.tmpdir"/>
+
+  <!-- durations need to set longer than the "repeatInterval" property of the "serviceResultUpdateTrigger" bean -->
+  <defaultCache name="hu.midori.kosmos.server.defaultCache" maxElementsInMemory="1024" eternal="false"
+	  timeToIdleSeconds="180000" timeToLiveSeconds="18000" overflowToDisk="true" diskPersistent="true"/>
+
+  <cache name="hu.midori.kosmos.server.cache" maxElementsInMemory="1024" eternal="false"
+	  timeToIdleSeconds="180000" timeToLiveSeconds="180000" overflowToDisk="true" diskPersistent="true"/>
+</ehcache>

Deleted: labs/jbosslabs/trunk/stats-server/kosmos/conf/server/kosmos-services-servlet.xml
===================================================================
--- labs/jbosslabs/trunk/stats-server/kosmos/conf/server/kosmos-services-servlet.xml	2007-06-06 16:55:52 UTC (rev 12361)
+++ labs/jbosslabs/trunk/stats-server/kosmos/conf/server/kosmos-services-servlet.xml	2007-06-06 18:56:29 UTC (rev 12362)
@@ -1,108 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
-
-<beans>
-
-  <!-- JIRA service -->
-  <bean id="jiraService" class="hu.midori.kosmos.server.jira.JiraWebCrawlingServiceImpl">
-	<property name="store" ref="webdavStaticContentStore"/>
-  </bean>
-
-  <bean id="jiraServiceProxy" class="org.springframework.aop.framework.ProxyFactoryBean">
-	<property name="targetName" value="jiraService"/>
-	<property name="interceptorNames">
-	  <list>
-		<value>serviceCachePointCutAdvisor</value>
-	  </list>
-	</property>
-  </bean>
-
-  <bean name="/jira-service" class="org.springframework.remoting.caucho.HessianServiceExporter">
-	<property name="service" ref="jiraServiceProxy"/>
-	<property name="serviceInterface" value="hu.midori.kosmos.protocol.JiraService"/>
-  </bean>
-
-  <!-- SVN service -->
-  <bean id="svnService" class="hu.midori.kosmos.server.svn.SvnServiceImpl">
-	<property name="store" ref="webdavStaticContentStore"/>
-  </bean>
-
-  <bean id="svnServiceProxy" class="org.springframework.aop.framework.ProxyFactoryBean">
-	<property name="targetName" value="svnService"/>
-	<property name="interceptorNames">
-	  <list>
-		<value>serviceCachePointCutAdvisor</value>
-	  </list>
-	</property>
-  </bean>
-
-  <bean name="/svn-service" class="org.springframework.remoting.caucho.HessianServiceExporter">
-	<property name="service" ref="svnServiceProxy"/>
-	<property name="serviceInterface" value="hu.midori.kosmos.protocol.SvnService"/>
-  </bean>
-
-  <!-- Service result POJO cache -->
-  <bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
-	<property name="configLocation" value="classpath:ehcache.xml"/>
-  </bean>
-
-  <bean id="serviceResultCache" class="org.springframework.cache.ehcache.EhCacheFactoryBean">
-	<property name="cacheManager" ref="cacheManager"/>
-	<property name="cacheName" value="hu.midori.kosmos.server.cache"/>
-  </bean>
-
-  <!-- Service result cache interceptor -->
-  <bean id="serviceCacheInterceptor" class="hu.midori.kosmos.server.MethodResultCacheInterceptor">
-	<property name="cache" ref="serviceResultCache" />
-  </bean>
-
-  <bean id="serviceCachePointCutAdvisor" class="org.springframework.aop.support.RegexpMethodPointcutAdvisor">
-	<property name="advice">
-	  <ref local="serviceCacheInterceptor"/>
-	</property>
-	<property name="patterns">
-	  <list>
-		<value>hu.midori.kosmos.protocol.JiraService.getProjects</value>
-		<value>hu.midori.kosmos.protocol.SvnService.getRepositories</value>
-	  </list>
-	</property>
-  </bean>
-
-  <!-- Service result update scheduler -->
-  <bean name="serviceResultUpdaterJob" class="org.springframework.scheduling.quartz.JobDetailBean">
-	<property name="jobClass" value="hu.midori.kosmos.server.ServiceResultUpdaterJob"/>
-	<property name="jobDataAsMap">
-	  <map>
-		<entry key="cache" value-ref="serviceResultCache"/>
-	  </map>
-	</property>
-  </bean>
-
-  <bean id="serviceResultUpdateTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
-	<property name="jobDetail" ref="serviceResultUpdaterJob"/>
-	<property name="cronExpression" value="0 0 0 * * ?"/> <!-- update at midnight -->
-  </bean>
-
-  <bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
-	<property name="triggers">
-	  <list>
-		<ref bean="serviceResultUpdateTrigger"/>
-	  </list>
-	</property>
-  </bean>
-
-  <!-- WebDAV static content store -->
-  <bean id="webdavStaticContentStore" class="hu.midori.kosmos.server.store.WebdavStaticContentStore">
-	<property name="webdavUrl" value="http://localhost:8180/slide/files"/><!-- Both HTTP and HTTPS protocol can be used here. -->
-	<property name="webdavUser" value=""/>
-	<property name="webdavPassword" value=""/>
-	<!--
-	  This URL will be used as base URL for the generated images.
-	  If you don't specify anything here, the value of "webdavUrl"
-	  will be used. Uncomment this, if you want to override that.
-
-	  <property name="clientUrl" value="http://myserver/my-webdav/kosmos-images"/>
-	-->
-  </bean>
-
-</beans>

Copied: labs/jbosslabs/trunk/stats-server/kosmos/conf/server/kosmos-services-servlet.xml.sample (from rev 12354, labs/jbosslabs/trunk/stats-server/kosmos/conf/server/kosmos-services-servlet.xml)
===================================================================
--- labs/jbosslabs/trunk/stats-server/kosmos/conf/server/kosmos-services-servlet.xml.sample	                        (rev 0)
+++ labs/jbosslabs/trunk/stats-server/kosmos/conf/server/kosmos-services-servlet.xml.sample	2007-06-06 18:56:29 UTC (rev 12362)
@@ -0,0 +1,108 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
+
+<beans>
+
+  <!-- JIRA service -->
+  <bean id="jiraService" class="hu.midori.kosmos.server.jira.JiraWebCrawlingServiceImpl">
+	<property name="store" ref="webdavStaticContentStore"/>
+  </bean>
+
+  <bean id="jiraServiceProxy" class="org.springframework.aop.framework.ProxyFactoryBean">
+	<property name="targetName" value="jiraService"/>
+	<property name="interceptorNames">
+	  <list>
+		<value>serviceCachePointCutAdvisor</value>
+	  </list>
+	</property>
+  </bean>
+
+  <bean name="/jira-service" class="org.springframework.remoting.caucho.HessianServiceExporter">
+	<property name="service" ref="jiraServiceProxy"/>
+	<property name="serviceInterface" value="hu.midori.kosmos.protocol.JiraService"/>
+  </bean>
+
+  <!-- SVN service -->
+  <bean id="svnService" class="hu.midori.kosmos.server.svn.SvnServiceImpl">
+	<property name="store" ref="webdavStaticContentStore"/>
+  </bean>
+
+  <bean id="svnServiceProxy" class="org.springframework.aop.framework.ProxyFactoryBean">
+	<property name="targetName" value="svnService"/>
+	<property name="interceptorNames">
+	  <list>
+		<value>serviceCachePointCutAdvisor</value>
+	  </list>
+	</property>
+  </bean>
+
+  <bean name="/svn-service" class="org.springframework.remoting.caucho.HessianServiceExporter">
+	<property name="service" ref="svnServiceProxy"/>
+	<property name="serviceInterface" value="hu.midori.kosmos.protocol.SvnService"/>
+  </bean>
+
+ <!-- Service result POJO cache -->
+  <bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
+	<property name="configLocation" value="classpath:ehcache.xml"/>
+  </bean>
+
+  <bean id="serviceResultCache" class="org.springframework.cache.ehcache.EhCacheFactoryBean">
+	<property name="cacheManager" ref="cacheManager"/>
+	<property name="cacheName" value="hu.midori.kosmos.server.cache"/>
+  </bean>
+
+  <!-- Service result cache interceptor -->
+  <bean id="serviceCacheInterceptor" class="hu.midori.kosmos.server.MethodResultCacheInterceptor">
+	<property name="cache" ref="serviceResultCache" />
+  </bean>
+
+  <bean id="serviceCachePointCutAdvisor" class="org.springframework.aop.support.RegexpMethodPointcutAdvisor">
+	<property name="advice">
+	  <ref local="serviceCacheInterceptor"/>
+	</property>
+	<property name="patterns">
+	  <list>
+		<value>hu.midori.kosmos.protocol.JiraService.getProjects</value>
+		<value>hu.midori.kosmos.protocol.SvnService.getRepositories</value>
+	  </list>
+	</property>
+  </bean>
+
+  <!-- Service result update scheduler -->
+  <bean name="serviceResultUpdaterJob" class="org.springframework.scheduling.quartz.JobDetailBean">
+	<property name="jobClass" value="hu.midori.kosmos.server.ServiceResultUpdaterJob"/>
+	<property name="jobDataAsMap">
+	  <map>
+		<entry key="cache" value-ref="serviceResultCache"/>
+	  </map>
+	</property>
+  </bean>
+
+  <bean id="serviceResultUpdateTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
+	<property name="jobDetail" ref="serviceResultUpdaterJob"/>
+	<property name="cronExpression" value="0 0 0 * * ?"/> <!-- update at midnight -->
+  </bean>
+
+  <bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
+	<property name="triggers">
+	  <list>
+		<ref bean="serviceResultUpdateTrigger"/>
+	  </list>
+	</property>
+  </bean>
+
+  <!-- WebDAV static content store -->
+  <bean id="webdavStaticContentStore" class="hu.midori.kosmos.server.store.WebdavStaticContentStore">
+	<property name="webdavUrl" value="http://localhost:8080/slide/files"/><!-- Both HTTP and HTTPS protocol can be used here. -->
+	<property name="webdavUser" value=""/>
+	<property name="webdavPassword" value=""/>
+	<!--
+	  This URL will be used as base URL for the generated images.
+	  If you don't specify anything here, the value of "webdavUrl"
+	  will be used. Uncomment this, if you want to override that.
+
+	  <property name="clientUrl" value="http://myserver/my-webdav/kosmos-images"/>
+	-->
+  </bean>
+
+</beans>

Deleted: labs/jbosslabs/trunk/stats-server/kosmos/conf/server/web.xml
===================================================================
--- labs/jbosslabs/trunk/stats-server/kosmos/conf/server/web.xml	2007-06-06 16:55:52 UTC (rev 12361)
+++ labs/jbosslabs/trunk/stats-server/kosmos/conf/server/web.xml	2007-06-06 18:56:29 UTC (rev 12362)
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-
-<!DOCTYPE web-app
-    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
-    "http://java.sun.com/dtd/web-app_2_3.dtd">
-    
-<web-app>  
-  <display-name>Kosmos services servlet</display-name>
-  <description>Server component of Kosmos</description>  
-  <servlet>
-    <servlet-name>kosmos-services</servlet-name>
-    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
-    <load-on-startup>1</load-on-startup>
-  </servlet>
-  <servlet-mapping>
-    <servlet-name>kosmos-services</servlet-name>
-    <url-pattern>/kosmos-services/*</url-pattern>
-  </servlet-mapping>
-</web-app>

Modified: labs/jbosslabs/trunk/stats-server/kosmos/maven.xml
===================================================================
--- labs/jbosslabs/trunk/stats-server/kosmos/maven.xml	2007-06-06 16:55:52 UTC (rev 12361)
+++ labs/jbosslabs/trunk/stats-server/kosmos/maven.xml	2007-06-06 18:56:29 UTC (rev 12362)
@@ -24,7 +24,7 @@
 		</ant:copy>
 
 		<!-- Delete log4j jars to avoid classloader issues -->
-		<!-- <ant:delete file="target/kosmos-server.war/WEB-INF/lib/log4j-1.2.8.jar" />  -->
+		<ant:delete file="target/kosmos-server.war/WEB-INF/lib/log4j-1.2.8.jar" /> 
 		
 		<!-- Deploying new packages -->
 		<ant:copy todir="${local.deploy.dir}" overwrite="true">
@@ -35,5 +35,5 @@
 		
 		<ant:copy todir="${local.deploy.dir}" file="to-copy/slide.war" overwrite="true"/>
 	</goal>
-    
+	
 </project>

Added: labs/jbosslabs/trunk/stats-server/kosmos/project.xml
===================================================================
--- labs/jbosslabs/trunk/stats-server/kosmos/project.xml	                        (rev 0)
+++ labs/jbosslabs/trunk/stats-server/kosmos/project.xml	2007-06-06 18:56:29 UTC (rev 12362)
@@ -0,0 +1,12 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+<!-- 
+  JBoss, the OpenSource J2EE webOS
+  Distributable under LGPL license.
+  See terms of license at gnu.org. 
+ -->
+<project>
+	<id>kosmos-server</id>
+    <name>Kosmos Server</name>
+    <extend>../project.xml</extend>
+    <properties>kosmos.properties</properties>
+</project>

Added: labs/jbosslabs/trunk/stats-server/maven.xml
===================================================================
--- labs/jbosslabs/trunk/stats-server/maven.xml	                        (rev 0)
+++ labs/jbosslabs/trunk/stats-server/maven.xml	2007-06-06 18:56:29 UTC (rev 12362)
@@ -0,0 +1,56 @@
+<!-- 
+  JBoss, the OpenSource J2EE webOS
+  Distributable under LGPL license.
+  See terms of license at gnu.org. 
+ -->
+<project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:u="jelly:util" xmlns:maven="jelly:maven">
+	<!-- Default war-project goals -->
+
+	<goal name="all">
+		<j:set var="goal" value="all" />
+		<attainGoal name="multiproject:goal" />
+	</goal>
+
+	<goal name="deploy">
+		<j:set var="goal" value="deploy" />
+		<attainGoal name="multiproject:goal" />
+	</goal>
+	
+	<goal name="clean">
+		<j:set var="goal" value="clean" />
+		<attainGoal name="multiproject:goal" />
+	</goal>
+	
+	<goal name="install">
+		<echo>
+Installing JBoss AS 4.2.0.GA to the specified directory (${local.deploy.dir}).
+		</echo>
+		<ant:copy todir="${local.server.dir}" overwrite="true">
+			<ant:fileset dir="binaries/as/to-copy" />
+		</ant:copy>
+		<echo>
+JBoss AS 4.2.0.GA (without EJB3) is now installed.
+
+Now you can run the build with "maven all" and later start the server with:
+${local.server.dir}/bin/run.sh.
+		</echo>
+	</goal>
+	
+	<goal name="help">
+		<echo>
+Before installing and deploying JBoss Labs Statistics Server please create and/ or modify the following files:
+(there are template .sample files):
+1. build.properties
+2. kosmos/conf/server/classes/ehcache.xml
+3. kosmos/conf/server/kosmos-services-servlet.xml (WebDAV and Quartz configuration. Important: Make sure 'webdavUrl' property is set properly.)
+		
+Available goals:
+- help - print this info
+- install - install JBoss AS into a directory specified in build.properties.
+- clean - clean all modules (so far, there is only one module - kosmos)
+- deploy - deploy all modules
+- all - clean+deploy.
+		</echo>
+	</goal>
+	
+</project>

Added: labs/jbosslabs/trunk/stats-server/project.xml
===================================================================
--- labs/jbosslabs/trunk/stats-server/project.xml	                        (rev 0)
+++ labs/jbosslabs/trunk/stats-server/project.xml	2007-06-06 18:56:29 UTC (rev 12362)
@@ -0,0 +1,10 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+<!-- 
+  JBoss, the OpenSource J2EE webOS
+  Distributable under LGPL license.
+  See terms of license at gnu.org. 
+ -->
+<project>
+	<id>labs-stats-server</id>
+    <name>JBoss Labs Statistics Server</name>
+</project>




More information about the jboss-svn-commits mailing list