NodeSPI<String, String> n = cache.peek(fqn, true);
if (owner == null) owner = Thread.currentThread();
assertTrue("node " + fqn + " is not locked", lm.isLocked(n));
if (write_locked)
{
assertTrue("node " + fqn + " is not write-locked by owner " + owner, lm.ownsLock(fqn, LockType.WRITE, owner));
}
else
{
assertTrue("node " + fqn + " is not read-locked by owner " + owner, lm.ownsLock(fqn, LockType.READ, owner));
}