384385386387388389390391392393394
// both an offset > 0 and a filter on node names have been specified... throw new IllegalArgumentException("offset > 0 with child node filter"); } try { StoredNode node; try { if (id != null) { node = rep.getRevisionStore().getNode(id); } else { node = rep.getNode(revId, path);
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)); }
132133134135136137138139140
if (callback != null) { callback.postPersist(this); } cache.put(id, new StoredNode(id, node, this)); return id; }
215216217218219220221222223224225226227228229230
} 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;
214215216217218219220221222223224
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); } }