public class org.apache.cassandra.streaming.StreamTransferTask extends org.apache.cassandra.streaming.StreamTask
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.streaming.StreamTransferTask
super_class: org.apache.cassandra.streaming.StreamTask
{
private static final java.util.concurrent.ScheduledExecutorService timeoutExecutor;
descriptor: Ljava/util/concurrent/ScheduledExecutorService;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.util.concurrent.atomic.AtomicInteger sequenceNumber;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean aborted;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
protected final java.util.Map<java.lang.Integer, org.apache.cassandra.streaming.messages.OutgoingFileMessage> files;
descriptor: Ljava/util/Map;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Integer;Lorg/apache/cassandra/streaming/messages/OutgoingFileMessage;>;
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
private final java.util.Map<java.lang.Integer, java.util.concurrent.ScheduledFuture> timeoutTasks;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Integer;Ljava/util/concurrent/ScheduledFuture;>;
private long totalSize;
descriptor: J
flags: (0x0002) ACC_PRIVATE
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=3, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/streaming/StreamTransferTask;
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.streaming.StreamTransferTask.$assertionsDisabled:Z
3: new org.apache.cassandra.concurrent.NamedThreadFactory
dup
ldc "StreamingTransferTaskTimeouts"
invokespecial org.apache.cassandra.concurrent.NamedThreadFactory.<init>:(Ljava/lang/String;)V
invokestatic java.util.concurrent.Executors.newSingleThreadScheduledExecutor:(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;
putstatic org.apache.cassandra.streaming.StreamTransferTask.timeoutExecutor:Ljava/util/concurrent/ScheduledExecutorService;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.apache.cassandra.streaming.StreamSession, java.util.UUID);
descriptor: (Lorg/apache/cassandra/streaming/StreamSession;Ljava/util/UUID;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial org.apache.cassandra.streaming.StreamTask.<init>:(Lorg/apache/cassandra/streaming/StreamSession;Ljava/util/UUID;)V
1: aload 0
new java.util.concurrent.atomic.AtomicInteger
dup
iconst_0
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
putfield org.apache.cassandra.streaming.StreamTransferTask.sequenceNumber:Ljava/util/concurrent/atomic/AtomicInteger;
2: aload 0
iconst_0
putfield org.apache.cassandra.streaming.StreamTransferTask.aborted:Z
3: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.apache.cassandra.streaming.StreamTransferTask.files:Ljava/util/Map;
4: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.apache.cassandra.streaming.StreamTransferTask.timeoutTasks:Ljava/util/Map;
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/streaming/StreamTransferTask;
0 6 1 session Lorg/apache/cassandra/streaming/StreamSession;
0 6 2 cfId Ljava/util/UUID;
MethodParameters:
Name Flags
session
cfId
public synchronized void addTransferFile(org.apache.cassandra.utils.concurrent.Ref<org.apache.cassandra.io.sstable.format.SSTableReader>, long, java.util.List<org.apache.cassandra.utils.Pair<java.lang.Long, java.lang.Long>>, );
descriptor: (Lorg/apache/cassandra/utils/concurrent/Ref;JLjava/util/List;J)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=10, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 4 start local 5 0: getstatic org.apache.cassandra.streaming.StreamTransferTask.$assertionsDisabled:Z
ifne 2
aload 1
invokevirtual org.apache.cassandra.utils.concurrent.Ref.get:()Ljava/lang/Object;
ifnull 1
aload 0
getfield org.apache.cassandra.streaming.StreamTransferTask.cfId:Ljava/util/UUID;
aload 1
invokevirtual org.apache.cassandra.utils.concurrent.Ref.get:()Ljava/lang/Object;
checkcast org.apache.cassandra.io.sstable.format.SSTableReader
getfield org.apache.cassandra.io.sstable.format.SSTableReader.metadata:Lorg/apache/cassandra/config/CFMetaData;
getfield org.apache.cassandra.config.CFMetaData.cfId:Ljava/util/UUID;
invokevirtual java.util.UUID.equals:(Ljava/lang/Object;)Z
ifne 2
StackMap locals:
StackMap stack:
1: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
new org.apache.cassandra.streaming.messages.OutgoingFileMessage
dup
aload 1
aload 0
getfield org.apache.cassandra.streaming.StreamTransferTask.sequenceNumber:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.getAndIncrement:()I
lload 2
aload 4
lload 5
aload 0
getfield org.apache.cassandra.streaming.StreamTransferTask.session:Lorg/apache/cassandra/streaming/StreamSession;
invokevirtual org.apache.cassandra.streaming.StreamSession.keepSSTableLevel:()Z
invokespecial org.apache.cassandra.streaming.messages.OutgoingFileMessage.<init>:(Lorg/apache/cassandra/utils/concurrent/Ref;IJLjava/util/List;JZ)V
astore 7
start local 7 3: getstatic org.apache.cassandra.streaming.StreamHook.instance:Lorg/apache/cassandra/streaming/StreamHook;
aload 0
getfield org.apache.cassandra.streaming.StreamTransferTask.session:Lorg/apache/cassandra/streaming/StreamSession;
aload 1
invokevirtual org.apache.cassandra.utils.concurrent.Ref.get:()Ljava/lang/Object;
checkcast org.apache.cassandra.io.sstable.format.SSTableReader
aload 7
invokeinterface org.apache.cassandra.streaming.StreamHook.reportOutgoingFile:(Lorg/apache/cassandra/streaming/StreamSession;Lorg/apache/cassandra/io/sstable/format/SSTableReader;Lorg/apache/cassandra/streaming/messages/OutgoingFileMessage;)Lorg/apache/cassandra/streaming/messages/OutgoingFileMessage;
astore 7
4: aload 0
getfield org.apache.cassandra.streaming.StreamTransferTask.files:Ljava/util/Map;
aload 7
getfield org.apache.cassandra.streaming.messages.OutgoingFileMessage.header:Lorg/apache/cassandra/streaming/messages/FileMessageHeader;
getfield org.apache.cassandra.streaming.messages.FileMessageHeader.sequenceNumber:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 7
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: aload 0
dup
getfield org.apache.cassandra.streaming.StreamTransferTask.totalSize:J
aload 7
getfield org.apache.cassandra.streaming.messages.OutgoingFileMessage.header:Lorg/apache/cassandra/streaming/messages/FileMessageHeader;
invokevirtual org.apache.cassandra.streaming.messages.FileMessageHeader.size:()J
ladd
putfield org.apache.cassandra.streaming.StreamTransferTask.totalSize:J
6: return
end local 7 end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/streaming/StreamTransferTask;
0 7 1 ref Lorg/apache/cassandra/utils/concurrent/Ref<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
0 7 2 estimatedKeys J
0 7 4 sections Ljava/util/List<Lorg/apache/cassandra/utils/Pair<Ljava/lang/Long;Ljava/lang/Long;>;>;
0 7 5 repairedAt J
3 7 7 message Lorg/apache/cassandra/streaming/messages/OutgoingFileMessage;
Signature: (Lorg/apache/cassandra/utils/concurrent/Ref<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;JLjava/util/List<Lorg/apache/cassandra/utils/Pair<Ljava/lang/Long;Ljava/lang/Long;>;>;J)V
MethodParameters:
Name Flags
ref
estimatedKeys
sections
repairedAt
public void complete(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 3
monitorenter
1: aload 0
getfield org.apache.cassandra.streaming.StreamTransferTask.timeoutTasks:Ljava/util/Map;
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.ScheduledFuture
astore 4
start local 4 2: aload 4
ifnull 4
3: aload 4
iconst_0
invokeinterface java.util.concurrent.ScheduledFuture.cancel:(Z)Z
pop
4: StackMap locals: org.apache.cassandra.streaming.StreamTransferTask int top org.apache.cassandra.streaming.StreamTransferTask java.util.concurrent.ScheduledFuture
StackMap stack:
aload 0
getfield org.apache.cassandra.streaming.StreamTransferTask.files:Ljava/util/Map;
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.streaming.messages.OutgoingFileMessage
astore 5
start local 5 5: aload 5
ifnull 7
6: aload 5
invokevirtual org.apache.cassandra.streaming.messages.OutgoingFileMessage.complete:()V
7: StackMap locals: org.apache.cassandra.streaming.messages.OutgoingFileMessage
StackMap stack:
aload 0
getfield org.apache.cassandra.streaming.StreamTransferTask.files:Ljava/util/Map;
invokeinterface java.util.Map.isEmpty:()Z
istore 2
end local 5 end local 4 start local 2 8: aload 3
monitorexit
9: goto 12
end local 2 StackMap locals: org.apache.cassandra.streaming.StreamTransferTask int top org.apache.cassandra.streaming.StreamTransferTask
StackMap stack: java.lang.Throwable
10: aload 3
monitorexit
11: athrow
start local 2 12: StackMap locals: org.apache.cassandra.streaming.StreamTransferTask int int
StackMap stack:
iload 2
ifeq 14
13: aload 0
getfield org.apache.cassandra.streaming.StreamTransferTask.session:Lorg/apache/cassandra/streaming/StreamSession;
aload 0
invokevirtual org.apache.cassandra.streaming.StreamSession.taskCompleted:(Lorg/apache/cassandra/streaming/StreamTransferTask;)V
14: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/apache/cassandra/streaming/StreamTransferTask;
0 15 1 sequenceNumber I
8 10 2 signalComplete Z
12 15 2 signalComplete Z
2 8 4 timeout Ljava/util/concurrent/ScheduledFuture;
5 8 5 file Lorg/apache/cassandra/streaming/messages/OutgoingFileMessage;
Exception table:
from to target type
1 9 10 any
10 11 10 any
MethodParameters:
Name Flags
sequenceNumber
public synchronized void abort();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=5, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.streaming.StreamTransferTask.aborted:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield org.apache.cassandra.streaming.StreamTransferTask.aborted:Z
3: aload 0
getfield org.apache.cassandra.streaming.StreamTransferTask.timeoutTasks:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 2
goto 6
StackMap locals: org.apache.cassandra.streaming.StreamTransferTask top java.util.Iterator
StackMap stack:
4: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.concurrent.ScheduledFuture
astore 1
start local 1 5: aload 1
iconst_0
invokeinterface java.util.concurrent.ScheduledFuture.cancel:(Z)Z
pop
end local 1 6: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
7: aload 0
getfield org.apache.cassandra.streaming.StreamTransferTask.timeoutTasks:Ljava/util/Map;
invokeinterface java.util.Map.clear:()V
8: aconst_null
astore 1
start local 1 9: aload 0
getfield org.apache.cassandra.streaming.StreamTransferTask.files:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
goto 16
StackMap locals: org.apache.cassandra.streaming.StreamTransferTask java.lang.Throwable top java.util.Iterator
StackMap stack:
10: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.streaming.messages.OutgoingFileMessage
astore 2
start local 2 11: aload 2
invokevirtual org.apache.cassandra.streaming.messages.OutgoingFileMessage.complete:()V
12: goto 16
13: StackMap locals: org.apache.cassandra.streaming.StreamTransferTask java.lang.Throwable org.apache.cassandra.streaming.messages.OutgoingFileMessage java.util.Iterator
StackMap stack: java.lang.Throwable
astore 4
start local 4 14: aload 1
ifnonnull 15
aload 4
astore 1
goto 16
15: StackMap locals: java.lang.Throwable
StackMap stack:
aload 1
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
end local 4 end local 2 16: StackMap locals: org.apache.cassandra.streaming.StreamTransferTask java.lang.Throwable top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
17: aload 0
getfield org.apache.cassandra.streaming.StreamTransferTask.files:Ljava/util/Map;
invokeinterface java.util.Map.clear:()V
18: aload 1
ifnull 20
19: aload 1
invokestatic com.google.common.base.Throwables.propagate:(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
pop
20: StackMap locals: org.apache.cassandra.streaming.StreamTransferTask java.lang.Throwable
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lorg/apache/cassandra/streaming/StreamTransferTask;
5 6 1 future Ljava/util/concurrent/ScheduledFuture;
9 21 1 fail Ljava/lang/Throwable;
11 16 2 file Lorg/apache/cassandra/streaming/messages/OutgoingFileMessage;
14 16 4 t Ljava/lang/Throwable;
Exception table:
from to target type
11 12 13 Class java.lang.Throwable
public synchronized int getTotalNumberOfFiles();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.streaming.StreamTransferTask.files:Ljava/util/Map;
invokeinterface java.util.Map.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/streaming/StreamTransferTask;
public long getTotalSize();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.streaming.StreamTransferTask.totalSize:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/streaming/StreamTransferTask;
public synchronized java.util.Collection<org.apache.cassandra.streaming.messages.OutgoingFileMessage> getFileMessages();
descriptor: ()Ljava/util/Collection;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.util.ArrayList
dup
aload 0
getfield org.apache.cassandra.streaming.StreamTransferTask.files:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/streaming/StreamTransferTask;
Signature: ()Ljava/util/Collection<Lorg/apache/cassandra/streaming/messages/OutgoingFileMessage;>;
public synchronized org.apache.cassandra.streaming.messages.OutgoingFileMessage createMessageForRetry(int);
descriptor: (I)Lorg/apache/cassandra/streaming/messages/OutgoingFileMessage;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.streaming.StreamTransferTask.timeoutTasks:Ljava/util/Map;
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.ScheduledFuture
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
iconst_0
invokeinterface java.util.concurrent.ScheduledFuture.cancel:(Z)Z
pop
3: StackMap locals: java.util.concurrent.ScheduledFuture
StackMap stack:
aload 0
getfield org.apache.cassandra.streaming.StreamTransferTask.files:Ljava/util/Map;
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.streaming.messages.OutgoingFileMessage
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/streaming/StreamTransferTask;
0 4 1 sequenceNumber I
1 4 2 future Ljava/util/concurrent/ScheduledFuture;
MethodParameters:
Name Flags
sequenceNumber
public synchronized java.util.concurrent.ScheduledFuture scheduleTimeout(int, long, java.util.concurrent.TimeUnit);
descriptor: (IJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 4 0: aload 0
getfield org.apache.cassandra.streaming.StreamTransferTask.files:Ljava/util/Map;
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifne 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.streaming.StreamTransferTask.timeoutExecutor:Ljava/util/concurrent/ScheduledExecutorService;
new org.apache.cassandra.streaming.StreamTransferTask$1
dup
aload 0
iload 1
invokespecial org.apache.cassandra.streaming.StreamTransferTask$1.<init>:(Lorg/apache/cassandra/streaming/StreamTransferTask;I)V
3: lload 2
aload 4
4: invokeinterface java.util.concurrent.ScheduledExecutorService.schedule:(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
astore 5
start local 5 5: aload 0
getfield org.apache.cassandra.streaming.StreamTransferTask.timeoutTasks:Ljava/util/Map;
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 5
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.ScheduledFuture
astore 6
start local 6 6: getstatic org.apache.cassandra.streaming.StreamTransferTask.$assertionsDisabled:Z
ifne 7
aload 6
ifnull 7
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
7: StackMap locals: java.util.concurrent.ScheduledFuture java.util.concurrent.ScheduledFuture
StackMap stack:
aload 5
areturn
end local 6 end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/streaming/StreamTransferTask;
0 8 1 sequenceNumber I
0 8 2 time J
0 8 4 unit Ljava/util/concurrent/TimeUnit;
5 8 5 future Ljava/util/concurrent/ScheduledFuture;
6 8 6 prev Ljava/util/concurrent/ScheduledFuture;
MethodParameters:
Name Flags
sequenceNumber final
time
unit
}
SourceFile: "StreamTransferTask.java"
NestMembers:
org.apache.cassandra.streaming.StreamTransferTask$1
InnerClasses:
org.apache.cassandra.streaming.StreamTransferTask$1