org.sapia.taskman
Class TaskDescriptor

java.lang.Object
  |
  +--org.sapia.taskman.TaskDescriptor
Direct Known Subclasses:
PeriodicTaskDescriptor, TransientTaskDescriptor

public abstract class TaskDescriptor
extends Object

The base task descriptor class. An instance of this class wraps a Task, as well as metadata pertaining to the latter.

Author:
Yanick Duchesne 15-Apr-2003

Field Summary
static int PERIODIC
           
static int TRANSIENT
           
 
Constructor Summary
TaskDescriptor(String name, int occurrence, long intervalMillis, Task task)
          Creates an instance of this class with the given parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PERIODIC

public static final int PERIODIC
See Also:
Constant Field Values

TRANSIENT

public static final int TRANSIENT
See Also:
Constant Field Values
Constructor Detail

TaskDescriptor

public TaskDescriptor(String name,
                      int occurrence,
                      long intervalMillis,
                      Task task)
Creates an instance of this class with the given parameters.

Parameters:
name - the name of the task to which this instance corresponds.
occurrence - the "occurrence" of the task's execution - corresponds to one of the public constants of this class.
intervalMillis - the interval at which the task will be executed.
task - the Task to associate to this descriptor.


Copyright © 2002 Sapia Open Community, Inc. All Rights Reserved.