Class DirMonitor

    • Field Detail

      • m_Interval

        protected int m_Interval
        the interval in milli-seconds.
    • Constructor Detail

      • DirMonitor

        public DirMonitor()
    • Method Detail

      • setMonitoredDir

        public void setMonitoredDir​(PlaceholderDirectory value)
        Sets the dir to monitor.
        Parameters:
        value - the dir
      • getMonitoredDir

        public PlaceholderDirectory getMonitoredDir()
        Returns the dir to monitor.
        Returns:
        the dir
      • monitoredDirTipText

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

        public void setMonitor​(DirChangeMonitor value)
        Sets the monitor to use.
        Parameters:
        value - the type of monitor
      • getMonitor

        public DirChangeMonitor getMonitor()
        Returns the monitor in use.
        Returns:
        the type of monitor
      • monitorTipText

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

        public void setInterval​(int value)
        Sets the interval in milli-seconds to wait.
        Parameters:
        value - the interval
      • getInterval

        public int getInterval()
        Returns the interval to wait in milli-seconds.
        Returns:
        the interval
      • intervalTipText

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

        protected String doStart​(Flow flow)
        Starts the trigger.
        Specified by:
        doStart in class AbstractTrigger
        Parameters:
        flow - the flow to handle
        Returns:
        null if successfully started, otherwise error message
      • stop

        public String stop()
        Stops the trigger.
        Specified by:
        stop in class AbstractTrigger
        Returns:
        null if successfully stopped, otherwise error message