/**
* 定时打印当前用户数到日志.
*/
@Override
protected void executeInternal(JobExecutionContext ctx) throws JobExecutionException {
AccountService accountService = applicationContext.getBean(AccountService.class);
Map config = (Map) applicationContext.getBean("timerJobConfig");
long userCount = accountService.getUserCount();
String nodeName = (String) config.get("nodeName");
logger.info("There are {} user in database, on node {}.", userCount, nodeName);
}