Lines Matching defs:LockType
49 private enum LockType
100 DNLock lock1 = lockUsingThread(thread1, lockManager, LockType.WRITE_ENTRY, dnABC).get();
101 DNLock lock2 = lockUsingThread(thread2, lockManager, LockType.WRITE_ENTRY, dnABC).get();
112 { LockType.READ_ENTRY, dnA, LockType.WRITE_ENTRY, dnA },
113 { LockType.WRITE_ENTRY, dnA, LockType.READ_ENTRY, dnA },
114 { LockType.WRITE_ENTRY, dnA, LockType.WRITE_ENTRY, dnA },
116 { LockType.WRITE_SUBTREE, dnA, LockType.READ_ENTRY, dnA },
117 { LockType.READ_ENTRY, dnA, LockType.WRITE_SUBTREE, dnA },
118 { LockType.WRITE_SUBTREE, dnA, LockType.WRITE_ENTRY, dnA },
119 { LockType.WRITE_ENTRY, dnA, LockType.WRITE_SUBTREE, dnA },
120 { LockType.WRITE_SUBTREE, dnA, LockType.WRITE_SUBTREE, dnA },
122 { LockType.WRITE_SUBTREE, dnA, LockType.READ_ENTRY, dnAB },
123 { LockType.READ_ENTRY, dnAB, LockType.WRITE_SUBTREE, dnA },
124 { LockType.WRITE_SUBTREE, dnA, LockType.WRITE_ENTRY, dnAB },
125 { LockType.WRITE_ENTRY, dnAB, LockType.WRITE_SUBTREE, dnA },
126 { LockType.WRITE_SUBTREE, dnA, LockType.WRITE_SUBTREE, dnAB },
127 { LockType.WRITE_SUBTREE, dnAB, LockType.WRITE_SUBTREE, dnA },
133 public void testMultiThreadedLockCombinationsWhichShouldBlock(final LockType lock1Type, final DN dn1,
134 final LockType lock2Type, final DN dn2) throws Exception
164 { LockType.READ_ENTRY, dnA, LockType.READ_ENTRY, dnA },
166 { LockType.READ_ENTRY, dnA, LockType.WRITE_ENTRY, dnAB },
167 { LockType.WRITE_ENTRY, dnAB, LockType.READ_ENTRY, dnA },
168 { LockType.WRITE_ENTRY, dnA, LockType.WRITE_ENTRY, dnAB },
169 { LockType.WRITE_ENTRY, dnAB, LockType.WRITE_ENTRY, dnA },
171 { LockType.READ_ENTRY, dnA, LockType.WRITE_SUBTREE, dnAB },
172 { LockType.WRITE_SUBTREE, dnAB, LockType.READ_ENTRY, dnA },
174 { LockType.WRITE_ENTRY, dnA, LockType.WRITE_SUBTREE, dnAB },
175 { LockType.WRITE_SUBTREE, dnAB, LockType.WRITE_ENTRY, dnA },
177 { LockType.WRITE_SUBTREE, dnABC, LockType.WRITE_SUBTREE, dnABD },
183 public void testMultiThreadedLockCombinationsWhichShouldNotBlock(final LockType lock1Type, final DN dn1,
184 final LockType lock2Type, final DN dn2) throws Exception
201 private LockType[][] reentrantLockCombinationsWhichShouldNotBlock()
204 return new LockType[][] {
205 { LockType.READ_ENTRY, LockType.READ_ENTRY },
207 { LockType.WRITE_ENTRY, LockType.READ_ENTRY },
208 { LockType.WRITE_ENTRY, LockType.WRITE_ENTRY },
210 { LockType.WRITE_SUBTREE, LockType.READ_ENTRY },
211 { LockType.WRITE_SUBTREE, LockType.WRITE_ENTRY },
212 { LockType.WRITE_SUBTREE, LockType.WRITE_SUBTREE },
218 public void testReentrantLockCombinationsWhichShouldNotBlock(final LockType lock1Type, final LockType lock2Type)
324 final LockType lockType, final DN dn) throws Exception