/** * refresh work site * * @param host * @return */ public short refresh(SiteHost host) { short code = Response.SERVER_ERROR; this.lockSingle(); try { WorkSite site = mapSite.get(host); if (site != null) { mapTime.put(host, System.currentTimeMillis()); code = Response.ISEE; } else { code = Response.NOTLOGIN; } } catch (Throwable exp) { Logger.error(exp); } finally { this.unlockSingle(); } Logger.debug("WorkPool.refresh, site %s refresh status %d", host, code); return code; }