com.groupbyinc.flux.common.apache.lucene.store.LockVerifyServer.class Maven / Gradle / Ivy
???? 4 ? ?com/groupbyinc/flux/common/apache/lucene/store/LockVerifyServer java/lang/Object LockVerifyServer.java Acom/groupbyinc/flux/common/apache/lucene/store/LockVerifyServer$1 ()V
this ALcom/groupbyinc/flux/common/apache/lucene/store/LockVerifyServer; main ([Ljava/lang/String;)V java/lang/Exception ALcom/groupbyinc/flux/common/apache/lucene/util/SuppressForbidden; reason &System.out required: command line tool java/lang/Throwable java/lang/System out Ljava/io/PrintStream; FUsage: java org.apache.lucene.store.LockVerifyServer bindToIp clients
java/io/PrintStream println (Ljava/lang/String;)V ! "
# exit (I)V % &
' java/lang/Integer ) parseInt (Ljava/lang/String;)I + ,
* - java/net/ServerSocket /
0
setReuseAddress (Z)V 2 3
0 4 setSoTimeout 6 &
0 7 java/net/InetSocketAddress 9 (Ljava/lang/String;I)V ;
: < bind (Ljava/net/SocketAddress;)V > ?
0 @ getLocalSocketAddress ()Ljava/net/SocketAddress; B C
0 D java/lang/StringBuilder F
G
Listening on I append -(Ljava/lang/String;)Ljava/lang/StringBuilder; K L
G M -(Ljava/lang/Object;)Ljava/lang/StringBuilder; K O
G P ... R toString ()Ljava/lang/String; T U
G V lockverifyserver.port X getPort ()I Z [
: \ (I)Ljava/lang/String; T ^
* _ setProperty 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; a b
c #java/util/concurrent/CountDownLatch e &
f g java/lang/Thread i [Ljava/lang/String; k java/lang/String m [I o [Ljava/lang/Thread; q accept ()Ljava/net/Socket; s t
0 u M(Ljava/net/Socket;Ljava/util/concurrent/CountDownLatch;Ljava/lang/Object;[I)V w
x start z
j { All clients started, fire gun... } countDown
f ? join ?
j ?
clearProperty &(Ljava/lang/String;)Ljava/lang/String; ? ?
? Server terminated. ? close ?
0 ?
addSuppressed (Ljava/lang/Throwable;)V ? ?
? cs Ljava/net/Socket; count I t Ljava/lang/Thread; localAddr Ljava/net/InetSocketAddress; localLock Ljava/lang/Object; lockedID startingGun %Ljava/util/concurrent/CountDownLatch; threads s Ljava/net/ServerSocket; args arg hostname Ljava/lang/String;
maxClients Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions RuntimeInvisibleAnnotations
SourceFile InnerClasses ! ? / *? ? ?
? ) ? Q q*?? ? ? $? (<*?2M*?2? .>? 0Y? 1::? 5u0? 8? :Y,? =? A? E? ::? ? GY? HJ? N? QS? N? W? $Y? ]? `? dW? Y? :?
:O? fY? h: ? j:
6? ,? v:
? Y ? yS
2? |???Բ ~? $ ? ?
:?66
?
2:? ??
???Y? ?W? ?? $? U? ? ?? H:? ?? <? ?? 4::?:? !? ? ?? :? ?? ? ??? #(+ 1? 1H TY\ ?JH ? ?
? ? ? ? / ? ? ? ? W ? ? ? ? ? ? ? ? ? ? o ? x ? ? ? r ? q
.B ? ? q ? k ] ? ? V ? ? %L ? ? ? ? " . / 0 3 4 5 % 7 1 8 7 9 ? : M ; W <