thorhauer 2002/06/11 07:07:04
Modified: . project.xml
Added: src/test/org/apache/stratum/scheduler/examplejobs
JobOne.java JobTwo.java
Log:
moving example jobs over to the test area and updating dependencies
Revision Changes Path
1.25 +1 -3 jakarta-turbine-stratum/project.xml
Index: project.xml
===================================================================
RCS file: /home/cvs/jakarta-turbine-stratum/project.xml,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- project.xml 7 Jun 2002 11:34:00 -0000 1.24
+++ project.xml 11 Jun 2002 14:07:04 -0000 1.25
@@ -77,7 +77,6 @@
</developers>
<dependencies>
-<!--
<dependency>
<id>commons-beanutils</id>
<version>1.0</version>
@@ -86,9 +85,8 @@
<dependency>
<id>commons-collections</id>
<version>1.0</version>
- <jar>commons-collections.jar</jar>
+ <jar>commons-collections-1.0.jar</jar>
</dependency>
--->
<dependency>
<id>commons-configuration</id>
<version>1.0-dev</version>
1.1
jakarta-turbine-stratum/src/test/org/apache/stratum/scheduler/examplejobs/JobOne.java
Index: JobOne.java
===================================================================
package org.apache.stratum.scheduler.examplejobs;
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2001-2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "Apache" and "Apache Software Foundation" and
* "Apache Turbine" must not be used to endorse or promote products
* derived from this software without prior written permission. For
* written permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called "Apache",
* "Apache Turbine", nor may "Apache" appear in their name, without
* prior written permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
import org.quartz.*;
import org.quartz.simpl.*;
import java.util.Date;
/**
* <p>A dumb implementation of Job, for unittesting purposes.</p>
*
* @author James House
*/
public class JobOne implements Job {
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Constructors.
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
public JobOne()
{
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Interface.
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/**
* <p>Called by the <code>{@link org.quartz.Scheduler}</code> when a
* <code>{@link org.quartz.Trigger}</code> fires that is associated with the
* <code>Job</code>.</p>
*
* @throws JobExecutionException if there is an exception while executing
* the job.
*/
public void execute(JobExecutionContext context)
throws JobExecutionException
{
System.out.println(" --- Testing Scheduler Component\n --- "
+ context.getJobDetail().getFullName() + " executed.[" + new Date() +
"]");
}
}
1.1
jakarta-turbine-stratum/src/test/org/apache/stratum/scheduler/examplejobs/JobTwo.java
Index: JobTwo.java
===================================================================
package org.apache.stratum.scheduler.examplejobs;
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2001-2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "Apache" and "Apache Software Foundation" and
* "Apache Turbine" must not be used to endorse or promote products
* derived from this software without prior written permission. For
* written permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called "Apache",
* "Apache Turbine", nor may "Apache" appear in their name, without
* prior written permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
import org.quartz.*;
import org.quartz.simpl.*;
import java.util.Date;
/**
* <p>A dumb implementation of Job, for unittesting purposes.</p>
*
* @author James House
*/
public class JobTwo implements Job {
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Constructors.
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
public JobTwo()
{
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Interface.
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/**
* <p>Called by the <code>{@link org.quartz.Scheduler}</code> when a
* <code>{@link org.quartz.Trigger}</code> fires that is associated with the
* <code>Job</code>.</p>
*
* @throws JobExecutionException if there is an exception while executing
* the job.
*/
public void execute(JobExecutionContext context)
throws JobExecutionException
{
System.err.println(" --- Testing Scheduler Component\n --- "
+ context.getJobDetail().getFullName() + " executed.[" + new Date() + "]");
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>