public class org.apache.cassandra.thrift.ThriftSessionManager
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.thrift.ThriftSessionManager
super_class: java.lang.Object
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static final org.apache.cassandra.thrift.ThriftSessionManager instance;
descriptor: Lorg/apache/cassandra/thrift/ThriftSessionManager;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private final io.netty.util.concurrent.FastThreadLocal<java.net.SocketAddress> remoteSocket;
descriptor: Lio/netty/util/concurrent/FastThreadLocal;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lio/netty/util/concurrent/FastThreadLocal<Ljava/net/SocketAddress;>;
private final java.util.concurrent.ConcurrentHashMap<java.net.SocketAddress, org.apache.cassandra.thrift.ThriftClientState> activeSocketSessions;
descriptor: Ljava/util/concurrent/ConcurrentHashMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentHashMap<Ljava/net/SocketAddress;Lorg/apache/cassandra/thrift/ThriftClientState;>;
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=2, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/thrift/ThriftSessionManager;
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.ThriftSessionManager.$assertionsDisabled:Z
3: ldc Lorg/apache/cassandra/thrift/ThriftSessionManager;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.thrift.ThriftSessionManager.logger:Lorg/slf4j/Logger;
4: new org.apache.cassandra.thrift.ThriftSessionManager
dup
invokespecial org.apache.cassandra.thrift.ThriftSessionManager.<init>:()V
putstatic org.apache.cassandra.thrift.ThriftSessionManager.instance:Lorg/apache/cassandra/thrift/ThriftSessionManager;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new io.netty.util.concurrent.FastThreadLocal
dup
invokespecial io.netty.util.concurrent.FastThreadLocal.<init>:()V
putfield org.apache.cassandra.thrift.ThriftSessionManager.remoteSocket:Lio/netty/util/concurrent/FastThreadLocal;
2: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield org.apache.cassandra.thrift.ThriftSessionManager.activeSocketSessions:Ljava/util/concurrent/ConcurrentHashMap;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/thrift/ThriftSessionManager;
public void setCurrentSocket(java.net.SocketAddress);
descriptor: (Ljava/net/SocketAddress;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.thrift.ThriftSessionManager.remoteSocket:Lio/netty/util/concurrent/FastThreadLocal;
aload 1
invokevirtual io.netty.util.concurrent.FastThreadLocal.set:(Ljava/lang/Object;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/thrift/ThriftSessionManager;
0 2 1 socket Ljava/net/SocketAddress;
MethodParameters:
Name Flags
socket
public org.apache.cassandra.thrift.ThriftClientState currentSession();
descriptor: ()Lorg/apache/cassandra/thrift/ThriftClientState;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.thrift.ThriftSessionManager.remoteSocket:Lio/netty/util/concurrent/FastThreadLocal;
invokevirtual io.netty.util.concurrent.FastThreadLocal.get:()Ljava/lang/Object;
checkcast java.net.SocketAddress
astore 1
start local 1 1: getstatic org.apache.cassandra.thrift.ThriftSessionManager.$assertionsDisabled:Z
ifne 2
aload 1
ifnonnull 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals: java.net.SocketAddress
StackMap stack:
aload 0
getfield org.apache.cassandra.thrift.ThriftSessionManager.activeSocketSessions:Ljava/util/concurrent/ConcurrentHashMap;
aload 1
invokevirtual java.util.concurrent.ConcurrentHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.thrift.ThriftClientState
astore 2
start local 2 3: aload 2
ifnonnull 8
4: new org.apache.cassandra.thrift.ThriftClientState
dup
aload 1
checkcast java.net.InetSocketAddress
invokespecial org.apache.cassandra.thrift.ThriftClientState.<init>:(Ljava/net/InetSocketAddress;)V
astore 3
start local 3 5: aload 0
getfield org.apache.cassandra.thrift.ThriftSessionManager.activeSocketSessions:Ljava/util/concurrent/ConcurrentHashMap;
aload 1
aload 3
invokevirtual java.util.concurrent.ConcurrentHashMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.thrift.ThriftClientState
astore 2
6: aload 2
ifnonnull 8
7: aload 3
astore 2
end local 3 8: StackMap locals: org.apache.cassandra.thrift.ThriftClientState
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/cassandra/thrift/ThriftSessionManager;
1 9 1 socket Ljava/net/SocketAddress;
3 9 2 cState Lorg/apache/cassandra/thrift/ThriftClientState;
5 8 3 newState Lorg/apache/cassandra/thrift/ThriftClientState;
public void connectionComplete(java.net.SocketAddress);
descriptor: (Ljava/net/SocketAddress;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.thrift.ThriftSessionManager.$assertionsDisabled:Z
ifne 1
aload 1
ifnonnull 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.thrift.ThriftSessionManager.activeSocketSessions:Ljava/util/concurrent/ConcurrentHashMap;
aload 1
invokevirtual java.util.concurrent.ConcurrentHashMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: getstatic org.apache.cassandra.thrift.ThriftSessionManager.logger:Lorg/slf4j/Logger;
invokeinterface org.slf4j.Logger.isTraceEnabled:()Z
ifeq 4
3: getstatic org.apache.cassandra.thrift.ThriftSessionManager.logger:Lorg/slf4j/Logger;
ldc "ClientState removed for socket addr {}"
aload 1
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/thrift/ThriftSessionManager;
0 5 1 socket Ljava/net/SocketAddress;
MethodParameters:
Name Flags
socket
public int getConnectedClients();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.thrift.ThriftSessionManager.activeSocketSessions:Ljava/util/concurrent/ConcurrentHashMap;
invokevirtual java.util.concurrent.ConcurrentHashMap.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/thrift/ThriftSessionManager;
}
SourceFile: "ThriftSessionManager.java"