Package org.codelibs.fess.helper
Class IntervalControlHelper
- java.lang.Object
-
- org.codelibs.fess.helper.IntervalControlHelper
-
public class IntervalControlHelper extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIntervalControlHelper.IntervalRule
-
Field Summary
Fields Modifier and Type Field Description protected booleancrawlerRunningprotected longcrawlerWaitMillisprotected List<IntervalControlHelper.IntervalRule>ruleList
-
Constructor Summary
Constructors Constructor Description IntervalControlHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddIntervalRule(String from, String to, String days, long delay)voidcheckCrawlerStatus()voiddelayByRules()protected CalendargetCurrentCal()protected longgetDelay()booleanisCrawlerRunning()protected static int[]parseTime(String time)voidsetCrawlerRunning(boolean crawlerRunning)voidsetCrawlerWaitMillis(long crawlerWaitMillis)
-
-
-
Field Detail
-
crawlerRunning
protected volatile boolean crawlerRunning
-
crawlerWaitMillis
protected long crawlerWaitMillis
-
ruleList
protected List<IntervalControlHelper.IntervalRule> ruleList
-
-
Method Detail
-
checkCrawlerStatus
public void checkCrawlerStatus()
-
delayByRules
public void delayByRules()
-
getDelay
protected long getDelay()
-
getCurrentCal
protected Calendar getCurrentCal()
-
isCrawlerRunning
public boolean isCrawlerRunning()
-
setCrawlerRunning
public void setCrawlerRunning(boolean crawlerRunning)
-
parseTime
protected static int[] parseTime(String time)
-
setCrawlerWaitMillis
public void setCrawlerWaitMillis(long crawlerWaitMillis)
-
-