|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Generic interface that defines the behavior for a task. A task is a background job.
Field Summary | |
static String |
TASK_OBJECT_ID
The object ID for a task. |
Method Summary | |
void |
doTask()
Runs the actual task. |
void |
enable(boolean enable)
Enables the task. |
void |
execute(EbiTaskManager tm)
Executes the task. |
void |
fromXML(Node node)
Populates the task object from XML. |
EbiContext |
getContext()
Gets the context. |
String |
getDescription()
Gets the description of this task. |
Timestamp |
getLaunchTime()
Gets the time the task was fired off. |
String |
getName()
Gets the name of the task. |
boolean |
getSinceLast()
Determines whether the task is expected to only deal with conditions that have changed or occurred since the time the task was last run. |
EbiTaskType |
getTaskType()
Gets the task type. |
int |
getTimesRan()
Gets the number of times the task has run. |
Object |
getUserObject()
Gets the object set into the Task by the user of the Task. |
boolean |
isEnabled()
Checks to see if the task is enabled or disabled. |
boolean |
isOfType(EbiTaskType taskType)
Checks to see if the task belongs to the specified type. |
boolean |
isStarted()
Tells whether the task has been started. |
void |
setContext(EbiContext context)
Sets the context. |
void |
setDescription(String description)
Sets the description of this task. |
void |
setLaunchTime(Timestamp launchTime)
Sets the time the task was fired off. |
void |
setName(String name)
Sets the name of the task. |
void |
setSinceLast(boolean sinceLast)
Determines whether the task is expected to only deal with conditions that have changed or occurred since the time the task was last run. |
void |
setTaskType(EbiTaskType taskType)
Sets the task type. |
void |
setTimesRan(int timesRan)
Sets the number of times the task has run. |
void |
setUserObject(Object obj)
Sets an object defined by the Task user into the Task. |
void |
start()
Starts the task (can only start if it's not disabled). |
void |
stop()
Stops the task. |
Methods implemented from interface com.sssw.fw.api.EbiElement |
getType |
Field Detail |
public static final String TASK_OBJECT_ID
Method Detail |
public void setName(String name)
name
- The name.public void setTaskType(EbiTaskType taskType)
taskType
- The type.public void setDescription(String description)
description
- The description.public void setSinceLast(boolean sinceLast)
sinceLast
- If true, the task is to only deal with conditions that
have changed or occurred since the time the task was last run.public void setLaunchTime(Timestamp launchTime)
schedTime
- The time the task was fired off.public void setTimesRan(int timesRan)
timesRan
- The times the task has run.public void setUserObject(Object obj)
obj
- The object.public void setContext(EbiContext context)
context
- Context.public String getName()
public EbiTaskType getTaskType()
public String getDescription()
public boolean getSinceLast()
public Timestamp getLaunchTime()
public int getTimesRan()
public Object getUserObject()
public EbiContext getContext()
public void fromXML(Node node)
node
- The node to populate from.public void enable(boolean enable)
enable
- If true, enable the task, otherwise disable it.public boolean isEnabled()
public void start()
public void stop()
public boolean isStarted()
public boolean isOfType(EbiTaskType taskType)
taskType
- The type.public void execute(EbiTaskManager tm)
tm
- the Task Managerpublic void doTask() throws com.sssw.fw.task.api.EboTaskException
|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |