target.classes.com.thinkaurelius.thrift.TDisruptorServer.class Maven / Gradle / Ivy
???? 3x U ? U ? U ? U ? U ?
Z ?
? ?
? ?
f ?
? ?
f ?
f ?
f ? U ? ? U ? ? ?
? ?
?
? ? ?
?
?
f ? U ? ? ? ?
f ? ? U ? U ? U ?
? ? U ? ?
? U ? ?
$ ? ? ? ?
, U
U
/
5
8 ?
,
/
? ?
$
U
U
/
G ?
G
/
$
/
/ !
P ?
?"
/#$%
&'(
W)*+, RandomSelectorLoadBalancer InnerClasses- SelectorLoadBalancer. InvocationHandler SelectorThread AcceptorThread/ AbstractSelectorThread0 Args logger Lorg/slf4j/Logger; isJNAPresent Z
MBEAN_NAME Ljava/lang/String;
ConstantValue acceptorThreads ;[Lcom/thinkaurelius/thrift/TDisruptorServer$AcceptorThread; selectorThreads ;[Lcom/thinkaurelius/thrift/TDisruptorServer$SelectorThread; selectorLoadBalancer @Lcom/thinkaurelius/thrift/TDisruptorServer$SelectorLoadBalancer; thriftFactories /Lcom/thinkaurelius/thrift/util/ThriftFactories; useHeapBasedAllocation isStopped 3(Lcom/thinkaurelius/thrift/TDisruptorServer$Args;)V Code LineNumberTable LocalVariableTable i I e Ljava/io/IOException; Ljava/lang/Exception; this +Lcom/thinkaurelius/thrift/TDisruptorServer; args 0Lcom/thinkaurelius/thrift/TDisruptorServer$Args; numCores numAcceptors numSelectors numWorkersPerSelector ringSize mbs Ljavax/management/MBeanServer;
StackMapTable%0 ?1 startThreads ()Z waitForShutdown ()V joinSelector selector :Lcom/thinkaurelius/thrift/TDisruptorServer$SelectorThread; arr$ len$ i$ Ljava/lang/InterruptedException; r gracefullyShutdownInvokerPool stop acceptor :Lcom/thinkaurelius/thrift/TDisruptorServer$AcceptorThread; p
requestInvoke3 FrameBuffer C(Lorg/apache/thrift/server/AbstractNonblockingServer$FrameBuffer;)Z frameBuffer @Lorg/apache/thrift/server/AbstractNonblockingServer$FrameBuffer; beforeInvoke %(Lcom/thinkaurelius/thrift/Message;)V beforeClose buffer "Lcom/thinkaurelius/thrift/Message; nextPowerOfTwo (I)I v getRingBufferSize ()I getNumberOfSelectors isHeapBasedAllocationUsed (Z)V flag
access$500 .(Lcom/thinkaurelius/thrift/TDisruptorServer;)Z x0
access$600 ()Lorg/slf4j/Logger;
access$502 /(Lcom/thinkaurelius/thrift/TDisruptorServer;Z)Z x1
access$700 m(Lcom/thinkaurelius/thrift/TDisruptorServer;)Lcom/thinkaurelius/thrift/TDisruptorServer$SelectorLoadBalancer;
access$800 \(Lcom/thinkaurelius/thrift/TDisruptorServer;)Lcom/thinkaurelius/thrift/util/ThriftFactories;
access$900 Ljava/lang/NoClassDefFoundError; jna*
SourceFile TDisruptorServer.java w k u v s t h i x k y6789: ?;<=> ??<@<A<BCD 5com/thinkaurelius/thrift/util/TBinaryProtocol$Factory FactoryEC "java/lang/IllegalArgumentException java/lang/StringBuilder y ? Please use FGHIJ ( or it's subclass as protocol factories.KJ yLMN j k iOff-heap allocation couldn't be used as JNA is not present in classpath or broken, using on-heap instead.OPLQR -com/thinkaurelius/thrift/util/ThriftFactoriesSTUTVW yX 8com/thinkaurelius/thrift/TDisruptorServer$AcceptorThread o p Thrift-Acceptor_FYZ[ 7org/apache/thrift/transport/TNonblockingServerTransport y\ java/io/IOException java/lang/RuntimeException !Could not create acceptor threads y] 8com/thinkaurelius/thrift/TDisruptorServer$SelectorThread q r Thrift-Selector_ ? ? y^ !Could not create selector threads Dcom/thinkaurelius/thrift/TDisruptorServer$RandomSelectorLoadBalancer y_`ab javax/management/ObjectName 5com.thinkaurelius.thrift.server:type=TDisruptorServer1cd java/lang/Exception yef ? %Thrift Selector thread {} is started.ghij %Thrift Acceptor thread {} is started. ? ? ? ?k ? java/lang/InterruptedException Interruption: lJmLn ?o ?p ? x ? 'java/lang/UnsupportedOperationExceptionq ? ? ? DOff-Heap allocation method could not be used because JNA is missing. )com/thinkaurelius/thrift/TDisruptorServerrst com/sun/jna/Pointer yu java/lang/NoClassDefFoundError +org/apache/thrift/server/TNonblockingServer .com/thinkaurelius/thrift/TDisruptorServerMBean >com/thinkaurelius/thrift/TDisruptorServer$SelectorLoadBalancer ;com/thinkaurelius/thrift/TDisruptorServer$InvocationHandler @com/thinkaurelius/thrift/TDisruptorServer$AbstractSelectorThread .com/thinkaurelius/thrift/TDisruptorServer$Args javax/management/MBeanServerv >org/apache/thrift/server/AbstractNonblockingServer$FrameBufferw AbstractNonblockingServerArgs U(Lorg/apache/thrift/server/AbstractNonblockingServer$AbstractNonblockingServerArgs;)V java/lang/Runtime
getRuntime ()Ljava/lang/Runtime; availableProcessors
access$000 E(Lcom/thinkaurelius/thrift/TDisruptorServer$Args;)Ljava/lang/Integer; java/lang/Integer intValue
access$100
access$200
access$300 inputProtocolFactory_ -Lorg/apache/thrift/protocol/TProtocolFactory; -com/thinkaurelius/thrift/util/TBinaryProtocol outputProtocolFactory_ append -(Ljava/lang/String;)Ljava/lang/StringBuilder; java/lang/Class getCanonicalName ()Ljava/lang/String; toString (Ljava/lang/String;)V
access$400 3(Lcom/thinkaurelius/thrift/TDisruptorServer$Args;)Z org/slf4j/Logger warn
access$402 4(Lcom/thinkaurelius/thrift/TDisruptorServer$Args;Z)Z inputTransportFactory_ /Lorg/apache/thrift/transport/TTransportFactory; outputTransportFactory_ processorFactory_ %Lorg/apache/thrift/TProcessorFactory; ?(Lorg/apache/thrift/transport/TTransportFactory;Lorg/apache/thrift/transport/TTransportFactory;Lorg/apache/thrift/protocol/TProtocolFactory;Lorg/apache/thrift/protocol/TProtocolFactory;Lorg/apache/thrift/TProcessorFactory;)V (I)Ljava/lang/StringBuilder; serverTransport_ .Lorg/apache/thrift/transport/TServerTransport; y(Lcom/thinkaurelius/thrift/TDisruptorServer;Ljava/lang/String;Lorg/apache/thrift/transport/TNonblockingServerTransport;)V *(Ljava/lang/String;Ljava/lang/Throwable;)V B(Lcom/thinkaurelius/thrift/TDisruptorServer;Ljava/lang/String;II)V >([Lcom/thinkaurelius/thrift/TDisruptorServer$SelectorThread;)V &java/lang/management/ManagementFactory getPlatformMBeanServer ()Ljavax/management/MBeanServer;
registerMBean R(Ljava/lang/Object;Ljavax/management/ObjectName;)Ljavax/management/ObjectInstance; (Ljava/lang/Throwable;)V start valueOf (I)Ljava/lang/Integer; debug '(Ljava/lang/String;Ljava/lang/Object;)V join
getMessage error printStackTrace shutdown wakeupSelector numberOfLeadingZeros org/slf4j/LoggerFactory getLogger %(Ljava/lang/Class;)Lorg/slf4j/Logger; (J)V 2org/apache/thrift/server/AbstractNonblockingServer Porg/apache/thrift/server/AbstractNonblockingServer$AbstractNonblockingServerArgs! U Z [ h i j k l m n 9 o p q r s t u v B w k B x k y z { U ?*+? ? ? =+? ? ?
+? ?
>+? ? ?
+? ?
6+? ? ?
+? ?
6+?
? ?
+?
?
6*? ? ?
*? ? ? (? Y? Y? ? ? ? ? ? ? ?+? ? ? ? ? ? +? W*+? ? *? Y*? *? !*? *? *? "? #? *? $? %6? 3*? %? $Y*? Y? &? ? '? *? (? )? *S???ͧ :? ,Y-? .?*? /? 06? 3*? 0? /Y*? Y? 1? ? '? ? 2? 3S???̧ :? ,Y4? .?*? 5Y*? 0? 6? ? 7:*? 8Y9? :? ; W? :? ,Y? =?? ? +,or +??? <