@Override public CollectionUpdateType convert(String value) { return CollectionUpdateType.valueOf(value); } }
if (logger != null)logger.info("Schedule startup scan force={} for '{}' at {}", updateConfig.startupType.toString(), config.name, runTime); } catch (Throwable e) { if (logger != null)logger.error("cronExecutor failed to schedule startup Job for " + config, e);
logger.info("scheduleJob startup scan force={} for '{}' at {}", updateConfig.startupType.toString(), config.collectionName, runTime); } catch (Throwable e) { logger.error("scheduleJob failed to schedule startup Job for " + config, e);
public UpdateConfig(String startupS, String rewriteS, String recheckAfter, String rescan, String triggerS, String deleteAfter) { this.rescan = rescan; // may be null if (recheckAfter != null) this.recheckAfter = recheckAfter; // in case it was set in collection element if (rescan != null) this.recheckAfter = null; // both not allowed this.deleteAfter = deleteAfter; // may be null if (triggerS != null) this.triggerOk = triggerS.equalsIgnoreCase("allow"); // rewrite superceeds startup if (rewriteS == null) rewriteS = startupS; if (rewriteS != null) { rewriteS = rewriteS.toLowerCase(); if (rewriteS.equalsIgnoreCase("true")) this.updateType = CollectionUpdateType.test; else try { this.updateType = CollectionUpdateType.valueOf(rewriteS); } catch (Throwable t) { log.error("Bad updateType= {} in {}", rewriteS); } // user has placed an update/tdm element in the catalog userDefined = true; } }
public UpdateConfig(String startupS, String rewriteS, String recheckAfter, String rescan, String triggerS, String deleteAfter) { this.rescan = rescan; // may be null if (recheckAfter != null) this.recheckAfter = recheckAfter; // in case it was set in collection element if (rescan != null) this.recheckAfter = null; // both not allowed this.deleteAfter = deleteAfter; // may be null if (triggerS != null) this.triggerOk = triggerS.equalsIgnoreCase("allow"); // rewrite superceeds startup if (rewriteS == null) rewriteS = startupS; if (rewriteS != null) { rewriteS = rewriteS.toLowerCase(); if (rewriteS.equalsIgnoreCase("true")) this.updateType = CollectionUpdateType.test; else try { this.updateType = CollectionUpdateType.valueOf(rewriteS); } catch (Throwable t) { log.error("Bad updateType= {} in {}", rewriteS); } // user has placed an update/tdm element in the catalog userDefined = true; } }