public class org.apache.cassandra.service.NativeTransportService
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.service.NativeTransportService
super_class: java.lang.Object
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private java.util.Collection<org.apache.cassandra.transport.Server> servers;
descriptor: Ljava/util/Collection;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Collection<Lorg/apache/cassandra/transport/Server;>;
private boolean initialized;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private io.netty.channel.EventLoopGroup workerGroup;
descriptor: Lio/netty/channel/EventLoopGroup;
flags: (0x0002) ACC_PRIVATE
private org.apache.cassandra.transport.ConfiguredLimit protocolVersionLimit;
descriptor: Lorg/apache/cassandra/transport/ConfiguredLimit;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/service/NativeTransportService;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.service.NativeTransportService.logger:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
putfield org.apache.cassandra.service.NativeTransportService.servers:Ljava/util/Collection;
2: aload 0
iconst_0
putfield org.apache.cassandra.service.NativeTransportService.initialized:Z
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/service/NativeTransportService;
synchronized void initialize();
descriptor: ()V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=6, locals=5, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.service.NativeTransportService.initialized:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
invokestatic org.apache.cassandra.service.NativeTransportService.useEpoll:()Z
ifeq 6
3: aload 0
new io.netty.channel.epoll.EpollEventLoopGroup
dup
invokespecial io.netty.channel.epoll.EpollEventLoopGroup.<init>:()V
putfield org.apache.cassandra.service.NativeTransportService.workerGroup:Lio/netty/channel/EventLoopGroup;
4: getstatic org.apache.cassandra.service.NativeTransportService.logger:Lorg/slf4j/Logger;
ldc "Netty using native Epoll event loop"
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;)V
5: goto 8
6: StackMap locals:
StackMap stack:
aload 0
new io.netty.channel.nio.NioEventLoopGroup
dup
invokespecial io.netty.channel.nio.NioEventLoopGroup.<init>:()V
putfield org.apache.cassandra.service.NativeTransportService.workerGroup:Lio/netty/channel/EventLoopGroup;
7: getstatic org.apache.cassandra.service.NativeTransportService.logger:Lorg/slf4j/Logger;
ldc "Netty using Java NIO event loop"
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;)V
8: StackMap locals:
StackMap stack:
aload 0
invokestatic org.apache.cassandra.transport.ConfiguredLimit.newLimit:()Lorg/apache/cassandra/transport/ConfiguredLimit;
putfield org.apache.cassandra.service.NativeTransportService.protocolVersionLimit:Lorg/apache/cassandra/transport/ConfiguredLimit;
9: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getNativeTransportPort:()I
istore 1
start local 1 10: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getNativeTransportPortSSL:()I
istore 2
start local 2 11: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getRpcAddress:()Ljava/net/InetAddress;
astore 3
start local 3 12: new org.apache.cassandra.transport.Server$Builder
dup
invokespecial org.apache.cassandra.transport.Server$Builder.<init>:()V
13: aload 0
getfield org.apache.cassandra.service.NativeTransportService.workerGroup:Lio/netty/channel/EventLoopGroup;
invokevirtual org.apache.cassandra.transport.Server$Builder.withEventLoopGroup:(Lio/netty/channel/EventLoopGroup;)Lorg/apache/cassandra/transport/Server$Builder;
14: aload 0
getfield org.apache.cassandra.service.NativeTransportService.protocolVersionLimit:Lorg/apache/cassandra/transport/ConfiguredLimit;
invokevirtual org.apache.cassandra.transport.Server$Builder.withProtocolVersionLimit:(Lorg/apache/cassandra/transport/ProtocolVersionLimit;)Lorg/apache/cassandra/transport/Server$Builder;
15: aload 3
invokevirtual org.apache.cassandra.transport.Server$Builder.withHost:(Ljava/net/InetAddress;)Lorg/apache/cassandra/transport/Server$Builder;
16: astore 4
start local 4 17: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getClientEncryptionOptions:()Lorg/apache/cassandra/config/EncryptionOptions$ClientEncryptionOptions;
getfield org.apache.cassandra.config.EncryptionOptions$ClientEncryptionOptions.enabled:Z
ifne 20
18: aload 0
aload 4
iconst_0
invokevirtual org.apache.cassandra.transport.Server$Builder.withSSL:(Z)Lorg/apache/cassandra/transport/Server$Builder;
iload 1
invokevirtual org.apache.cassandra.transport.Server$Builder.withPort:(I)Lorg/apache/cassandra/transport/Server$Builder;
invokevirtual org.apache.cassandra.transport.Server$Builder.build:()Lorg/apache/cassandra/transport/Server;
invokestatic java.util.Collections.singleton:(Ljava/lang/Object;)Ljava/util/Set;
putfield org.apache.cassandra.service.NativeTransportService.servers:Ljava/util/Collection;
19: goto 28
20: StackMap locals: org.apache.cassandra.service.NativeTransportService int int java.net.InetAddress org.apache.cassandra.transport.Server$Builder
StackMap stack:
iload 1
iload 2
if_icmpeq 27
21: aload 0
iconst_2
anewarray org.apache.cassandra.transport.Server
dup
iconst_0
22: aload 4
iconst_0
invokevirtual org.apache.cassandra.transport.Server$Builder.withSSL:(Z)Lorg/apache/cassandra/transport/Server$Builder;
iload 1
invokevirtual org.apache.cassandra.transport.Server$Builder.withPort:(I)Lorg/apache/cassandra/transport/Server$Builder;
invokevirtual org.apache.cassandra.transport.Server$Builder.build:()Lorg/apache/cassandra/transport/Server;
aastore
dup
iconst_1
23: aload 4
iconst_1
invokevirtual org.apache.cassandra.transport.Server$Builder.withSSL:(Z)Lorg/apache/cassandra/transport/Server$Builder;
iload 2
invokevirtual org.apache.cassandra.transport.Server$Builder.withPort:(I)Lorg/apache/cassandra/transport/Server$Builder;
invokevirtual org.apache.cassandra.transport.Server$Builder.build:()Lorg/apache/cassandra/transport/Server;
aastore
24: invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
25: invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
putfield org.apache.cassandra.service.NativeTransportService.servers:Ljava/util/Collection;
26: goto 28
27: StackMap locals:
StackMap stack:
aload 0
aload 4
iconst_1
invokevirtual org.apache.cassandra.transport.Server$Builder.withSSL:(Z)Lorg/apache/cassandra/transport/Server$Builder;
iload 1
invokevirtual org.apache.cassandra.transport.Server$Builder.withPort:(I)Lorg/apache/cassandra/transport/Server$Builder;
invokevirtual org.apache.cassandra.transport.Server$Builder.build:()Lorg/apache/cassandra/transport/Server;
invokestatic java.util.Collections.singleton:(Ljava/lang/Object;)Ljava/util/Set;
putfield org.apache.cassandra.service.NativeTransportService.servers:Ljava/util/Collection;
28: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.metrics.ClientMetrics.instance:Lorg/apache/cassandra/metrics/ClientMetrics;
aload 0
getfield org.apache.cassandra.service.NativeTransportService.servers:Ljava/util/Collection;
invokevirtual org.apache.cassandra.metrics.ClientMetrics.init:(Ljava/util/Collection;)V
29: invokestatic org.apache.cassandra.metrics.AuthMetrics.init:()V
30: aload 0
iconst_1
putfield org.apache.cassandra.service.NativeTransportService.initialized:Z
31: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 this Lorg/apache/cassandra/service/NativeTransportService;
10 32 1 nativePort I
11 32 2 nativePortSSL I
12 32 3 nativeAddr Ljava/net/InetAddress;
17 32 4 builder Lorg/apache/cassandra/transport/Server$Builder;
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
public void start();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.cassandra.service.NativeTransportService.initialize:()V
1: aload 0
getfield org.apache.cassandra.service.NativeTransportService.servers:Ljava/util/Collection;
invokedynamic accept()Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
org/apache/cassandra/transport/Server.start()V (5)
(Lorg/apache/cassandra/transport/Server;)V
invokeinterface java.util.Collection.forEach:(Ljava/util/function/Consumer;)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/service/NativeTransportService;
public void stop();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.service.NativeTransportService.servers:Ljava/util/Collection;
invokedynamic accept()Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
org/apache/cassandra/transport/Server.stop()V (5)
(Lorg/apache/cassandra/transport/Server;)V
invokeinterface java.util.Collection.forEach:(Ljava/util/function/Consumer;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/service/NativeTransportService;
public void destroy();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.cassandra.service.NativeTransportService.stop:()V
1: aload 0
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
putfield org.apache.cassandra.service.NativeTransportService.servers:Ljava/util/Collection;
2: aload 0
getfield org.apache.cassandra.service.NativeTransportService.workerGroup:Lio/netty/channel/EventLoopGroup;
ldc 3
ldc 5
getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
invokeinterface io.netty.channel.EventLoopGroup.shutdownGracefully:(JJLjava/util/concurrent/TimeUnit;)Lio/netty/util/concurrent/Future;
invokeinterface io.netty.util.concurrent.Future.awaitUninterruptibly:()Lio/netty/util/concurrent/Future;
pop
3: invokestatic org.apache.cassandra.transport.Message$Dispatcher.shutdown:()V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/service/NativeTransportService;
public int getMaxProtocolVersion();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.service.NativeTransportService.protocolVersionLimit:Lorg/apache/cassandra/transport/ConfiguredLimit;
invokevirtual org.apache.cassandra.transport.ConfiguredLimit.getMaxVersion:()Lorg/apache/cassandra/transport/ProtocolVersion;
invokevirtual org.apache.cassandra.transport.ProtocolVersion.asInt:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/service/NativeTransportService;
public void refreshMaxNegotiableProtocolVersion();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.service.NativeTransportService.initialized:Z
ifeq 2
1: aload 0
getfield org.apache.cassandra.service.NativeTransportService.protocolVersionLimit:Lorg/apache/cassandra/transport/ConfiguredLimit;
invokevirtual org.apache.cassandra.transport.ConfiguredLimit.updateMaxSupportedVersion:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/service/NativeTransportService;
public static boolean useEpoll();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: ldc "cassandra.native.epoll.enabled"
ldc "true"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.Boolean.parseBoolean:(Ljava/lang/String;)Z
istore 0
start local 0 1: iload 0
ifeq 2
invokestatic io.netty.channel.epoll.Epoll.isAvailable:()Z
ifeq 2
iconst_1
ireturn
StackMap locals: int
StackMap stack:
2: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 3 0 enableEpoll Z
public boolean isRunning();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.service.NativeTransportService.servers:Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 2
goto 3
StackMap locals: org.apache.cassandra.service.NativeTransportService top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.transport.Server
astore 1
start local 1 2: aload 1
invokevirtual org.apache.cassandra.transport.Server.isRunning:()Z
ifeq 3
iconst_1
ireturn
end local 1 3: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/service/NativeTransportService;
2 3 1 server Lorg/apache/cassandra/transport/Server;
io.netty.channel.EventLoopGroup getWorkerGroup();
descriptor: ()Lio/netty/channel/EventLoopGroup;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.service.NativeTransportService.workerGroup:Lio/netty/channel/EventLoopGroup;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/service/NativeTransportService;
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
com.google.common.annotations.VisibleForTesting()
java.util.Collection<org.apache.cassandra.transport.Server> getServers();
descriptor: ()Ljava/util/Collection;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.service.NativeTransportService.servers:Ljava/util/Collection;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/service/NativeTransportService;
Signature: ()Ljava/util/Collection<Lorg/apache/cassandra/transport/Server;>;
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
com.google.common.annotations.VisibleForTesting()
}
SourceFile: "NativeTransportService.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public ClientEncryptionOptions = org.apache.cassandra.config.EncryptionOptions$ClientEncryptionOptions of org.apache.cassandra.config.EncryptionOptions
public Dispatcher = org.apache.cassandra.transport.Message$Dispatcher of org.apache.cassandra.transport.Message
public Builder = org.apache.cassandra.transport.Server$Builder of org.apache.cassandra.transport.Server