Package org.apache.lucene.store
Class LockStressTest
java.lang.Object
org.apache.lucene.store.LockStressTest
Simple standalone tool that forever acquires and releases a lock using a specific
LockFactory
. Run without any args to see usage.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static FSLockFactory
getNewLockFactory
(String lockFactoryClassName) static void
private static int
run
(int myID, String verifierHost, int verifierPort, String lockFactoryClassName, Path lockDirPath, int sleepTimeMS, int count)
-
Field Details
-
LOCK_FILE_NAME
- See Also:
-
-
Constructor Details
-
LockStressTest
public LockStressTest()
-
-
Method Details
-
main
- Throws:
Exception
-
run
private static int run(int myID, String verifierHost, int verifierPort, String lockFactoryClassName, Path lockDirPath, int sleepTimeMS, int count) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
getNewLockFactory
- Throws:
IOException
-