- java.lang.Object
-
- org.apache.lucene.store.LockStressTest
-
public class LockStressTest extends java.lang.Object
Simple standalone tool that forever acquires and releases a lock using a specificLockFactory
. Run without any args to see usage.- See Also:
VerifyingLockFactory
,LockVerifyServer
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.String
LOCK_FILE_NAME
-
Constructor Summary
Constructors Constructor Description LockStressTest()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static FSLockFactory
getNewLockFactory(java.lang.String lockFactoryClassName)
static void
main(java.lang.String[] args)
private static int
run(int myID, java.lang.String verifierHost, int verifierPort, java.lang.String lockFactoryClassName, java.nio.file.Path lockDirPath, int sleepTimeMS, int count)
-
-
-
Field Detail
-
LOCK_FILE_NAME
static final java.lang.String LOCK_FILE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
- Throws:
java.lang.Exception
-
run
private static int run(int myID, java.lang.String verifierHost, int verifierPort, java.lang.String lockFactoryClassName, java.nio.file.Path lockDirPath, int sleepTimeMS, int count) throws java.io.IOException, java.lang.InterruptedException
- Throws:
java.io.IOException
java.lang.InterruptedException
-
getNewLockFactory
private static FSLockFactory getNewLockFactory(java.lang.String lockFactoryClassName) throws java.io.IOException
- Throws:
java.io.IOException
-
-