Class MonitorItself

    • Field Detail

      • m_Interval

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

      • MonitorItself

        public MonitorItself()
    • Method Detail

      • setMonitor

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

        public FileChangeMonitor 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