Package org.apache.turbine.modules
Class ScheduledJobLoader
- java.lang.Object
-
- org.apache.turbine.modules.GenericLoader<ScheduledJob>
-
- org.apache.turbine.modules.ScheduledJobLoader
-
- All Implemented Interfaces:
Loader<ScheduledJob>
public class ScheduledJobLoader extends GenericLoader<ScheduledJob>
ScheduledJobs loader class.- Version:
- $Id$
- Author:
- Dave Bryson, Henning P. Schmiedehausen
-
-
Field Summary
-
Fields inherited from class org.apache.turbine.modules.GenericLoader
ab
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
exec(PipelineData pipelineData, String name)
Deprecated.void
exec(JobEntry job, String name)
Attempts to load and execute the external ScheduledJob.static ScheduledJobLoader
getInstance()
The method through which this class is accessed.-
Methods inherited from class org.apache.turbine.modules.GenericLoader
getAssembler, getAssembler, getBasePackage, getCacheSize, getPackages, reload, setReload
-
-
-
-
Method Detail
-
exec
public void exec(JobEntry job, String name) throws Exception
Attempts to load and execute the external ScheduledJob.- Parameters:
job
- The JobEntry.name
- Name of object that will execute the job.- Throws:
Exception
- a generic exception.
-
exec
@Deprecated public void exec(PipelineData pipelineData, String name) throws Exception
Deprecated.Attempts to load and execute the external ScheduledJob. HELP! - THIS IS UGLY! I want the cache stuff from GenericLoader, BUT, I don't think the scheduler needs the PipelineData object. The scheduler runs independently of an HTTP request. This should not extend GenericLoader! Thoughts??- Specified by:
exec
in classGenericLoader<ScheduledJob>
- Parameters:
pipelineData
- Turbine information.name
- Name of object that will execute the job.- Throws:
Exception
- a generic exception.
-
getInstance
public static ScheduledJobLoader getInstance()
The method through which this class is accessed.- Returns:
- The single instance of this class.
-
-