Class AbstractScriptExecutor

java.lang.Object
com.aizuda.snailjob.client.job.core.executor.builtin.AbstractScriptExecutor
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
AbstractCMDExecutor, AbstractPowerShellExecutor, AbstractShellExecutor

public abstract class AbstractScriptExecutor extends Object implements org.springframework.beans.factory.InitializingBean
  • Field Details

  • Constructor Details

    • AbstractScriptExecutor

      public AbstractScriptExecutor()
  • Method Details

    • process

      protected ExecuteResult process(Long jobId, AbstractScriptExecutor.ScriptParams scriptParams)
    • getScriptName

      protected abstract String getScriptName(Long instanceId)
    • getRunCommand

      protected abstract String getRunCommand()
    • getCharset

      protected Charset getCharset()
    • getScriptProcessBuilder

      protected abstract ProcessBuilder getScriptProcessBuilder(String scriptPath)
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception