Package hec.script
Class ServerScriptJobTask
java.lang.Object
java.util.TimerTask
hec.model.JobTask
hec.script.ServerScriptJobTask
- All Implemented Interfaces:
AsciiSerializable
,FieldAccessor
,Serializable
,Runnable
,Modifiable
- See Also:
-
Field Summary
FieldsFields inherited from class hec.model.JobTask
_isModified, _isPaused, _isRunning, _job, _jobMessages, _lastRunTime, _nextRunTime, _parent, _status, CLIENT_NOT_LOGGED_IN, DONE, ERROR, IN_PROGRESS, PENDING, SCRIPT_FAILED, SUCCESSFUL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getFieldObject
(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.void
void
run()
boolean
setFieldObject
(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.void
setServerUrl
(String serverUrl) protected boolean
writeScript
(ScriptJob job, String[] localScriptPath) Methods inherited from class hec.model.JobTask
getJob, getJobMessages, getLastRunTime, getName, getNextRunTime, getParent, getStackTraceString, getStatus, isModified, isPaused, isRunning, setIsRunning, setJobStatus, setLastRunTime, setModified, setNextRunTime, setParent, setPaused
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Field Details
-
_serverUrl
-
-
Constructor Details
-
ServerScriptJobTask
public ServerScriptJobTask() -
ServerScriptJobTask
-
-
Method Details
-
run
public void run() -
writeScript
- Parameters:
job
-localScriptPath
-- Returns:
-
getExecutable
-
setServerUrl
-
getServerUrl
-
getFieldObject
Description copied from interface:FieldAccessor
This method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObject
in interfaceFieldAccessor
- Overrides:
getFieldObject
in classJobTask
- Parameters:
fld
- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessor
This allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObject
in interfaceFieldAccessor
- Overrides:
setFieldObject
in classJobTask
- 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()
-