public class org.apache.cassandra.thrift.TServerCustomFactory implements org.apache.cassandra.thrift.TServerFactory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.thrift.TServerCustomFactory
super_class: java.lang.Object
{
private static org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private final java.lang.String serverType;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/thrift/TServerCustomFactory;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.apache.cassandra.thrift.TServerCustomFactory.$assertionsDisabled:Z
3: ldc Lorg/apache/cassandra/thrift/TServerCustomFactory;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.thrift.TServerCustomFactory.logger:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: getstatic org.apache.cassandra.thrift.TServerCustomFactory.$assertionsDisabled:Z
ifne 2
aload 1
ifnonnull 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals: org.apache.cassandra.thrift.TServerCustomFactory java.lang.String
StackMap stack:
aload 0
aload 1
putfield org.apache.cassandra.thrift.TServerCustomFactory.serverType:Ljava/lang/String;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/thrift/TServerCustomFactory;
0 4 1 serverType Ljava/lang/String;
MethodParameters:
Name Flags
serverType
public org.apache.thrift.server.TServer buildTServer(org.apache.cassandra.thrift.TServerFactory$Args);
descriptor: (Lorg/apache/cassandra/thrift/TServerFactory$Args;)Lorg/apache/thrift/server/TServer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=2
start local 0 start local 1 0: ldc "sync"
aload 0
getfield org.apache.cassandra.thrift.TServerCustomFactory.serverType:Ljava/lang/String;
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 3
1: new org.apache.cassandra.thrift.CustomTThreadPoolServer$Factory
dup
invokespecial org.apache.cassandra.thrift.CustomTThreadPoolServer$Factory.<init>:()V
aload 1
invokevirtual org.apache.cassandra.thrift.CustomTThreadPoolServer$Factory.buildTServer:(Lorg/apache/cassandra/thrift/TServerFactory$Args;)Lorg/apache/thrift/server/TServer;
astore 2
start local 2 2: goto 17
end local 2 3: StackMap locals:
StackMap stack:
ldc "async"
aload 0
getfield org.apache.cassandra.thrift.TServerCustomFactory.serverType:Ljava/lang/String;
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 7
4: new org.apache.cassandra.thrift.CustomTNonBlockingServer$Factory
dup
invokespecial org.apache.cassandra.thrift.CustomTNonBlockingServer$Factory.<init>:()V
aload 1
invokevirtual org.apache.cassandra.thrift.CustomTNonBlockingServer$Factory.buildTServer:(Lorg/apache/cassandra/thrift/TServerFactory$Args;)Lorg/apache/thrift/server/TServer;
astore 2
start local 2 5: getstatic org.apache.cassandra.thrift.TServerCustomFactory.logger:Lorg/slf4j/Logger;
ldc "Using non-blocking/asynchronous thrift server on {} : {}"
aload 1
getfield org.apache.cassandra.thrift.TServerFactory$Args.addr:Ljava/net/InetSocketAddress;
invokevirtual java.net.InetSocketAddress.getHostName:()Ljava/lang/String;
aload 1
getfield org.apache.cassandra.thrift.TServerFactory$Args.addr:Ljava/net/InetSocketAddress;
invokevirtual java.net.InetSocketAddress.getPort:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
6: goto 17
end local 2 7: StackMap locals:
StackMap stack:
ldc "hsha"
aload 0
getfield org.apache.cassandra.thrift.TServerCustomFactory.serverType:Ljava/lang/String;
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 11
8: new org.apache.cassandra.thrift.THsHaDisruptorServer$Factory
dup
invokespecial org.apache.cassandra.thrift.THsHaDisruptorServer$Factory.<init>:()V
aload 1
invokevirtual org.apache.cassandra.thrift.THsHaDisruptorServer$Factory.buildTServer:(Lorg/apache/cassandra/thrift/TServerFactory$Args;)Lorg/apache/thrift/server/TServer;
astore 2
start local 2 9: getstatic org.apache.cassandra.thrift.TServerCustomFactory.logger:Lorg/slf4j/Logger;
ldc "Using custom half-sync/half-async thrift server on {} : {}"
aload 1
getfield org.apache.cassandra.thrift.TServerFactory$Args.addr:Ljava/net/InetSocketAddress;
invokevirtual java.net.InetSocketAddress.getHostName:()Ljava/lang/String;
aload 1
getfield org.apache.cassandra.thrift.TServerFactory$Args.addr:Ljava/net/InetSocketAddress;
invokevirtual java.net.InetSocketAddress.getPort:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
10: goto 17
end local 2 11: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.thrift.TServerCustomFactory.serverType:Ljava/lang/String;
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
checkcast org.apache.cassandra.thrift.TServerFactory
astore 3
start local 3 12: goto 15
end local 3 13: StackMap locals:
StackMap stack: java.lang.Exception
astore 4
start local 4 14: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "Failed to instantiate server factory:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.cassandra.thrift.TServerCustomFactory.serverType:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 4
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 start local 3 15: StackMap locals: org.apache.cassandra.thrift.TServerCustomFactory org.apache.cassandra.thrift.TServerFactory$Args top org.apache.cassandra.thrift.TServerFactory
StackMap stack:
aload 3
aload 1
invokeinterface org.apache.cassandra.thrift.TServerFactory.buildTServer:(Lorg/apache/cassandra/thrift/TServerFactory$Args;)Lorg/apache/thrift/server/TServer;
astore 2
start local 2 16: getstatic org.apache.cassandra.thrift.TServerCustomFactory.logger:Lorg/slf4j/Logger;
ldc "Using custom thrift server {} on {} : {}"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
aastore
dup
iconst_1
aload 1
getfield org.apache.cassandra.thrift.TServerFactory$Args.addr:Ljava/net/InetSocketAddress;
invokevirtual java.net.InetSocketAddress.getHostName:()Ljava/lang/String;
aastore
dup
iconst_2
aload 1
getfield org.apache.cassandra.thrift.TServerFactory$Args.addr:Ljava/net/InetSocketAddress;
invokevirtual java.net.InetSocketAddress.getPort:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 3 17: StackMap locals: org.apache.cassandra.thrift.TServerCustomFactory org.apache.cassandra.thrift.TServerFactory$Args org.apache.thrift.server.TServer
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/apache/cassandra/thrift/TServerCustomFactory;
0 18 1 args Lorg/apache/cassandra/thrift/TServerFactory$Args;
2 3 2 server Lorg/apache/thrift/server/TServer;
5 7 2 server Lorg/apache/thrift/server/TServer;
9 11 2 server Lorg/apache/thrift/server/TServer;
16 18 2 server Lorg/apache/thrift/server/TServer;
12 13 3 serverFactory Lorg/apache/cassandra/thrift/TServerFactory;
15 17 3 serverFactory Lorg/apache/cassandra/thrift/TServerFactory;
14 15 4 e Ljava/lang/Exception;
Exception table:
from to target type
11 12 13 Class java.lang.Exception
MethodParameters:
Name Flags
args
}
SourceFile: "TServerCustomFactory.java"
InnerClasses:
public Factory = org.apache.cassandra.thrift.CustomTNonBlockingServer$Factory of org.apache.cassandra.thrift.CustomTNonBlockingServer
public Factory = org.apache.cassandra.thrift.CustomTThreadPoolServer$Factory of org.apache.cassandra.thrift.CustomTThreadPoolServer
public Factory = org.apache.cassandra.thrift.THsHaDisruptorServer$Factory of org.apache.cassandra.thrift.THsHaDisruptorServer
public Args = org.apache.cassandra.thrift.TServerFactory$Args of org.apache.cassandra.thrift.TServerFactory