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 FSLockFactorygetNewLockFactory(String lockFactoryClassName) static voidprivate static intrun(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:
IOExceptionInterruptedException
-
getNewLockFactory
- Throws:
IOException
-