All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.common.http.impl.bootstrap.HttpServer.class Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
????2$9com/groupbyinc/flux/common/http/impl/bootstrap/HttpServerjava/lang/ObjectHttpServer.java@com/groupbyinc/flux/common/http/impl/bootstrap/HttpServer$StatusStatusportI	ifAddressLjava/net/InetAddress;socketConfig5Lcom/groupbyinc/flux/common/http/config/SocketConfig;serverSocketFactoryLjavax/net/ServerSocketFactory;httpService6Lcom/groupbyinc/flux/common/http/protocol/HttpService;connectionFactory7Lcom/groupbyinc/flux/common/http/HttpConnectionFactory;}Lcom/groupbyinc/flux/common/http/HttpConnectionFactory<+Lcom/groupbyinc/flux/common/http/impl/DefaultBHttpServerConnection;>;sslSetupHandlerFLcom/groupbyinc/flux/common/http/impl/bootstrap/SSLServerSetupHandler;exceptionLogger1Lcom/groupbyinc/flux/common/http/ExceptionLogger;listenerExecutorService)Ljava/util/concurrent/ThreadPoolExecutor;
workerThreadsLjava/lang/ThreadGroup;workerExecutorServiceCLcom/groupbyinc/flux/common/http/impl/bootstrap/WorkerPoolExecutor;status-Ljava/util/concurrent/atomic/AtomicReference;qLjava/util/concurrent/atomic/AtomicReference;serverSocketLjava/net/ServerSocket;requestListener@Lcom/groupbyinc/flux/common/http/impl/bootstrap/RequestListener;R(ILjava/net/InetAddress;Lcom/groupbyinc/flux/common/http/config/SocketConfig;Ljavax/net/ServerSocketFactory;Lcom/groupbyinc/flux/common/http/protocol/HttpService;Lcom/groupbyinc/flux/common/http/HttpConnectionFactory;Lcom/groupbyinc/flux/common/http/impl/bootstrap/SSLServerSetupHandler;Lcom/groupbyinc/flux/common/http/ExceptionLogger;)V()V')
*	
	,	.
	0	2	4	6	8	:'java/util/concurrent/ThreadPoolExecutor<java/util/concurrent/TimeUnit>MILLISECONDSLjava/util/concurrent/TimeUnit;@A	?B%java/util/concurrent/SynchronousQueueD
E*@com/groupbyinc/flux/common/http/impl/bootstrap/ThreadFactoryImplGjava/lang/StringBuilderI
J*HTTP-listener-Lappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;NO
JP(I)Ljava/lang/StringBuilder;NR
JStoString()Ljava/lang/String;UV
JW(Ljava/lang/String;)V'Y
HZm(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V'\
=]	_java/lang/ThreadGroupaHTTP-workersc
bZ	fAcom/groupbyinc/flux/common/http/impl/bootstrap/WorkerPoolExecutorh???SECONDSkA	?lHTTP-workern,(Ljava/lang/String;Ljava/lang/ThreadGroup;)V'p
Hq
i]	t+java/util/concurrent/atomic/AtomicReferencevREADYBLcom/groupbyinc/flux/common/http/impl/bootstrap/HttpServer$Status;xy	z(Ljava/lang/Object;)V'|
w} !	this;Lcom/groupbyinc/flux/common/http/impl/bootstrap/HttpServer;getInetAddress()Ljava/net/InetAddress;#$	?java/net/ServerSocket???
??localSocketgetLocalPort()I??
??startjava/io/IOException?ACTIVE?y	?
compareAndSet'(Ljava/lang/Object;Ljava/lang/Object;)Z??
w?3com/groupbyinc/flux/common/http/config/SocketConfig?getBacklogSize??
??javax/net/ServerSocketFactory?createServerSocket1(IILjava/net/InetAddress;)Ljava/net/ServerSocket;??
??isSoReuseAddress()Z??
??setReuseAddress(Z)V??
??
getRcvBufSize??
??setReceiveBufferSize(I)V??
??javax/net/ssl/SSLServerSocket?Dcom/groupbyinc/flux/common/http/impl/bootstrap/SSLServerSetupHandler?
initialize"(Ljavax/net/ssl/SSLServerSocket;)V????>com/groupbyinc/flux/common/http/impl/bootstrap/RequestListener?(Lcom/groupbyinc/flux/common/http/config/SocketConfig;Ljava/net/ServerSocket;Lcom/groupbyinc/flux/common/http/protocol/HttpService;Lcom/groupbyinc/flux/common/http/HttpConnectionFactory;Lcom/groupbyinc/flux/common/http/ExceptionLogger;Ljava/util/concurrent/ExecutorService;)V'?
??%&	?execute(Ljava/lang/Runnable;)V??
=?stopSTOPPING?y	?shutdown?)
=?
i?	terminate?)
??/com/groupbyinc/flux/common/http/ExceptionLogger?log(Ljava/lang/Exception;)V????	interrupt?)
b?exLjava/io/IOException;localawaitTermination#(JLjava/util/concurrent/TimeUnit;)Vjava/lang/InterruptedException?#(JLjava/util/concurrent/TimeUnit;)Z??
i?timeoutJtimeUnit?)
???
?java/lang/Thread?
currentThread()Ljava/lang/Thread;??
??
??
getWorkers()Ljava/util/Set;??
i?
java/util/Set?iterator()Ljava/util/Iterator;????java/util/Iterator?hasNext???next()Ljava/lang/Object;?5com/groupbyinc/flux/common/http/impl/bootstrap/Worker
getConnection8()Lcom/groupbyinc/flux/common/http/HttpServerConnection;	

4com/groupbyinc/flux/common/http/HttpServerConnection
? Ljava/lang/InterruptedException;conn6Lcom/groupbyinc/flux/common/http/HttpServerConnection;worker7Lcom/groupbyinc/flux/common/http/impl/bootstrap/Worker;i$Ljava/util/Iterator;gracePeriodworkersHLjava/util/Set;Ljava/util/Set;	SignatureCodeLocalVariableTableLocalVariableTypeTableLineNumberTable?(ILjava/net/InetAddress;Lcom/groupbyinc/flux/common/http/config/SocketConfig;Ljavax/net/ServerSocketFactory;Lcom/groupbyinc/flux/common/http/protocol/HttpService;Lcom/groupbyinc/flux/common/http/HttpConnectionFactory<+Lcom/groupbyinc/flux/common/http/impl/DefaultBHttpServerConnection;>;Lcom/groupbyinc/flux/common/http/impl/bootstrap/SSLServerSetupHandler;Lcom/groupbyinc/flux/common/http/ExceptionLogger;)V
StackMapTable
Exceptions
SourceFileInnerClasses!	

 !"B#$B%&'(h
	?*?+*?-*,?/*-?1*?3*?5*?7*?9*?;*?=Y	?C?EY?F?HY?JY?KM?Q*?-?T?X?[?^?`*?bYd?e?g*?iYj
?m?EY?F?HYo*?g?r?s?u*?wY?{?~???\	????	
??
??????:OP	QRSTU%V+W1Xf\s]?a?b??^*??L+?+???????$ef	gi ????^*??L+?+???????$no	pr ???)?	?*???{??????**?3*?-*?1??*?/????*??*?1????*?1???*??*?1????*?9?*?????*?9*??????*??Y*?1*??*?5*?7*?;*?u????*?`*?¶Ʊ???*
wx*z8{B|P~aq????? ?P -!??)?A*?????ʶ??3*?`??*?u??*??L+?+?ѧM*?;,??*?g?ڱ'+.? /
??#?&A??.????#?'?+?.?/?9?@? ?.??
???M*?u-??W? ?????A
?
?!???r	e*??	??*-??:???*?u??:??:??0??:?:??:*?;????̱
?JQT?\	?V??JC-7e??e?e?A$A$A>??
?????$?C?J?Q?T?V?a?d? 3S?????&???
???"#
@




© 2015 - 2024 Weber Informatics LLC | Privacy Policy