Class IntervalControlHelper


  • public class IntervalControlHelper
    extends Object
    • Constructor Detail

      • IntervalControlHelper

        public IntervalControlHelper()
    • Method Detail

      • checkCrawlerStatus

        public void checkCrawlerStatus()
      • delayByRules

        public void delayByRules()
      • getDelay

        protected long getDelay()
      • getCurrentCal

        protected Calendar getCurrentCal()
      • addIntervalRule

        public void addIntervalRule​(String from,
                                    String to,
                                    String days,
                                    long delay)
      • isCrawlerRunning

        public boolean isCrawlerRunning()
      • setCrawlerRunning

        public void setCrawlerRunning​(boolean crawlerRunning)
      • parseTime

        protected static int[] parseTime​(String time)
      • setCrawlerWaitMillis

        public void setCrawlerWaitMillis​(long crawlerWaitMillis)