02/28/2005
 

com.epicentric.task
Class SingleTask

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--com.epicentric.task.Task
              |
              +--com.epicentric.task.SingleTask
All Implemented Interfaces:
Runnable

Deprecated. As of version 4.0, to be removed in 8.0 or later. It has been replaced with TaskManager

public class SingleTask
extends Task

A common kind of Task that has only one subtask. Provides convenience methods for looking through to the subtask, making transparent that subtasks are actually a collection rather than a single attribute of the Task.


Fields inherited from class com.epicentric.task.Task
isRunning, LAUNCH_EXTERNAL_PROGRAM, LAUNCH_IN_NEW_THREAD, LAUNCH_IN_NEW_VM, LAUNCH_IN_SYSTEM_THREAD, UNDEFINED
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SingleTask()
          Deprecated.  
SingleTask(DirectTask instance)
          Deprecated. Constructor to be used when subtask will carry an instance for direct execution (rather than reflective invocation).
 
Method Summary
 void addParameter(Object parameter)
          Deprecated. Add parameters to my lone subtask.
 void setExternalProgramName(String progName)
          Deprecated. set program name on my lone subtask
 void setFriendlyName(String name)
          Deprecated. Set displayable name, same on subtask as on schedule.
 void setLaunchClassName(String className)
          Deprecated. set class name on my lone subtask.
 void setLaunchMethodName(String methodName)
          Deprecated. Set method name on my lone subtask.
 void setMyInstance(Object myInstance)
          Deprecated. Set runtime instance on my lone subtask.
 
Methods inherited from class com.epicentric.task.Task
calcNextRunDate, calcNextRunDate, canBeStored, deleteWhenExpired, execute, getLastRunDate, getNextRunDate, getRunsSoFar, getSchedule, getSchedulerName, getTaskId, hasExpired, isRunning, launchAsExternalProgram, launchAsNewThread, main, run, setDeleteWhenExpired, setLaunchStyle, setResult, setSchedule, setSchedulerName, toString, updateRuntimeInfo
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SingleTask

public SingleTask()
Deprecated. 

SingleTask

public SingleTask(DirectTask instance)
Deprecated. 
Constructor to be used when subtask will carry an instance for direct execution (rather than reflective invocation).
See Also:
SubTask.setDirectInstance(com.epicentric.task.DirectTask)
Method Detail

setLaunchClassName

public void setLaunchClassName(String className)
Deprecated. 
set class name on my lone subtask.

setLaunchMethodName

public void setLaunchMethodName(String methodName)
Deprecated. 
Set method name on my lone subtask.

setExternalProgramName

public void setExternalProgramName(String progName)
Deprecated. 
set program name on my lone subtask
Parameters:
progName - is full path to executable.

setMyInstance

public void setMyInstance(Object myInstance)
Deprecated. 
Set runtime instance on my lone subtask.
Parameters:
myInstance - is an object upon which launchMethod will be run.

setFriendlyName

public void setFriendlyName(String name)
Deprecated. 
Set displayable name, same on subtask as on schedule.
Parameters:
name -  

addParameter

public void addParameter(Object parameter)
Deprecated. 
Add parameters to my lone subtask.

02/28/2005
 

Copyright and Trademark Notices