330331332333334335336337338339340341342343344345
// -----------------------------------------------------< RevisionProvider > public StoredNode getNode(Id id) throws NotFoundException, Exception { verifyInitialized(); StoredNode node = (StoredNode) cache.get(id); if (node != null) { return node; } node = new StoredNode(id, this); pm.readNode(node); cache.put(id, node); return node;
8485868788899091929394
Thread.sleep(1); pm.start(); pm.sweep(); try { pm.readNode(new StoredNode(id, null)); fail(); } catch (NotFoundException e) { /* expected */ } }
105106107108109110111
// old node must not be marked assertTrue(pm.markNode(id)); pm.sweep(); pm.readNode(new StoredNode(id, null)); }
119120121122123124125
// new node must already be marked assertFalse(pm.markNode(id)); pm.sweep(); pm.readNode(new StoredNode(id, null)); }
168169170171172173174175176177178
return entry.getName(); } @Override public NodeState getNode() { try { StoredNode child = provider.getNode(entry.getId()); return new StoredNodeAsState(child, provider); } catch (Exception e) { throw new RuntimeException("Unexpected error", e); } }
252253254255256257258259260261262
if (callback != null) { callback.postPersist(this, token); } StoredNode snode = new StoredNode(id, node, this); cache.put(id, snode); PutTokenImpl pti = (PutTokenImpl) token; pti.updateLastModifed(snode); putTokens.put(pti, null);
335336337338339340341342343344345346347348349350
263264265266267268269270271272273
355356357358359360361362363364365366367368369370
321322323324325326327328329330331
// use diff stored in commit instead of building it dynamically return toCommit.getChanges(); } } StoredNode from = null, to = null; try { from = rep.getNode(fromRevisionId, path); } catch (NotFoundException ignore) { } try {