|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sape.carbon.services.scheduler.AbstractTask
Base class for tasks run by the SchedulerService. The main purpose of this class is to implement a java.util.TimerTask that calls the runScheduledTask of the Schedulable interface on the configured component. Subclasses implement their own scheduling functionality by implementing the schedule method, calling one of the schedule methods on the java.util.Timer class.
Timer
,
Copyright 2002 Sapient
Nested Class Summary | |
private static class |
AbstractTask.InternalTask
Class that extends java.util.TimerTask. |
private static class |
AbstractTask.TaskQueuer
|
Field Summary | |
private static org.apache.commons.logging.Log |
log
Provides a handle to Apache-commons logger |
private BaseTaskConfiguration |
taskConfiguration
|
private ThreadPool |
threadPool
|
Constructor Summary | |
protected |
AbstractTask(BaseTaskConfiguration taskConfiguration,
ThreadPool threadPool)
Loads and validates the component called from this task. |
Method Summary | |
protected TimerTask |
getTask()
Method used to get the java.util.TimerTask reprentation of this Task. |
abstract void |
schedule(Timer timer)
Method called to schedule this task on the given Timer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static org.apache.commons.logging.Log log
private BaseTaskConfiguration taskConfiguration
private ThreadPool threadPool
Constructor Detail |
protected AbstractTask(BaseTaskConfiguration taskConfiguration, ThreadPool threadPool)
taskConfiguration
- the configuration of the Schedulable
component called from this task.Method Detail |
public abstract void schedule(Timer timer)
timer
- Timer on which this task should be scheduledprotected TimerTask getTask()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |