class org.apache.cassandra.repair.RepairRunnable$3 implements com.google.common.util.concurrent.FutureCallback<java.lang.Object>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.apache.cassandra.repair.RepairRunnable$3
super_class: java.lang.Object
{
final org.apache.cassandra.repair.RepairRunnable this$0;
descriptor: Lorg/apache/cassandra/repair/RepairRunnable;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
private final java.util.UUID val$parentSession;
descriptor: Ljava/util/UUID;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final java.util.Collection val$successfulRanges;
descriptor: Ljava/util/Collection;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final java.util.concurrent.atomic.AtomicBoolean val$hasFailure;
descriptor: Ljava/util/concurrent/atomic/AtomicBoolean;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final java.lang.String val$tag;
descriptor: Ljava/lang/String;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final java.util.concurrent.atomic.AtomicInteger val$progress;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final int val$totalProgress;
descriptor: I
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final long val$startTime;
descriptor: J
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final org.apache.cassandra.tracing.TraceState val$traceState;
descriptor: Lorg/apache/cassandra/tracing/TraceState;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final com.google.common.util.concurrent.ListeningExecutorService val$executor;
descriptor: Lcom/google/common/util/concurrent/ListeningExecutorService;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
void <init>(org.apache.cassandra.repair.RepairRunnable, java.util.UUID, java.util.Collection, java.util.concurrent.atomic.AtomicBoolean, java.lang.String, java.util.concurrent.atomic.AtomicInteger, int, long, org.apache.cassandra.tracing.TraceState, com.google.common.util.concurrent.ListeningExecutorService);
descriptor: (Lorg/apache/cassandra/repair/RepairRunnable;Ljava/util/UUID;Ljava/util/Collection;Ljava/util/concurrent/atomic/AtomicBoolean;Ljava/lang/String;Ljava/util/concurrent/atomic/AtomicInteger;IJLorg/apache/cassandra/tracing/TraceState;Lcom/google/common/util/concurrent/ListeningExecutorService;)V
flags: (0x0000)
Code:
stack=3, locals=12, args_size=11
start local 0 0: aload 0
aload 1
putfield org.apache.cassandra.repair.RepairRunnable$3.this$0:Lorg/apache/cassandra/repair/RepairRunnable;
aload 0
aload 2
putfield org.apache.cassandra.repair.RepairRunnable$3.val$parentSession:Ljava/util/UUID;
aload 0
aload 3
putfield org.apache.cassandra.repair.RepairRunnable$3.val$successfulRanges:Ljava/util/Collection;
aload 0
aload 4
putfield org.apache.cassandra.repair.RepairRunnable$3.val$hasFailure:Ljava/util/concurrent/atomic/AtomicBoolean;
aload 0
aload 5
putfield org.apache.cassandra.repair.RepairRunnable$3.val$tag:Ljava/lang/String;
aload 0
aload 6
putfield org.apache.cassandra.repair.RepairRunnable$3.val$progress:Ljava/util/concurrent/atomic/AtomicInteger;
aload 0
iload 7
putfield org.apache.cassandra.repair.RepairRunnable$3.val$totalProgress:I
aload 0
lload 8
putfield org.apache.cassandra.repair.RepairRunnable$3.val$startTime:J
aload 0
aload 10
putfield org.apache.cassandra.repair.RepairRunnable$3.val$traceState:Lorg/apache/cassandra/tracing/TraceState;
aload 0
aload 11
putfield org.apache.cassandra.repair.RepairRunnable$3.val$executor:Lcom/google/common/util/concurrent/ListeningExecutorService;
aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/repair/RepairRunnable$3;
MethodParameters:
Name Flags
this$0 final
val$parentSession final
val$successfulRanges final
val$hasFailure final
val$tag final
val$progress final
val$totalProgress final
val$startTime final
val$traceState final
val$executor final
public void onSuccess(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.repair.RepairRunnable$3.val$parentSession:Ljava/util/UUID;
aload 0
getfield org.apache.cassandra.repair.RepairRunnable$3.val$successfulRanges:Ljava/util/Collection;
invokestatic org.apache.cassandra.repair.SystemDistributedKeyspace.successfulParentRepair:(Ljava/util/UUID;Ljava/util/Collection;)V
1: aload 0
getfield org.apache.cassandra.repair.RepairRunnable$3.val$hasFailure:Ljava/util/concurrent/atomic/AtomicBoolean;
invokevirtual java.util.concurrent.atomic.AtomicBoolean.get:()Z
ifeq 6
2: aload 0
getfield org.apache.cassandra.repair.RepairRunnable$3.this$0:Lorg/apache/cassandra/repair/RepairRunnable;
aload 0
getfield org.apache.cassandra.repair.RepairRunnable$3.val$tag:Ljava/lang/String;
new org.apache.cassandra.utils.progress.ProgressEvent
dup
getstatic org.apache.cassandra.utils.progress.ProgressEventType.ERROR:Lorg/apache/cassandra/utils/progress/ProgressEventType;
aload 0
getfield org.apache.cassandra.repair.RepairRunnable$3.val$progress:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
aload 0
getfield org.apache.cassandra.repair.RepairRunnable$3.val$totalProgress:I
3: ldc "Some repair failed"
invokespecial org.apache.cassandra.utils.progress.ProgressEvent.<init>:(Lorg/apache/cassandra/utils/progress/ProgressEventType;IILjava/lang/String;)V
4: invokevirtual org.apache.cassandra.repair.RepairRunnable.fireProgressEvent:(Ljava/lang/String;Lorg/apache/cassandra/utils/progress/ProgressEvent;)V
5: goto 9
6: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.repair.RepairRunnable$3.this$0:Lorg/apache/cassandra/repair/RepairRunnable;
aload 0
getfield org.apache.cassandra.repair.RepairRunnable$3.val$tag:Ljava/lang/String;
new org.apache.cassandra.utils.progress.ProgressEvent
dup
getstatic org.apache.cassandra.utils.progress.ProgressEventType.SUCCESS:Lorg/apache/cassandra/utils/progress/ProgressEventType;
aload 0
getfield org.apache.cassandra.repair.RepairRunnable$3.val$progress:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
aload 0
getfield org.apache.cassandra.repair.RepairRunnable$3.val$totalProgress:I
7: ldc "Repair completed successfully"
invokespecial org.apache.cassandra.utils.progress.ProgressEvent.<init>:(Lorg/apache/cassandra/utils/progress/ProgressEventType;IILjava/lang/String;)V
8: invokevirtual org.apache.cassandra.repair.RepairRunnable.fireProgressEvent:(Ljava/lang/String;Lorg/apache/cassandra/utils/progress/ProgressEvent;)V
9: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.repair.RepairRunnable$3.repairComplete:()V
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/cassandra/repair/RepairRunnable$3;
0 11 1 result Ljava/lang/Object;
MethodParameters:
Name Flags
result
public void onFailure(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.repair.RepairRunnable$3.this$0:Lorg/apache/cassandra/repair/RepairRunnable;
aload 0
getfield org.apache.cassandra.repair.RepairRunnable$3.val$tag:Ljava/lang/String;
new org.apache.cassandra.utils.progress.ProgressEvent
dup
getstatic org.apache.cassandra.utils.progress.ProgressEventType.ERROR:Lorg/apache/cassandra/utils/progress/ProgressEventType;
aload 0
getfield org.apache.cassandra.repair.RepairRunnable$3.val$progress:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
aload 0
getfield org.apache.cassandra.repair.RepairRunnable$3.val$totalProgress:I
aload 1
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
invokespecial org.apache.cassandra.utils.progress.ProgressEvent.<init>:(Lorg/apache/cassandra/utils/progress/ProgressEventType;IILjava/lang/String;)V
invokevirtual org.apache.cassandra.repair.RepairRunnable.fireProgressEvent:(Ljava/lang/String;Lorg/apache/cassandra/utils/progress/ProgressEvent;)V
1: aload 0
getfield org.apache.cassandra.repair.RepairRunnable$3.val$parentSession:Ljava/util/UUID;
aload 1
invokestatic org.apache.cassandra.repair.SystemDistributedKeyspace.failParentRepair:(Ljava/util/UUID;Ljava/lang/Throwable;)V
2: aload 0
invokevirtual org.apache.cassandra.repair.RepairRunnable$3.repairComplete:()V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/repair/RepairRunnable$3;
0 4 1 t Ljava/lang/Throwable;
MethodParameters:
Name Flags
t
private void repairComplete();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=5, args_size=1
start local 0 0: invokestatic java.lang.System.currentTimeMillis:()J
aload 0
getfield org.apache.cassandra.repair.RepairRunnable$3.val$startTime:J
lsub
1: iconst_1
iconst_1
2: invokestatic org.apache.commons.lang3.time.DurationFormatUtils.formatDurationWords:(JZZ)Ljava/lang/String;
astore 1
start local 1 3: ldc "Repair command #%d finished in %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.apache.cassandra.repair.RepairRunnable$3.this$0:Lorg/apache/cassandra/repair/RepairRunnable;
getfield org.apache.cassandra.repair.RepairRunnable.cmd:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 1
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 2
start local 2 4: aload 0
getfield org.apache.cassandra.repair.RepairRunnable$3.this$0:Lorg/apache/cassandra/repair/RepairRunnable;
aload 0
getfield org.apache.cassandra.repair.RepairRunnable$3.val$tag:Ljava/lang/String;
new org.apache.cassandra.utils.progress.ProgressEvent
dup
getstatic org.apache.cassandra.utils.progress.ProgressEventType.COMPLETE:Lorg/apache/cassandra/utils/progress/ProgressEventType;
aload 0
getfield org.apache.cassandra.repair.RepairRunnable$3.val$progress:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
aload 0
getfield org.apache.cassandra.repair.RepairRunnable$3.val$totalProgress:I
aload 2
invokespecial org.apache.cassandra.utils.progress.ProgressEvent.<init>:(Lorg/apache/cassandra/utils/progress/ProgressEventType;IILjava/lang/String;)V
invokevirtual org.apache.cassandra.repair.RepairRunnable.fireProgressEvent:(Ljava/lang/String;Lorg/apache/cassandra/utils/progress/ProgressEvent;)V
5: getstatic org.apache.cassandra.repair.RepairRunnable.logger:Lorg/slf4j/Logger;
aload 2
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;)V
6: aload 0
getfield org.apache.cassandra.repair.RepairRunnable$3.this$0:Lorg/apache/cassandra/repair/RepairRunnable;
getfield org.apache.cassandra.repair.RepairRunnable.options:Lorg/apache/cassandra/repair/messages/RepairOption;
invokevirtual org.apache.cassandra.repair.messages.RepairOption.isTraced:()Z
ifeq 14
aload 0
getfield org.apache.cassandra.repair.RepairRunnable$3.val$traceState:Lorg/apache/cassandra/tracing/TraceState;
ifnull 14
7: aload 0
getfield org.apache.cassandra.repair.RepairRunnable$3.this$0:Lorg/apache/cassandra/repair/RepairRunnable;
getfield org.apache.cassandra.repair.RepairRunnable.listeners:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 10
StackMap locals: org.apache.cassandra.repair.RepairRunnable$3 java.lang.String java.lang.String top java.util.Iterator
StackMap stack:
8: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.utils.progress.ProgressListener
astore 3
start local 3 9: aload 0
getfield org.apache.cassandra.repair.RepairRunnable$3.val$traceState:Lorg/apache/cassandra/tracing/TraceState;
aload 3
invokevirtual org.apache.cassandra.tracing.TraceState.removeProgressListener:(Lorg/apache/cassandra/utils/progress/ProgressListener;)V
end local 3 10: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
11: getstatic org.apache.cassandra.tracing.Tracing.instance:Lorg/apache/cassandra/tracing/Tracing;
aload 0
getfield org.apache.cassandra.repair.RepairRunnable$3.val$traceState:Lorg/apache/cassandra/tracing/TraceState;
invokevirtual org.apache.cassandra.tracing.Tracing.set:(Lorg/apache/cassandra/tracing/TraceState;)V
12: aload 2
iconst_0
anewarray java.lang.Object
invokestatic org.apache.cassandra.tracing.Tracing.traceRepair:(Ljava/lang/String;[Ljava/lang/Object;)V
13: getstatic org.apache.cassandra.tracing.Tracing.instance:Lorg/apache/cassandra/tracing/Tracing;
invokevirtual org.apache.cassandra.tracing.Tracing.stopSession:()V
14: StackMap locals: org.apache.cassandra.repair.RepairRunnable$3 java.lang.String java.lang.String
StackMap stack:
aload 0
getfield org.apache.cassandra.repair.RepairRunnable$3.val$executor:Lcom/google/common/util/concurrent/ListeningExecutorService;
invokeinterface com.google.common.util.concurrent.ListeningExecutorService.shutdownNow:()Ljava/util/List;
pop
15: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/apache/cassandra/repair/RepairRunnable$3;
3 16 1 duration Ljava/lang/String;
4 16 2 message Ljava/lang/String;
9 10 3 listener Lorg/apache/cassandra/utils/progress/ProgressListener;
}
Signature: Ljava/lang/Object;Lcom/google/common/util/concurrent/FutureCallback<Ljava/lang/Object;>;
SourceFile: "RepairRunnable.java"
EnclosingMethod: org.apache.cassandra.repair.RepairRunnable.runMayThrow:()V
NestHost: org.apache.cassandra.repair.RepairRunnable
InnerClasses:
org.apache.cassandra.repair.RepairRunnable$3