Searched defs:obtain (Results 1 - 12 of 12) sorted by relevance

/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/store/
H A DLock.java9 * the License. You may obtain a copy of the License at
36 /** How long {@link #obtain(long)} waits, in milliseconds,
40 /** Pass this value to {@link #obtain(long)} to try
41 * forever to obtain the lock. */
44 /** Attempts to obtain exclusive access and immediately return
48 public abstract boolean obtain() throws IOException; method in class:Lock
51 * If a lock obtain called, this failureReason may be set
57 /** Attempts to obtain an exclusive lock within amount of
68 * @throws IOException if obtain() throws IOException
70 public boolean obtain(lon method in class:Lock
[all...]
H A DNoLockFactory.java9 * the License. You may obtain a copy of the License at
60 public boolean obtain() throws IOException { method in class:NoLock
H A DSingleInstanceLockFactory.java9 * the License. You may obtain a copy of the License at
67 public boolean obtain() throws IOException { method in class:SingleInstanceLock
H A DSimpleFSLockFactory.java9 * the License. You may obtain a copy of the License at
116 public boolean obtain() throws IOException { method in class:SimpleFSLock
H A DVerifyingLockFactory.java9 * the License. You may obtain a copy of the License at
27 * LockFactory} and verifies that each lock obtain/release
72 public synchronized boolean obtain(long lockWaitTimeout) method in class:VerifyingLockFactory.CheckedLock
74 boolean obtained = lock.obtain(lockWaitTimeout);
81 public synchronized boolean obtain() method in class:VerifyingLockFactory.CheckedLock
83 return lock.obtain();
H A DNativeFSLockFactory.java9 * the License. You may obtain a copy of the License at
161 public synchronized boolean obtain() throws IOException { method in class:NativeFSLock
194 // thread trying to obtain this lock, so we own
225 // reason here; the timeout obtain (usually the
289 // to obtain the lock and release it. If the obtain fails, it means the
294 if (!(obtained = obtain())) {
317 // Try to obtain and release (if was locked) the lock
319 boolean obtained = obtain();
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/store/
H A DTestLock.java9 * the License. You may obtain a copy of the License at
31 lock.obtain(Lock.LOCK_POLL_INTERVAL);
32 fail("Should have failed to obtain lock");
42 public boolean obtain() { method in class:TestLock.LockMock
H A DTestLockFactory.java9 * the License. You may obtain a copy of the License at
68 assertTrue("# calls to Lock.obtain is 0 (after instantiating IndexWriter)",
184 assertTrue("failed to obtain lock", l.obtain());
185 assertTrue("succeeded in obtaining lock twice", !l2.obtain());
188 assertTrue("failed to obtain 2nd lock after first one was freed", l2.obtain());
191 // Make sure we can obtain first one again, test isLocked():
192 assertTrue("failed to obtain lock", l.obtain());
406 public boolean obtain() { method in class:TestLockFactory.MockLockFactory.MockLock
[all...]
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/store/
H A DTestLock.java9 * the License. You may obtain a copy of the License at
31 lock.obtain(Lock.LOCK_POLL_INTERVAL);
32 fail("Should have failed to obtain lock");
42 public boolean obtain() { method in class:TestLock.LockMock
H A DTestLockFactory.java9 * the License. You may obtain a copy of the License at
68 assertTrue("# calls to Lock.obtain is 0 (after instantiating IndexWriter)",
182 assertTrue("failed to obtain lock", l.obtain());
183 assertTrue("succeeded in obtaining lock twice", !l2.obtain());
186 assertTrue("failed to obtain 2nd lock after first one was freed", l2.obtain());
189 // Make sure we can obtain first one again, test isLocked():
190 assertTrue("failed to obtain lock", l.obtain());
404 public boolean obtain() { method in class:TestLockFactory.MockLockFactory.MockLock
[all...]
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/store/
H A DMockLockFactoryWrapper.java9 * the License. You may obtain a copy of the License at
71 public boolean obtain() throws IOException { method in class:MockLockFactoryWrapper.MockLock
72 if (delegateLock.obtain()) {
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/store/
H A DMockLockFactoryWrapper.java9 * the License. You may obtain a copy of the License at
67 public boolean obtain() throws IOException { method in class:MockLockFactoryWrapper.MockLock
68 if (delegateLock.obtain()) {

Completed in 1796 milliseconds