/** * Add a result and the length of time before it is removed from the * checksum history table. * * @param result code in the database. * @param duration before bitstreams with the specified result type in the * checksum history is removed. * @throws ParseException if the duration cannot be parsed into a long value. */ public void addInterested(ChecksumResultCode result, String duration) throws ParseException { addInterested(result, Utils.parseDuration(duration)); }
long duration; try { duration = Utils.parseDuration(props.getProperty(name)); } catch (ParseException e) { throw new IllegalStateException("Problem parsing duration: "
new SimpleDispatcher(context, processStart, true), new Date( System.currentTimeMillis() + Utils.parseDuration(line .getOptionValue('d')))); } catch (Exception e) {