Package org.apache.lucene.store
Class LockVerifyServer
- java.lang.Object
-
- org.apache.lucene.store.LockVerifyServer
-
public class LockVerifyServer extends java.lang.Object
Simple standalone server that must be running when you useVerifyingLockFactory
. This server simply verifies at most one process holds the lock at a time. Run without any args to see usage.- See Also:
VerifyingLockFactory
,LockStressTest
-
-
Field Summary
Fields Modifier and Type Field Description static int
START_GUN_SIGNAL
-
Constructor Summary
Constructors Constructor Description LockVerifyServer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
(package private) static void
run(java.lang.String hostname, int maxClients, java.util.function.Consumer<java.net.InetSocketAddress> startClients)
-
-
-
Field Detail
-
START_GUN_SIGNAL
public static final int START_GUN_SIGNAL
- See Also:
- Constant Field Values
-
-
Method Detail
-
run
static void run(java.lang.String hostname, int maxClients, java.util.function.Consumer<java.net.InetSocketAddress> startClients) throws java.lang.Exception
- Throws:
java.lang.Exception
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-