Package hec.model
Class JobTask
java.lang.Object
java.util.TimerTask
hec.model.JobTask
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable,Runnable,Modifiable
- Direct Known Subclasses:
ClientScriptJobTask,ServerScriptJobTask
public abstract class JobTask
extends TimerTask
implements Serializable, AsciiSerializable, Modifiable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected booleanprotected SchedulableJobprotected Vectorprotected longprotected longprotected Schedulerprotected Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.getJob()longgetName()longprotected Stringreturn the String representation of the stacktrace for tbooleanbooleanisPaused()booleanvoidvoidrun()booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetIsRunning(boolean b) voidsetJobStatus(String msg, String status) voidvoidsetModified(boolean b) voidsetNextRunTime(long nextRunTime) voidvoidsetPaused(boolean b) Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Field Details
-
DONE
- See Also:
-
SUCCESSFUL
- See Also:
-
CLIENT_NOT_LOGGED_IN
- See Also:
-
IN_PROGRESS
- See Also:
-
PENDING
- See Also:
-
SCRIPT_FAILED
- See Also:
-
ERROR
- See Also:
-
_job
-
_isRunning
protected boolean _isRunning -
_status
-
_lastRunTime
protected long _lastRunTime -
_isPaused
protected boolean _isPaused -
_isModified
protected boolean _isModified -
_parent
-
_jobMessages
-
_nextRunTime
protected long _nextRunTime
-
-
Constructor Details
-
JobTask
public JobTask() -
JobTask
-
-
Method Details
-
getJob
-
run
public void run() -
getName
-
setIsRunning
public void setIsRunning(boolean b) -
isRunning
public boolean isRunning() -
setPaused
public void setPaused(boolean b) -
isPaused
public boolean isPaused() -
getStatus
-
setJobStatus
-
getJobMessages
-
setLastRunTime
public void setLastRunTime() -
getLastRunTime
public long getLastRunTime() -
getParent
-
setParent
-
setModified
public void setModified(boolean b) - Specified by:
setModifiedin interfaceModifiable
-
isModified
public boolean isModified()- Specified by:
isModifiedin interfaceModifiable
-
setNextRunTime
public void setNextRunTime(long nextRunTime) -
getNextRunTime
public long getNextRunTime() -
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Parameters:
fld- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessorThis allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObjectin interfaceFieldAccessor- Parameters:
fld- The java field object representing the member field to be setfobj- The data to set in that field- Returns:
- returns true if successful
-
printInfo
public void printInfo() -
getStackTraceString
return the String representation of the stacktrace for t- Parameters:
t- the Throwable- Returns:
- the stacktrace string
-