205206207208209210211212213214
} private List<Id> volumesFrom(Id id) { final List<Id> ids = new ArrayList<Id>(); for (Id from : repo.conf(id).volumesFrom) { ids.add(new Id(repo.findContainer(from).getId())); } return ids; }
363738394041424344
this.src = src; if (src.isDirectory()) { for (File file : src.listFiles()) { final File confFile = new File(file, "conf.yml"); confs.put(new Id(file.getName()), confFile.length() > 0 ? MAPPER.readValue(confFile, Conf.class) : new Conf()); } } }
104105106107108109110111112113114
final List<Id> out = new LinkedList<Id>(); while (!in.isEmpty()) { boolean hit = false; for (Iterator<Id> iterator = in.iterator(); iterator.hasNext(); ) { final Id id = iterator.next(); if (out.containsAll(links.get(id))) { out.add(id); iterator.remove(); hit = true; }