thorhauer    2002/06/07 04:36:15

  Added:       src/test-conf Scheduler.properties Scheduler.xml
                        Scheduler.xsd
  Log:
  adding configurations for unit testing
  
  Revision  Changes    Path
  1.1                  jakarta-turbine-stratum/src/test-conf/Scheduler.properties
  
  Index: Scheduler.properties
  ===================================================================
  # Properties file for use by Scheduler
  #
  # property points to .xml file that is used to
  # initiate the Quartz Scheduler
  scheduler.config.location = 
/projects/jakarta-turbine-stratum/src/test-conf/Scheduler.xml
  
  
  
  
  1.1                  jakarta-turbine-stratum/src/test-conf/Scheduler.xml
  
  Index: Scheduler.xml
  ===================================================================
  <schedulerConfig>
    <!--
     This is the xml representation of the properties needed to
     configure the Quartz scheduler component.  For more
     on the Quartz Scheduler go to:
        http://www.part.net/quartz_documentation.html
    -->
    <instanceName>scheduler1</instanceName>
    <loggerName>schedLogger</loggerName>
  
    <threadPoolConfig>
      <className>org.quartz.simpl.SimpleThreadPool</className>
      <threadCount>15</threadCount>
      <threadPriority>4</threadPriority>
      <loggerName>schedLogger</loggerName>
    </threadPoolConfig>
  
    <jobStoreConfig>
      <className>org.quartz.simpl.RAMJobStore</className>
      <loggerName>schedLogger</loggerName>
    </jobStoreConfig>
  
    <loggerConfigs>
      <loggerConfig>
        <name>schedLogger</name>
        <className>org.quartz.simpl.SimpleLogger</className>
        <priority>3</priority>
        <outputFile>xmltest.txt</outputFile>
        <!--category>testCat</category-->
      </loggerConfig>
    </loggerConfigs>
    
    <jobConfigs>
      <jobConfig>
        <name>job1</name>
        <group>group1</group>
        <className>org.apache.stratum.scheduler.examplejobs.JobOne</className>
      </jobConfig>
      <jobConfig>
        <name>job2</name>
        <group>group2</group>
        <className>org.apache.stratum.scheduler.examplejobs.JobTwo</className>
      </jobConfig>
    </jobConfigs>
    
    <triggerConfigs>
      <!--
        This trigger is a Quartz trigger that uses a "Cron-Expression" which
          is a string comprised of 6 fields separated by white space. The 6 
          fields are as follows:
          
          Field Name   Allowed Values   Allowed Special Characters
          seconds      0-59             , - * /
          minutes      0-59             , - * /
          hours        0-23             , - * /
          dayOfMonth   0-31             , - * ? / L C
          month        1-12 or JAN-DEC  , - * /
          dayOfWeek    1-7 or SUN-SAT   , - * ? / L C
      -->
      <triggerConfig>
        <type>cron</type>
        <name>trigger2</name>
        <group>group2</group>
        <jobName>job2</jobName>
        <seconds>0/1</seconds>
        <minutes>*</minutes>
        <hours>*</hours>
        <dayOfMonth>*</dayOfMonth>
        <month>*</month>
        <dayOfWeek>?</dayOfWeek>
       </triggerConfig>
      <triggerConfig>
        <type>cron</type>
        <name>trigger1</name>
        <group>group1</group>
        <jobName>job1</jobName>
        <seconds>0/2</seconds>
        <minutes>*</minutes>
        <hours>*</hours>
        <dayOfMonth>*</dayOfMonth>
        <month>*</month>
        <dayOfWeek>?</dayOfWeek>
      </triggerConfig>
  
    </triggerConfigs>
  
  </schedulerConfig>
  
  
  1.1                  jakarta-turbine-stratum/src/test-conf/Scheduler.xsd
  
  Index: Scheduler.xsd
  ===================================================================
  <?xml version = "1.0" encoding = "UTF-8"?>
  <!--Generated by XML Authority. Conforms to w3c http://www.w3.org/2001/XMLSchema-->
  <xsd:schema xmlns:xsd = "http://www.w3.org/2001/XMLSchema";>
        <xsd:element name = "schedulerConfig">
                <xsd:complexType>
                        <xsd:sequence>
                                <xsd:element ref = "instanceName"/>
                                <xsd:element ref = "loggerName"/>
                                <xsd:element ref = "threadPool"/>
                                <xsd:element ref = "jobStore"/>
                                <xsd:element ref = "jobConfigs"/>
                                <xsd:element ref = "triggers"/>
                        </xsd:sequence>
                </xsd:complexType>
        </xsd:element>
        <xsd:element name = "instanceName" type = "xsd:string"/>
        <xsd:element name = "loggerName">
                <xsd:complexType/>
        </xsd:element>
        <xsd:element name = "threadPool">
                <xsd:complexType>
                        <xsd:sequence>
                                <xsd:element ref = "className"/>
                                <xsd:element ref = "threadCount"/>
                                <xsd:element ref = "threadPriority"/>
                                <xsd:element ref = "loggerName"/>
                        </xsd:sequence>
                </xsd:complexType>
        </xsd:element>
        <xsd:element name = "className" type = "xsd:string"/>
        <xsd:element name = "threadCount" type = "xsd:string"/>
        <xsd:element name = "threadPriority" type = "xsd:string"/>
        <xsd:element name = "jobStore">
                <xsd:complexType>
                        <xsd:sequence>
                                <xsd:element ref = "className"/>
                                <xsd:element ref = "loggerName"/>
                        </xsd:sequence>
                </xsd:complexType>
        </xsd:element>
        <xsd:element name = "loggers">
                <xsd:complexType>
                        <xsd:sequence>
                                <xsd:element ref = "logger" maxOccurs = "unbounded"/>
                        </xsd:sequence>
                </xsd:complexType>
        </xsd:element>
        <xsd:element name = "logger">
                <xsd:complexType>
                        <xsd:sequence>
                                <xsd:element ref = "name"/>
                                <xsd:element ref = "className"/>
                                <xsd:element ref = "priority"/>
                                <xsd:element ref = "outputFile"/>
                                <xsd:element ref = "category"/>
                        </xsd:sequence>
                </xsd:complexType>
        </xsd:element>
        <xsd:element name = "name">
                <xsd:complexType/>
        </xsd:element>
        <xsd:element name = "priority">
                <xsd:complexType/>
        </xsd:element>
        <xsd:element name = "outputFile">
                <xsd:complexType/>
        </xsd:element>
        <xsd:element name = "category">
                <xsd:complexType/>
        </xsd:element>
        <xsd:element name = "jobConfigs">
                <xsd:complexType>
                        <xsd:sequence>
                                <xsd:element ref = "jobConfig" maxOccurs = 
"unbounded"/>
                        </xsd:sequence>
                </xsd:complexType>
        </xsd:element>
        <xsd:element name = "jobConfig">
                <xsd:complexType>
                        <xsd:sequence>
                                <xsd:element ref = "name"/>
                                <xsd:element ref = "group"/>
                                <xsd:element ref = "className"/>
                        </xsd:sequence>
                </xsd:complexType>
        </xsd:element>
        <xsd:element name = "group" type = "xsd:string"/>
        <xsd:element name = "seconds" type = "xsd:string"/>
        <xsd:element name = "minutes" type = "xsd:string"/>
        <xsd:element name = "hours" type = "xsd:string"/>
        <xsd:element name = "dayOfMonth" type = "xsd:string"/>
        <xsd:element name = "month" type = "xsd:string"/>
        <xsd:element name = "dayOfWeek" type = "xsd:string"/>
        <xsd:element name = "triggers">
                <xsd:complexType>
                        <xsd:sequence>
                                <xsd:element ref = "trigger"/>
                        </xsd:sequence>
                </xsd:complexType>
        </xsd:element>
        <xsd:element name = "trigger">
                <xsd:complexType>
                        <xsd:sequence>
                                <xsd:element ref = "type"/>
                                <xsd:element ref = "name"/>
                                <xsd:element ref = "group"/>
                                <xsd:element ref = "jobName"/>
                                <xsd:element ref = "seconds"/>
                                <xsd:element ref = "minutes"/>
                                <xsd:element ref = "hours"/>
                                <xsd:element ref = "dayOfMonth"/>
                                <xsd:element ref = "month"/>
                                <xsd:element ref = "dayOfWeek"/>
                        </xsd:sequence>
                </xsd:complexType>
        </xsd:element>
        <xsd:element name = "type" type = "xsd:string"/>
        <xsd:element name = "jobName" type = "xsd:string"/>
        <xsd:element name = "jobGroup" type = "xsd:string"/>
  </xsd:schema>
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to