@Test(timeout = 10000) public void lockInode() throws Exception { inodeLockTest(LockMode.WRITE, LockMode.READ, true); inodeLockTest(LockMode.READ, LockMode.WRITE, true); inodeLockTest(LockMode.WRITE, LockMode.WRITE, true); inodeLockTest(LockMode.READ, LockMode.READ, false); }
public RWLockResource lockInode(InodeView inode, LockMode mode, boolean useTryLock) { return mInodeLocks.get(inode.getId(), mode, useTryLock); }
InodeLockManager implements Closeable { public RWLockResource lockInode(InodeView inode, LockMode mode, boolean useTryLock) { return mInodeLocks.get(inode.getId(), mode, useTryLock); } }
InodeLockManager implements Closeable { public RWLockResource lockInode(InodeView inode, LockMode mode, boolean useTryLock) { return mInodeLocks.get(inode.getId(), mode, useTryLock); }  }
InodeLockManager implements Closeable { public RWLockResource lockInode(InodeView inode, LockMode mode, boolean useTryLock) { return mInodeLocks.get(inode.getId(), mode, useTryLock); }  @VisibleForTesting void assertAllLocksReleased(); RWLockResource lockInode(InodeView inode, LockMode mode, boolean useTryLock); Optional<RWLockResource> tryLockInode(Long inodeId, LockMode mode); RWLockResource lockEdge(Edge edge, LockMode mode, boolean useTryLock); Optional<RWLockResource> tryLockEdge(Edge edge, LockMode mode); Optional<Scoped> tryAcquirePersistingLock(long inodeId); LockResource lockUpdate(long inodeId); @Override void close(); }
InodeLockManager implements Closeable { public RWLockResource lockInode(InodeView inode, LockMode mode, boolean useTryLock) { return mInodeLocks.get(inode.getId(), mode, useTryLock); }  @VisibleForTesting void assertAllLocksReleased(); RWLockResource lockInode(InodeView inode, LockMode mode, boolean useTryLock); Optional<RWLockResource> tryLockInode(Long inodeId, LockMode mode); RWLockResource lockEdge(Edge edge, LockMode mode, boolean useTryLock); Optional<RWLockResource> tryLockEdge(Edge edge, LockMode mode); Optional<Scoped> tryAcquirePersistingLock(long inodeId); LockResource lockUpdate(long inodeId); @Override void close();  }