[jboss-cvs] JBossAS SVN: r86684 - in branches/Branch_5_x: cluster/src/etc and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Apr 2 13:52:31 EDT 2009


Author: bstansberry at jboss.com
Date: 2009-04-02 13:52:31 -0400 (Thu, 02 Apr 2009)
New Revision: 86684

Added:
   branches/Branch_5_x/cluster/src/etc/timestamps-jboss-beans.xml
   branches/Branch_5_x/cluster/src/main/org/jboss/ha/timestamp/
Modified:
   branches/Branch_5_x/build/build-distr.xml
Log:
[JBAS-5552] Port timestamps service from trunk

Modified: branches/Branch_5_x/build/build-distr.xml
===================================================================
--- branches/Branch_5_x/build/build-distr.xml	2009-04-02 17:37:53 UTC (rev 86683)
+++ branches/Branch_5_x/build/build-distr.xml	2009-04-02 17:52:31 UTC (rev 86684)
@@ -971,6 +971,7 @@
         <include name="deploy-hasingleton-jboss-beans.xml"/>
         <include name="hajndi-jboss-beans.xml"/>
         <include name="ha-legacy-jboss-beans.xml"/>
+        <include name="timestamps-jboss-beans.xml"/>
       </fileset>
     </copy>
     <mkdir dir="${install.server}/all/deploy/cluster/jgroups-channelfactory.sar"/>

Copied: branches/Branch_5_x/cluster/src/etc/timestamps-jboss-beans.xml (from rev 86681, trunk/cluster/src/etc/timestamps-jboss-beans.xml)
===================================================================
--- branches/Branch_5_x/cluster/src/etc/timestamps-jboss-beans.xml	                        (rev 0)
+++ branches/Branch_5_x/cluster/src/etc/timestamps-jboss-beans.xml	2009-04-02 17:52:31 UTC (rev 86684)
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+   
+   <!--
+     Service that estimates and tracks discrepancies in system clocks 
+     for current and past members of the cluster 
+    -->
+   <bean name="TimestampDiscrepancyService"
+         class="org.jboss.ha.timestamp.TimestampDiscrepancyService">    
+
+      <!-- The partition used for group RPCs to track timestamps -->
+      <property name="partition"><inject bean="HAPartition"/></property>
+      
+      <!-- How often to check the timestamps on other nodes -->
+      <property name="minStatusCheckFrequency">20000</property>
+      
+   </bean>
+   
+   <!-- Logs WARN or ERROR if TimestampDiscrepancyService detects
+        an overly long system clock difference between this and another node.-->
+   <bean name="TimestampDiscrepancyWarnService"
+         class="org.jboss.ha.timestamp.TimestampDiscrepancyValidationService">    
+
+      <!-- The source of timestamp discrepancy information -->
+      <property name="timestampDiscrepancyService"><inject bean="TimestampDiscrepancyService"/></property>
+      
+      <!-- Maximum discrepancy (in ms) which if exceeded triggers logging -->
+      <property name="maxDiscrepancy">120000</property>
+      <!--  Should any logging be at ERROR rather than WARN? -->
+      <property name="useErrorLogging">false</property>
+      
+   </bean>
+
+</deployment>

Copied: branches/Branch_5_x/cluster/src/main/org/jboss/ha/timestamp (from rev 86678, trunk/cluster/src/main/org/jboss/ha/timestamp)




More information about the jboss-cvs-commits mailing list