public class org.apache.cassandra.streaming.StreamReceiveTask 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.StreamReceiveTask
super_class: org.apache.cassandra.streaming.StreamTask
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.concurrent.ExecutorService executor;
descriptor: Ljava/util/concurrent/ExecutorService;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final int totalFiles;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long totalSize;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.apache.cassandra.db.lifecycle.LifecycleTransaction txn;
descriptor: Lorg/apache/cassandra/db/lifecycle/LifecycleTransaction;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile boolean done;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
protected java.util.Collection<org.apache.cassandra.io.sstable.format.SSTableReader> sstables;
descriptor: Ljava/util/Collection;
flags: (0x0004) ACC_PROTECTED
Signature: Ljava/util/Collection<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
private int remoteSSTablesReceived;
descriptor: I
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/StreamReceiveTask;
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.StreamReceiveTask.$assertionsDisabled:Z
3: ldc Lorg/apache/cassandra/streaming/StreamReceiveTask;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.streaming.StreamReceiveTask.logger:Lorg/slf4j/Logger;
4: new org.apache.cassandra.concurrent.NamedThreadFactory
dup
ldc "StreamReceiveTask"
invokespecial org.apache.cassandra.concurrent.NamedThreadFactory.<init>:(Ljava/lang/String;)V
invokestatic java.util.concurrent.Executors.newCachedThreadPool:(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;
putstatic org.apache.cassandra.streaming.StreamReceiveTask.executor:Ljava/util/concurrent/ExecutorService;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.apache.cassandra.streaming.StreamSession, java.util.UUID, int, long);
descriptor: (Lorg/apache/cassandra/streaming/StreamSession;Ljava/util/UUID;IJ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 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
iconst_0
putfield org.apache.cassandra.streaming.StreamReceiveTask.done:Z
2: aload 0
iconst_0
putfield org.apache.cassandra.streaming.StreamReceiveTask.remoteSSTablesReceived:I
3: aload 0
iload 3
putfield org.apache.cassandra.streaming.StreamReceiveTask.totalFiles:I
4: aload 0
lload 4
putfield org.apache.cassandra.streaming.StreamReceiveTask.totalSize:J
5: aload 0
getstatic org.apache.cassandra.db.compaction.OperationType.STREAM:Lorg/apache/cassandra/db/compaction/OperationType;
invokestatic org.apache.cassandra.db.lifecycle.LifecycleTransaction.offline:(Lorg/apache/cassandra/db/compaction/OperationType;)Lorg/apache/cassandra/db/lifecycle/LifecycleTransaction;
putfield org.apache.cassandra.streaming.StreamReceiveTask.txn:Lorg/apache/cassandra/db/lifecycle/LifecycleTransaction;
6: aload 0
new java.util.ArrayList
dup
iload 3
invokespecial java.util.ArrayList.<init>:(I)V
putfield org.apache.cassandra.streaming.StreamReceiveTask.sstables:Ljava/util/Collection;
7: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/streaming/StreamReceiveTask;
0 8 1 session Lorg/apache/cassandra/streaming/StreamSession;
0 8 2 cfId Ljava/util/UUID;
0 8 3 totalFiles I
0 8 4 totalSize J
MethodParameters:
Name Flags
session
cfId
totalFiles
totalSize
public synchronized void received(org.apache.cassandra.io.sstable.SSTableMultiWriter);
descriptor: (Lorg/apache/cassandra/io/sstable/SSTableMultiWriter;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.streaming.StreamReceiveTask.done:Z
ifeq 6
1: getstatic org.apache.cassandra.streaming.StreamReceiveTask.logger:Lorg/slf4j/Logger;
ldc "[{}] Received sstable {} on already finished stream received task. Aborting sstable."
aload 0
getfield org.apache.cassandra.streaming.StreamReceiveTask.session:Lorg/apache/cassandra/streaming/StreamSession;
invokevirtual org.apache.cassandra.streaming.StreamSession.planId:()Ljava/util/UUID;
2: aload 1
invokeinterface org.apache.cassandra.io.sstable.SSTableMultiWriter.getFilename:()Ljava/lang/String;
3: invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
4: aload 1
aconst_null
invokeinterface org.apache.cassandra.io.sstable.SSTableMultiWriter.abort:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
invokestatic org.apache.cassandra.utils.Throwables.maybeFail:(Ljava/lang/Throwable;)V
5: return
6: StackMap locals:
StackMap stack:
aload 0
dup
getfield org.apache.cassandra.streaming.StreamReceiveTask.remoteSSTablesReceived:I
iconst_1
iadd
putfield org.apache.cassandra.streaming.StreamReceiveTask.remoteSSTablesReceived:I
7: getstatic org.apache.cassandra.streaming.StreamReceiveTask.$assertionsDisabled:Z
ifne 8
aload 0
getfield org.apache.cassandra.streaming.StreamReceiveTask.cfId:Ljava/util/UUID;
aload 1
invokeinterface org.apache.cassandra.io.sstable.SSTableMultiWriter.getCfId:()Ljava/util/UUID;
invokevirtual java.util.UUID.equals:(Ljava/lang/Object;)Z
ifne 8
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
8: StackMap locals:
StackMap stack:
aconst_null
astore 2
start local 2 9: aload 1
iconst_1
invokeinterface org.apache.cassandra.io.sstable.SSTableMultiWriter.finish:(Z)Ljava/util/Collection;
astore 2
10: goto 13
11: StackMap locals: org.apache.cassandra.streaming.StreamReceiveTask org.apache.cassandra.io.sstable.SSTableMultiWriter java.util.Collection
StackMap stack: java.lang.Throwable
astore 3
start local 3 12: aload 1
aload 3
invokeinterface org.apache.cassandra.io.sstable.SSTableMultiWriter.abort:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
invokestatic org.apache.cassandra.utils.Throwables.maybeFail:(Ljava/lang/Throwable;)V
end local 3 13: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.streaming.StreamReceiveTask.txn:Lorg/apache/cassandra/db/lifecycle/LifecycleTransaction;
aload 2
iconst_0
invokevirtual org.apache.cassandra.db.lifecycle.LifecycleTransaction.update:(Ljava/util/Collection;Z)V
14: aload 0
getfield org.apache.cassandra.streaming.StreamReceiveTask.sstables:Ljava/util/Collection;
aload 2
invokeinterface java.util.Collection.addAll:(Ljava/util/Collection;)Z
pop
15: aload 0
getfield org.apache.cassandra.streaming.StreamReceiveTask.remoteSSTablesReceived:I
aload 0
getfield org.apache.cassandra.streaming.StreamReceiveTask.totalFiles:I
if_icmpne 18
16: aload 0
iconst_1
putfield org.apache.cassandra.streaming.StreamReceiveTask.done:Z
17: getstatic org.apache.cassandra.streaming.StreamReceiveTask.executor:Ljava/util/concurrent/ExecutorService;
new org.apache.cassandra.streaming.StreamReceiveTask$OnCompletionRunnable
dup
aload 0
invokespecial org.apache.cassandra.streaming.StreamReceiveTask$OnCompletionRunnable.<init>:(Lorg/apache/cassandra/streaming/StreamReceiveTask;)V
invokeinterface java.util.concurrent.ExecutorService.submit:(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
pop
18: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lorg/apache/cassandra/streaming/StreamReceiveTask;
0 19 1 sstable Lorg/apache/cassandra/io/sstable/SSTableMultiWriter;
9 19 2 finished Ljava/util/Collection<Lorg/apache/cassandra/io/sstable/format/SSTableReader;>;
12 13 3 t Ljava/lang/Throwable;
Exception table:
from to target type
9 10 11 Class java.lang.Throwable
MethodParameters:
Name Flags
sstable
public int getTotalNumberOfFiles();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.streaming.StreamReceiveTask.totalFiles:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/streaming/StreamReceiveTask;
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.StreamReceiveTask.totalSize:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/streaming/StreamReceiveTask;
public synchronized org.apache.cassandra.db.lifecycle.LifecycleNewTracker createLifecycleNewTracker();
descriptor: ()Lorg/apache/cassandra/db/lifecycle/LifecycleNewTracker;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=7, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.streaming.StreamReceiveTask.done:Z
ifeq 2
1: new java.lang.RuntimeException
dup
ldc "Stream receive task %s of cf %s already finished."
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.apache.cassandra.streaming.StreamReceiveTask.session:Lorg/apache/cassandra/streaming/StreamSession;
invokevirtual org.apache.cassandra.streaming.StreamSession.planId:()Ljava/util/UUID;
aastore
dup
iconst_1
aload 0
getfield org.apache.cassandra.streaming.StreamReceiveTask.cfId:Ljava/util/UUID;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new org.apache.cassandra.streaming.StreamReceiveTask$1
dup
aload 0
invokespecial org.apache.cassandra.streaming.StreamReceiveTask$1.<init>:(Lorg/apache/cassandra/streaming/StreamReceiveTask;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/streaming/StreamReceiveTask;
public synchronized void abort();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.streaming.StreamReceiveTask.done:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield org.apache.cassandra.streaming.StreamReceiveTask.done:Z
3: aload 0
invokevirtual org.apache.cassandra.streaming.StreamReceiveTask.abortTransaction:()V
4: aload 0
getfield org.apache.cassandra.streaming.StreamReceiveTask.sstables:Ljava/util/Collection;
invokeinterface java.util.Collection.clear:()V
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/streaming/StreamReceiveTask;
private synchronized void abortTransaction();
descriptor: ()V
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.streaming.StreamReceiveTask.txn:Lorg/apache/cassandra/db/lifecycle/LifecycleTransaction;
invokevirtual org.apache.cassandra.db.lifecycle.LifecycleTransaction.abort:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/streaming/StreamReceiveTask;
private synchronized void finishTransaction();
descriptor: ()V
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.streaming.StreamReceiveTask.txn:Lorg/apache/cassandra/db/lifecycle/LifecycleTransaction;
invokevirtual org.apache.cassandra.db.lifecycle.LifecycleTransaction.finish:()Ljava/lang/Object;
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/streaming/StreamReceiveTask;
}
SourceFile: "StreamReceiveTask.java"
NestMembers:
org.apache.cassandra.streaming.StreamReceiveTask$1 org.apache.cassandra.streaming.StreamReceiveTask$OnCompletionRunnable
InnerClasses:
org.apache.cassandra.streaming.StreamReceiveTask$1
private OnCompletionRunnable = org.apache.cassandra.streaming.StreamReceiveTask$OnCompletionRunnable of org.apache.cassandra.streaming.StreamReceiveTask