@Test public void numInodes() { assertEquals(0, mLockList.numInodes()); mLockList.lockRootEdge(LockMode.READ); assertEquals(0, mLockList.numInodes()); mLockList.lockInode(mRootDir, LockMode.READ); assertEquals(1, mLockList.numInodes()); mLockList.lockEdge(mRootDir, mDirA.getName(), LockMode.READ); assertEquals(1, mLockList.numInodes()); mLockList.lockInode(mDirA, LockMode.READ); assertEquals(2, mLockList.numInodes()); }
@Override public int numInodes() { return mInodes.size(); }
SimpleInodeLockList implements InodeLockList { @Override public int numInodes() { return mInodes.size(); } }
SimpleInodeLockList implements InodeLockList { @Override public int numInodes() { return mInodes.size(); } SimpleInodeLockList(InodeLockManager inodeLockManager, boolean useTryLock); }
SimpleInodeLockList implements InodeLockList { @Override public int numInodes() { return mInodes.size(); } SimpleInodeLockList(InodeLockManager inodeLockManager, boolean useTryLock); @Override void lockInode(Inode inode, LockMode mode); @Override void lockEdge(Inode lastInode, String childName, LockMode mode); @Override void lockRootEdge(LockMode mode); @Override void pushWriteLockedEdge(Inode inode, String childName); @Override void unlockLastInode(); @Override void unlockLastEdge(); @Override void downgradeToReadLocks(); @Override void downgradeLastEdge(); @Override LockMode getLockMode(); @Override List<Inode> getLockedInodes(); @Override Inode get(int index); @Override int numInodes(); @Override boolean isEmpty(); @Override InodeLockManager getInodeLockManager(); @Override boolean endsInInode(); @Override String toString(); @Override void close(); }
SimpleInodeLockList implements InodeLockList { @Override public int numInodes() { return mInodes.size(); } SimpleInodeLockList(InodeLockManager inodeLockManager, boolean useTryLock); @Override void lockInode(Inode inode, LockMode mode); @Override void lockEdge(Inode lastInode, String childName, LockMode mode); @Override void lockRootEdge(LockMode mode); @Override void pushWriteLockedEdge(Inode inode, String childName); @Override void unlockLastInode(); @Override void unlockLastEdge(); @Override void downgradeToReadLocks(); @Override void downgradeLastEdge(); @Override LockMode getLockMode(); @Override List<Inode> getLockedInodes(); @Override Inode get(int index); @Override int numInodes(); @Override boolean isEmpty(); @Override InodeLockManager getInodeLockManager(); @Override boolean endsInInode(); @Override String toString(); @Override void close();  }