Class FlowRunner

    • Constructor Detail

      • FlowRunner

        public FlowRunner()
        Constructor
      • FlowRunner

        public FlowRunner​(Settings settings)
        Constructor
    • Method Detail

      • setSettings

        public void setSettings​(Settings settings)
        Set the settings to use when executing the Flow
        Specified by:
        setSettings in interface FlowExecutor
        Parameters:
        settings - the settings to use
      • getSettings

        public Settings getSettings()
        Get the settings in use when executing the Flow
        Specified by:
        getSettings in interface FlowExecutor
        Returns:
        the settings
      • setEnvironment

        public void setEnvironment​(Environment env)
      • main

        public static void main​(String[] args)
        Main method for executing the FlowRunner
        Parameters:
        args - command line arguments
      • run

        public void run​(Object toRun,
                        String[] args)
                 throws Exception
        Run a FlowRunner object
        Specified by:
        run in interface CommandlineRunnable
        Parameters:
        toRun - the FlowRunner object to execute
        args - the command line arguments
        Throws:
        Exception - if a problem occurs
      • getFlow

        public Flow getFlow()
        Get the flow to execute
        Specified by:
        getFlow in interface FlowExecutor
        Returns:
        the flow to execute
      • setFlow

        public void setFlow​(Flow flow)
        Set the flow to execute
        Specified by:
        setFlow in interface FlowExecutor
        Parameters:
        flow - the flow to execute
      • setLogger

        public void setLogger​(Logger logger)
        Set the log to use
        Specified by:
        setLogger in interface FlowExecutor
        Parameters:
        logger - the log to use
      • setLoggingLevel

        public void setLoggingLevel​(LoggingLevel level)
        Set the logging level to use
        Specified by:
        setLoggingLevel in interface FlowExecutor
        Parameters:
        level - the logging level to use
      • getLaunchStartPointsSequentially

        public boolean getLaunchStartPointsSequentially()
        Get whether to launch start points sequentially
        Returns:
        true if start points are to be launched sequentially
      • setLaunchStartPointsSequentially

        public void setLaunchStartPointsSequentially​(boolean s)
        Set whether to launch start points sequentially
        Parameters:
        s - true if start points are to be launched sequentially
      • waitUntilFinished

        public void waitUntilFinished()
        Wait until all the steps are no longer busy
        Specified by:
        waitUntilFinished in interface FlowExecutor
      • flowBusy

        public boolean flowBusy()
        Checks to see if any step(s) are doing work
        Returns:
        true if one or more steps in the flow are busy
      • stopProcessing

        public void stopProcessing()
        Attempt to stop processing in all steps
        Specified by:
        stopProcessing in interface FlowExecutor
      • wasStopped

        public boolean wasStopped()
        Returns true if execution was stopped via the stopProcessing() method
        Specified by:
        wasStopped in interface FlowExecutor
        Returns:
        true if execution was stopped.