class org.apache.cassandra.streaming.StreamSession$KeepAliveTask implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.apache.cassandra.streaming.StreamSession$KeepAliveTask
super_class: java.lang.Object
{
private org.apache.cassandra.streaming.messages.KeepAliveMessage last;
descriptor: Lorg/apache/cassandra/streaming/messages/KeepAliveMessage;
flags: (0x0002) ACC_PRIVATE
final org.apache.cassandra.streaming.StreamSession this$0;
descriptor: Lorg/apache/cassandra/streaming/StreamSession;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(org.apache.cassandra.streaming.StreamSession);
descriptor: (Lorg/apache/cassandra/streaming/StreamSession;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 // org.apache.cassandra.streaming.StreamSession$KeepAliveTask this
0: .line 815
aload 0 /* this */
aload 1
putfield org.apache.cassandra.streaming.StreamSession$KeepAliveTask.this$0:Lorg/apache/cassandra/streaming/StreamSession;
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 817
aload 0 /* this */
aconst_null
putfield org.apache.cassandra.streaming.StreamSession$KeepAliveTask.last:Lorg/apache/cassandra/streaming/messages/KeepAliveMessage;
2: .line 815
return
end local 0 // org.apache.cassandra.streaming.StreamSession$KeepAliveTask this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/streaming/StreamSession$KeepAliveTask;
MethodParameters:
Name Flags
this$0 final
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 // org.apache.cassandra.streaming.StreamSession$KeepAliveTask this
0: .line 822
aload 0 /* this */
getfield org.apache.cassandra.streaming.StreamSession$KeepAliveTask.last:Lorg/apache/cassandra/streaming/messages/KeepAliveMessage;
ifnull 1
aload 0 /* this */
getfield org.apache.cassandra.streaming.StreamSession$KeepAliveTask.last:Lorg/apache/cassandra/streaming/messages/KeepAliveMessage;
invokevirtual org.apache.cassandra.streaming.messages.KeepAliveMessage.wasSent:()Z
ifeq 8
1: .line 824
StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.streaming.StreamSession.logger:Lorg/slf4j/Logger;
ldc "[Stream #{}] Sending keep-alive to {}."
aload 0 /* this */
getfield org.apache.cassandra.streaming.StreamSession$KeepAliveTask.this$0:Lorg/apache/cassandra/streaming/StreamSession;
invokevirtual org.apache.cassandra.streaming.StreamSession.planId:()Ljava/util/UUID;
aload 0 /* this */
getfield org.apache.cassandra.streaming.StreamSession$KeepAliveTask.this$0:Lorg/apache/cassandra/streaming/StreamSession;
getfield org.apache.cassandra.streaming.StreamSession.peer:Ljava/net/InetAddress;
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
2: .line 825
aload 0 /* this */
new org.apache.cassandra.streaming.messages.KeepAliveMessage
dup
invokespecial org.apache.cassandra.streaming.messages.KeepAliveMessage.<init>:()V
putfield org.apache.cassandra.streaming.StreamSession$KeepAliveTask.last:Lorg/apache/cassandra/streaming/messages/KeepAliveMessage;
3: .line 828
aload 0 /* this */
getfield org.apache.cassandra.streaming.StreamSession$KeepAliveTask.this$0:Lorg/apache/cassandra/streaming/StreamSession;
getfield org.apache.cassandra.streaming.StreamSession.handler:Lorg/apache/cassandra/streaming/ConnectionHandler;
aload 0 /* this */
getfield org.apache.cassandra.streaming.StreamSession$KeepAliveTask.last:Lorg/apache/cassandra/streaming/messages/KeepAliveMessage;
invokevirtual org.apache.cassandra.streaming.ConnectionHandler.sendMessage:(Lorg/apache/cassandra/streaming/messages/StreamMessage;)V
4: .line 829
goto 9
5: .line 830
StackMap locals:
StackMap stack: java.lang.RuntimeException
astore 1 /* e */
start local 1 // java.lang.RuntimeException e
6: .line 832
getstatic org.apache.cassandra.streaming.StreamSession.logger:Lorg/slf4j/Logger;
ldc "[Stream #{}] Could not send keep-alive message (perhaps stream session is finished?)."
aload 0 /* this */
getfield org.apache.cassandra.streaming.StreamSession$KeepAliveTask.this$0:Lorg/apache/cassandra/streaming/StreamSession;
invokevirtual org.apache.cassandra.streaming.StreamSession.planId:()Ljava/util/UUID;
aload 1 /* e */
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
end local 1 // java.lang.RuntimeException e
7: .line 834
goto 9
8: .line 837
StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.streaming.StreamSession.logger:Lorg/slf4j/Logger;
ldc "[Stream #{}] Skip sending keep-alive to {} (previous was not yet sent)."
aload 0 /* this */
getfield org.apache.cassandra.streaming.StreamSession$KeepAliveTask.this$0:Lorg/apache/cassandra/streaming/StreamSession;
invokevirtual org.apache.cassandra.streaming.StreamSession.planId:()Ljava/util/UUID;
aload 0 /* this */
getfield org.apache.cassandra.streaming.StreamSession$KeepAliveTask.this$0:Lorg/apache/cassandra/streaming/StreamSession;
getfield org.apache.cassandra.streaming.StreamSession.peer:Ljava/net/InetAddress;
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
9: .line 839
StackMap locals:
StackMap stack:
return
end local 0 // org.apache.cassandra.streaming.StreamSession$KeepAliveTask this
LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/cassandra/streaming/StreamSession$KeepAliveTask;
6 7 1 e Ljava/lang/RuntimeException;
Exception table:
from to target type
3 4 5 Class java.lang.RuntimeException
}
SourceFile: "StreamSession.java"
NestHost: org.apache.cassandra.streaming.StreamSession
InnerClasses:
KeepAliveTask = org.apache.cassandra.streaming.StreamSession$KeepAliveTask of org.apache.cassandra.streaming.StreamSession