Class RemoteCommandJobRunner

    • Field Detail

      • m_RequestConnection

        protected Connection m_RequestConnection
        the connection to use for sending the command.
      • m_ResponseConnection

        protected Connection m_ResponseConnection
        the connection to use for sending back the response.
      • m_ResponseScriptingEngine

        protected RemoteScriptingEngine m_ResponseScriptingEngine
        the scriping engine to use for listening for the response.
      • m_ResponseJobRunner

        protected JobRunner m_ResponseJobRunner
        the response JobRunner object.
    • Constructor Detail

      • RemoteCommandJobRunner

        public RemoteCommandJobRunner()
    • Method Detail

      • getDefaultRequestConnection

        protected Connection getDefaultRequestConnection()
        Returns the default connection for sending the request.
        Returns:
        the connection
      • setRequestConnection

        public void setRequestConnection​(Connection value)
        Sets the connection to use for sending the request.
        Parameters:
        value - the connection
      • getRequestConnection

        public Connection getRequestConnection()
        Returns the connection to use for sending the request.
        Returns:
        the connection
      • requestConnectionTipText

        public String requestConnectionTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getDefaultResponseConnection

        protected Connection getDefaultResponseConnection()
        Returns the default connection for sending the response back.
        Returns:
        the connection
      • setResponseConnection

        public void setResponseConnection​(Connection value)
        Sets the connection to use for sending the response back.
        Parameters:
        value - the connection
      • getResponseConnection

        public Connection getResponseConnection()
        Returns the connection to use for sending the response back.
        Returns:
        the connection
      • responseConnectionTipText

        public String responseConnectionTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getDefaultResponseScriptingEngine

        protected RemoteScriptingEngine getDefaultResponseScriptingEngine()
        Returns the default connection for sending the response back.
        Returns:
        the connection
      • setScriptingEngine

        public void setScriptingEngine​(RemoteScriptingEngine value)
        Sets the scripting engine to use for listening for the results.
        Parameters:
        value - the engine
      • getResponseScriptingEngine

        public RemoteScriptingEngine getResponseScriptingEngine()
        Returns the connection to use for sending the response back.
        Returns:
        the connection
      • responseScriptingEngineTipText

        public String responseScriptingEngineTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setResponseJobRunner

        public void setResponseJobRunner​(JobRunner value)
        Sets the JobRunner sent back as response.
        Parameters:
        value - the job runner
      • getResponseJobRunner

        public JobRunner getResponseJobRunner()
        Returns the JobRunner sent back as response.
        Returns:
        the job runner, null if not available
      • doStop

        protected String doStop()
        Performing actual stop.
        Specified by:
        doStop in class AbstractJobRunner
        Returns:
        null if successful, otherwise error message
      • doTerminate

        protected String doTerminate​(boolean wait)
        Performing actual terminate up.
        Specified by:
        doTerminate in class AbstractJobRunner
        Parameters:
        wait - whether to wait for the jobs to finish
        Returns:
        null if successful, otherwise error message
      • complete

        public void complete​(Job j,
                             JobResult jr)
        Ignored.
        Parameters:
        j - job
        jr - job result