|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.epicentric.task.SubTask
TaskManager
A sub-task creates the execution profile and intelligence
for a single method invocation or program execution.
A subTask is created by identifying how and what to execute,
and with what parameters. A subtask can be an external program
invocation, a static method invocation, or an instance invocation.
If an instance invocation, the subtask can contain the actual
instance to invoke upon, or will attempt to instantiate it
on the fly.
If the subtask contains the instance to invoke, you can
choose to take advantage of the DirectTask interface to simplify
the API and speed up execution. That is, if your instance implements
DirectTask, it has a method boolean doTask() [no parameters].
If that's the method you want executed, setDirectInstance() and
don't set any launchMethod or launchClass. If you want to execute
a different method on your instance, leave launchClass blank and
setLaunchMethod(). The launch method you set will be invoked
even if your instance is also an implementer of DirectTask.
Parameters can be set up for the task.
Restrictions:
| Field Summary | |
static int |
BOOLEAN
Deprecated. |
static int |
DATE
Deprecated. |
static boolean |
DEBUG
Deprecated. |
static int |
DOUBLE
Deprecated. |
static int |
INTEGER
Deprecated. |
static int |
OBJECT
Deprecated. |
static int |
STRING
Deprecated. |
| Constructor Summary | |
SubTask(Task task)
Deprecated. Use this constructor for a task with only one subtask. |
|
SubTask(Task task,
boolean continueAfterAbend)
Deprecated. Use this constructor for a subtask to be executed as part of a Task. |
|
| Method Summary | |
void |
addParameter(Object param)
Deprecated. Add a parameter to the set. |
boolean |
canBeStored()
Deprecated. Answer whether this subtask can be stored. |
void |
setDirectInstance(DirectTask myInstance)
Deprecated. Instance upon which this subtask should execute. |
void |
setExternalProgramName(String programName)
Deprecated. Full path to program name to launch externally. |
void |
setFriendlyName(String friendlyName)
Deprecated. Set displayable name of this subtask. |
void |
setLaunchClassName(String className)
Deprecated. Set class name of method this subtask should start. |
void |
setLaunchMethodName(String methodName)
Deprecated. Set method name this subtask should start on launchClassName. |
void |
setMyInstance(Object myInstance)
Deprecated. Instance upon which this subtask should execute. |
String |
toString()
Deprecated. String representation |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static boolean DEBUG
public static final int INTEGER
public static final int STRING
public static final int BOOLEAN
public static final int DOUBLE
public static final int DATE
public static final int OBJECT
| Constructor Detail |
public SubTask(Task task,
boolean continueAfterAbend)
public SubTask(Task task)
| Method Detail |
public void setLaunchClassName(String className)
public void setLaunchMethodName(String methodName)
public void addParameter(Object param)
public void setExternalProgramName(String programName)
programName - public void setMyInstance(Object myInstance)
public void setDirectInstance(DirectTask myInstance)
public void setFriendlyName(String friendlyName)
public boolean canBeStored()
public String toString()
toString in class Object
|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||