public class IntervalControlHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
IntervalControlHelper.IntervalRule |
| Modifier and Type | Field and Description |
|---|---|
long |
crawlerWaitMillis |
protected List<IntervalControlHelper.IntervalRule> |
ruleList |
| Constructor and Description |
|---|
IntervalControlHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
addIntervalRule(String from,
String to,
String days,
long delay) |
void |
checkCrawlerStatus() |
void |
delayByRules() |
protected Calendar |
getCurrentCal() |
protected long |
getDelay() |
boolean |
isCrawlerRunning() |
protected static int[] |
parseTime(String time) |
void |
setCrawlerRunning(boolean crawlerRunning) |
public long crawlerWaitMillis
protected List<IntervalControlHelper.IntervalRule> ruleList
public void checkCrawlerStatus()
public void delayByRules()
protected long getDelay()
protected Calendar getCurrentCal()
public boolean isCrawlerRunning()
public void setCrawlerRunning(boolean crawlerRunning)
protected static int[] parseTime(String time)
Copyright © 2009–2017 CodeLibs. All rights reserved.