public void cleanup() { battleRules = null; if (pendingCommands != null) { pendingCommands.clear(); // don't pendingCommands = null; } URLJarCollector.enableGc(true); URLJarCollector.gc(); }
public void refresh(String friendlyUrl) { if (!updateItemRoot(friendlyUrl, true)) { refresh(true); } URLJarCollector.gc(); }
Logger.logError(e); URLJarCollector.gc();
public boolean refresh(boolean force) { boolean refreshed = update(getRobotsDirectory(), getDevelDirectories(), force); if (refreshed) { setStatus("Saving robot database"); save(); } setStatus(""); URLJarCollector.gc(); return refreshed; }
public void reload(boolean rebuild) { // Bug fix [2867326] - Lockup on start if too many bots in robots dir (cont'd). URLJarCollector.enableGc(true); URLJarCollector.gc(); if (rebuild) { Logger.logMessage("Rebuilding robot database..."); repository = new Repository(); } else if (repository == null) { setStatus("Reading robot database"); repository = load(); if (repository == null) { setStatus("Building robot database"); repository = new Repository(); } } refresh(true); setStatus(""); }