private void addDirectoryToSerialNumberIndex(Path serialDirPath) { if (LogGlobal.isDebugEnabled()) { /* LOG.debug("Adding "+serialDirPath+" to serial index") */ LOG.adding_serial_index(serialDirPath.toString()).debug(); } String serialPart = serialDirPath.getName(); String timestampPart = JobHistoryUtils.getTimestampPartFromPath(serialDirPath.toString()); if (timestampPart == null) { /* LOG.warn("Could not find timestamp portion from path: "+serialDirPath+". Continuing with next") */ LOG.could_not_find_timestamp_portion_from_co(serialDirPath.toString()).warn(); return; } if (serialPart == null) { /* LOG.warn("Could not find serial portion from path: "+serialDirPath.toString()+". Continuing with next") */ LOG.could_not_find_serial_portion_from_conti(String.valueOf(serialDirPath.toString())) .tag("methodCall") .warn(); } else { serialNumberIndex.add(serialPart, timestampPart); } }
private void addDirectoryToSerialNumberIndex(Path serialDirPath) { if (LOG.isDebugEnabled()) { LOG.debug("Adding " + serialDirPath + " to serial index"); } String serialPart = serialDirPath.getName(); String timestampPart = JobHistoryUtils.getTimestampPartFromPath(serialDirPath.toString()); if (timestampPart == null) { LOG.warn( "Could not find timestamp portion from path: " + serialDirPath + ". Continuing with next"); return; } if (serialPart == null) { LOG.warn( "Could not find serial portion from path: " + serialDirPath.toString() + ". Continuing with next"); } else { serialNumberIndex.add(serialPart, timestampPart); } }