@Component
public class ScheduledTaskComponent
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
private SysAppTokenService |
appTokenService |
private CacheComponent |
cacheComponent |
private SysEmailTokenService |
emailTokenService |
private LockComponent |
lockComponent |
protected org.apache.commons.logging.Log |
log |
private LogLoginService |
logLoginService |
private LogOperateService |
logOperateService |
private LogTaskService |
logTaskService |
private StatisticsComponent |
statisticsComponent |
private SysUserTokenService |
userTokenService |
private VisitComponent |
visitComponent |
private VisitDayService |
visitDayService |
private VisitHistoryService |
visitHistoryService |
private VisitItemService |
visitItemService |
private VisitSessionService |
visitSessionService |
private VisitUrlService |
visitUrlService |
构造器和说明 |
---|
ScheduledTaskComponent() |
限定符和类型 | 方法和说明 |
---|---|
void |
clearAppToken()
10分钟清理过期token
|
void |
clearCache()
每6个小时清理缓存
|
void |
clearLog()
每月1号凌晨清理三年以前的日志
|
void |
clearStatistics()
每5分钟清理统计缓存
|
void |
clearVisitLog()
10秒种清理访问日志
|
void |
dealLastDayVisitLog()
每天汇总访问数据
|
void |
dealLastHourVisitLog()
每小时汇总访问数据
|
void |
dealLastMinuteVisitLog()
每分钟汇总访问数据
|
protected final org.apache.commons.logging.Log log
private SysAppTokenService appTokenService
private SysEmailTokenService emailTokenService
private SysUserTokenService userTokenService
private VisitHistoryService visitHistoryService
private VisitSessionService visitSessionService
private VisitDayService visitDayService
private VisitItemService visitItemService
private VisitUrlService visitUrlService
private LogLoginService logLoginService
private LogOperateService logOperateService
private LogTaskService logTaskService
private CacheComponent cacheComponent
private VisitComponent visitComponent
private StatisticsComponent statisticsComponent
private LockComponent lockComponent
@Scheduled(fixedDelay=600000L) public void clearAppToken()
@Scheduled(fixedDelay=10000L) public void clearVisitLog()
@Scheduled(cron="10 * * * * ?") public void dealLastMinuteVisitLog()
@Scheduled(cron="0 1 * * * ?") public void dealLastHourVisitLog()
@Scheduled(cron="0 10 0 * * ?") public void dealLastDayVisitLog()
@Scheduled(fixedDelay=300000L) public void clearStatistics()
@Scheduled(cron="0 30 0/6 * * ?") public void clearCache()
@Scheduled(cron="0 0 0 1 * ?") public void clearLog()