Package hec.script

Class ServerScriptJobTask

All Implemented Interfaces:
AsciiSerializable, FieldAccessor, Serializable, Runnable, Modifiable

public class ServerScriptJobTask extends JobTask implements Serializable, AsciiSerializable
See Also:
  • Field Details

    • _serverUrl

      protected String _serverUrl
  • Constructor Details

    • ServerScriptJobTask

      public ServerScriptJobTask()
    • ServerScriptJobTask

      public ServerScriptJobTask(ScriptJob job, String serverUrl)
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class JobTask
    • writeScript

      protected boolean writeScript(ScriptJob job, String[] localScriptPath)
      Parameters:
      job -
      localScriptPath -
      Returns:
    • getExecutable

      protected String getExecutable()
    • setServerUrl

      public void setServerUrl(String serverUrl)
    • getServerUrl

      public String getServerUrl()
    • getFieldObject

      public Object getFieldObject(Field fld)
      Description copied from interface: FieldAccessor
      This method allows access to java.lang.reflect.Field objects within the implementing class.
      Specified by:
      getFieldObject in interface FieldAccessor
      Overrides:
      getFieldObject in class JobTask
      Parameters:
      fld - The field to get.
      Returns:
      The data object that is stored in the given field
    • setFieldObject

      public boolean setFieldObject(Field fld, Object fobj)
      Description copied from interface: FieldAccessor
      This allows access to fields withing the implementing object to set there data.
      Specified by:
      setFieldObject in interface FieldAccessor
      Overrides:
      setFieldObject in class JobTask
      Parameters:
      fld - The java field object representing the member field to be set
      fobj - The data to set in that field
      Returns:
      returns true if successful
    • printInfo

      public void printInfo()
      Overrides:
      printInfo in class JobTask