/** * @return a list that contains all the archived index directories excluding the one * currently accepting updates. */ public List<Directory> getAllArchivedDirectories() { @SuppressWarnings("unchecked") List<Directory> emptyList = Collections.EMPTY_LIST; ArrayList<Directory> list = new ArrayList<Directory>(); List<File> dirs = getAllArchivedDirs(); if (dirs != null) { for (File dir : dirs) { try { list.add(getFSDirectoryFromFile(dir)); } catch (IOException e) { log.error("potential index corruption: " + dir, e); } } } if (list.size() == 0) return emptyList; return list; }
/** * @return a list that contains all the archived index directories excluding the one * currently accepting updates. */ public List<Directory> getAllArchivedDirectories() { @SuppressWarnings("unchecked") List<Directory> emptyList = Collections.EMPTY_LIST; ArrayList<Directory> list = new ArrayList<Directory>(); List<File> dirs = getAllArchivedDirs(); if (dirs != null) { for (File dir : dirs) { try { list.add(getFSDirectoryFromFile(dir)); } catch (IOException e) { log.error("potential index corruption: " + dir, e); } } } if (list.size() == 0) return emptyList; return list; }
/** * @return a list that contains all the archived index directories excluding the one * currently accepting updates. */ public List<Directory> getAllArchivedDirectories() { @SuppressWarnings("unchecked") List<Directory> emptyList = Collections.EMPTY_LIST; ArrayList<Directory> list = new ArrayList<Directory>(); List<File> dirs = getAllArchivedDirs(); if (dirs != null) { for (File dir : dirs) { try { list.add(getFSDirectoryFromFile(dir)); } catch (IOException e) { log.error("potential index corruption: " + dir, e); } } } if (list.size()==0) return emptyList; return list; } /**