org.apache.turbine.services.schedule
Interface ScheduleService
- All Superinterfaces:
- Initable, Service
- All Known Implementing Classes:
- TurbineSchedulerService
- public interface ScheduleService
- extends Service
ScheduleService interface.
- Version:
- $Id$
- Author:
- Dave Bryson
SERVICE_NAME
public static final java.lang.String SERVICE_NAME
getJob
public JobEntry getJob(int oid)
throws java.lang.Exception
- Get a specific Job from Storage.
- Parameters:
oid
- The int id for the job.- Returns:
- A JobEntry.
- Throws:
Exception,
- a generic exception.
addJob
public void addJob(JobEntry je)
throws java.lang.Exception
- Add a new job to the queue.
- Parameters:
je
- A JobEntry with the job to add.- Throws:
Exception,
- a generic exception.
updateJob
public void updateJob(JobEntry je)
throws java.lang.Exception
- Modify a Job.
- Parameters:
je
- A JobEntry with the job to modify- Throws:
Exception,
- a generic exception.
removeJob
public void removeJob(JobEntry je)
throws java.lang.Exception
- Remove a job from the queue.
- Parameters:
je
- A JobEntry with the job to remove.- Throws:
Exception,
- a generic exception.
listJobs
public java.util.Vector listJobs()
- List jobs in the queue. This is used by the scheduler UI.
- Returns:
- A Vector of jobs.
Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.