Class TriggerManager

    • Constructor Detail

      • TriggerManager

        public TriggerManager()
    • Method Detail

      • setTrigger

        public void setTrigger​(AbstractTrigger value)
        Sets the trigger to use.
        Parameters:
        value - the trigger
      • getTrigger

        public AbstractTrigger getTrigger()
        Returns the trigger in use.
        Returns:
        the trigger
      • triggerTipText

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

        public void setOperation​(AbstractRestartOperation value)
        Sets the restart operation to use.
        Parameters:
        value - the operation
      • getOperation

        public AbstractRestartOperation getOperation()
        Returns the restart option in use.
        Returns:
        the operation
      • operationTipText

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

        public String start​(Flow flow)
        Starts the restart handling.
        Specified by:
        start in class AbstractFlowRestartManager
        Parameters:
        flow - the flow to handle
        Returns:
        null if successfully started, otherwise error message
      • trigger

        public String trigger()
        Restarts the flow.
        Specified by:
        trigger in interface TriggerHandler
        Returns:
        null if successfully restarted, otherwise the error message
      • stop

        public String stop​(Flow flow)
        Stops the restart handling.
        Specified by:
        stop in class AbstractFlowRestartManager
        Parameters:
        flow - the flow to handle
        Returns:
        null if successfully stopped, otherwise error message