[jboss-cvs] JBossAS SVN: r58159 - trunk/testsuite/src/resources/util

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Nov 6 14:33:06 EST 2006


Author: genman
Date: 2006-11-06 14:33:04 -0500 (Mon, 06 Nov 2006)
New Revision: 58159

Modified:
   trunk/testsuite/src/resources/util/test-default-scheduler-service.xml
Log:
JBAS-3126 - (Some reason SVN didn't commit this file)


Modified: trunk/testsuite/src/resources/util/test-default-scheduler-service.xml
===================================================================
--- trunk/testsuite/src/resources/util/test-default-scheduler-service.xml	2006-11-06 19:25:06 UTC (rev 58158)
+++ trunk/testsuite/src/resources/util/test-default-scheduler-service.xml	2006-11-06 19:33:04 UTC (rev 58159)
@@ -6,6 +6,9 @@
 
 <server>
 
+   <!-- Scheduler, infinite reps -->
+   <!-- Note: No good way to verify this works correctly --> 
+
    <mbean code="org.jboss.varia.scheduler.Scheduler"
       name="test:service=Scheduler">
       <attribute name="StartAtStartup">true</attribute>
@@ -13,21 +16,58 @@
       <attribute name="SchedulableArguments">Schedulabe Test,12345</attribute>
       <attribute name="SchedulableArgumentTypes">java.lang.String,int</attribute>
       <attribute name="InitialStartDate">0</attribute>
-      <attribute name="SchedulePeriod">10000</attribute>
+      <attribute name="SchedulePeriod">500</attribute>
       <attribute name="InitialRepetitions">-1</attribute>
    </mbean>
 
+   <!-- Scheduler, one rep -->
+
    <mbean code="org.jboss.varia.scheduler.example.SchedulableMBeanExample"
-      name="test:name=SchedulableMBeanExample">
+      name="test:name=SchedulableMBeanExample,instance=1">
    </mbean>
    <mbean code="org.jboss.varia.scheduler.Scheduler"
-      name="test:service=Scheduler,name=SchedulableMBeanExample">
+      name="test:service=Scheduler,name=SchedulableMBeanExample,instance=1">
       <attribute name="StartAtStartup">true</attribute>
-      <attribute name="SchedulableMBean">:name=SchedulableMBeanExample</attribute>
+      <attribute name="SchedulableMBean">test:name=SchedulableMBeanExample,instance=1</attribute>
       <attribute name="SchedulableMBeanMethod">hit( NOTIFICATION, DATE, REPETITIONS, SCHEDULER_NAME, java.lang.String )</attribute>
       <attribute name="InitialStartDate">NOW</attribute>
-      <attribute name="SchedulePeriod">10000</attribute>
-      <attribute name="InitialRepetitions">10</attribute>
+      <attribute name="SchedulePeriod">500</attribute>
+      <attribute name="InitialRepetitions">1</attribute>
    </mbean>
 
+   <!-- Scheduler, not started -->
+
+   <mbean code="org.jboss.varia.scheduler.example.SchedulableMBeanExample"
+      name="test:name=SchedulableMBeanExample,instance=2">
+   </mbean>
+   <mbean code="org.jboss.varia.scheduler.Scheduler"
+      name="test:service=Scheduler,name=SchedulableMBeanExample,instance=2">
+      <attribute name="StartAtStartup">false</attribute>
+      <attribute name="SchedulableMBean">test:name=SchedulableMBeanExample,instance=2</attribute>
+      <attribute name="SchedulableMBeanMethod">hit( NOTIFICATION, DATE, REPETITIONS, SCHEDULER_NAME, java.lang.String )</attribute>
+      <attribute name="InitialStartDate">NOW</attribute>
+      <attribute name="SchedulePeriod">500</attribute>
+      <attribute name="InitialRepetitions">-1</attribute>
+   </mbean>
+
+   <!-- ScheduleManager -->
+
+   <mbean code="org.jboss.varia.scheduler.example.SchedulableMBeanExample"
+      name="test:name=SchedulableMBeanExample,instance=3">
+   </mbean>
+
+   <mbean code="org.jboss.varia.scheduler.ScheduleManager"
+      name="test:service=Scheduler,name=ScheduleManager">
+   </mbean>
+
+   <mbean code="org.jboss.varia.scheduler.SingleScheduleProvider"
+      name="test:service=SingleScheduleProvider">
+      <attribute name="TargetMethod">hit( NOTIFICATION, DATE, REPETITIONS, SCHEDULER_NAME, java.lang.String )</attribute>
+	  <depends optional-attribute-name="ScheduleManagerName">test:service=Scheduler,name=ScheduleManager</depends>
+	  <depends optional-attribute-name="TargetName">test:name=SchedulableMBeanExample,instance=3</depends>
+      <attribute name="StartDate">NOW</attribute>
+      <attribute name="Repetitions">3</attribute>
+      <attribute name="Period">500</attribute>
+   </mbean>
+
 </server>




More information about the jboss-cvs-commits mailing list