public class org.apache.cassandra.tools.RepairRunner extends org.apache.cassandra.utils.progress.jmx.JMXNotificationProgressListener
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.tools.RepairRunner
super_class: org.apache.cassandra.utils.progress.jmx.JMXNotificationProgressListener
{
private final java.text.SimpleDateFormat format;
descriptor: Ljava/text/SimpleDateFormat;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.io.PrintStream out;
descriptor: Ljava/io/PrintStream;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.apache.cassandra.service.StorageServiceMBean ssProxy;
descriptor: Lorg/apache/cassandra/service/StorageServiceMBean;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String keyspace;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Map<java.lang.String, java.lang.String> options;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
private final java.util.concurrent.locks.Condition condition;
descriptor: Ljava/util/concurrent/locks/Condition;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int cmd;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private volatile boolean hasNotificationLost;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile java.lang.Exception error;
descriptor: Ljava/lang/Exception;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
public void <init>(java.io.PrintStream, org.apache.cassandra.service.StorageServiceMBean, java.lang.String, java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/io/PrintStream;Lorg/apache/cassandra/service/StorageServiceMBean;Ljava/lang/String;Ljava/util/Map;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial org.apache.cassandra.utils.progress.jmx.JMXNotificationProgressListener.<init>:()V
1: aload 0
new java.text.SimpleDateFormat
dup
ldc "yyyy-MM-dd HH:mm:ss,SSS"
invokespecial java.text.SimpleDateFormat.<init>:(Ljava/lang/String;)V
putfield org.apache.cassandra.tools.RepairRunner.format:Ljava/text/SimpleDateFormat;
2: aload 0
new org.apache.cassandra.utils.concurrent.SimpleCondition
dup
invokespecial org.apache.cassandra.utils.concurrent.SimpleCondition.<init>:()V
putfield org.apache.cassandra.tools.RepairRunner.condition:Ljava/util/concurrent/locks/Condition;
3: aload 0
aload 1
putfield org.apache.cassandra.tools.RepairRunner.out:Ljava/io/PrintStream;
4: aload 0
aload 2
putfield org.apache.cassandra.tools.RepairRunner.ssProxy:Lorg/apache/cassandra/service/StorageServiceMBean;
5: aload 0
aload 3
putfield org.apache.cassandra.tools.RepairRunner.keyspace:Ljava/lang/String;
6: aload 0
aload 4
putfield org.apache.cassandra.tools.RepairRunner.options:Ljava/util/Map;
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/tools/RepairRunner;
0 8 1 out Ljava/io/PrintStream;
0 8 2 ssProxy Lorg/apache/cassandra/service/StorageServiceMBean;
0 8 3 keyspace Ljava/lang/String;
0 8 4 options Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Signature: (Ljava/io/PrintStream;Lorg/apache/cassandra/service/StorageServiceMBean;Ljava/lang/String;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)V
MethodParameters:
Name Flags
out
ssProxy
keyspace
options
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=1
start local 0 0: aload 0
aload 0
getfield org.apache.cassandra.tools.RepairRunner.ssProxy:Lorg/apache/cassandra/service/StorageServiceMBean;
aload 0
getfield org.apache.cassandra.tools.RepairRunner.keyspace:Ljava/lang/String;
aload 0
getfield org.apache.cassandra.tools.RepairRunner.options:Ljava/util/Map;
invokeinterface org.apache.cassandra.service.StorageServiceMBean.repairAsync:(Ljava/lang/String;Ljava/util/Map;)I
putfield org.apache.cassandra.tools.RepairRunner.cmd:I
1: aload 0
getfield org.apache.cassandra.tools.RepairRunner.cmd:I
ifgt 5
2: ldc "[%s] Replication factor is 1. No repair is needed for keyspace '%s'"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.apache.cassandra.tools.RepairRunner.format:Ljava/text/SimpleDateFormat;
invokestatic java.lang.System.currentTimeMillis:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokevirtual java.text.SimpleDateFormat.format:(Ljava/lang/Object;)Ljava/lang/String;
aastore
dup
iconst_1
aload 0
getfield org.apache.cassandra.tools.RepairRunner.keyspace:Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 1
start local 1 3: aload 0
getfield org.apache.cassandra.tools.RepairRunner.out:Ljava/io/PrintStream;
aload 1
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 1 4: goto 10
5: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.tools.RepairRunner.condition:Ljava/util/concurrent/locks/Condition;
invokeinterface java.util.concurrent.locks.Condition.await:()V
6: aload 0
getfield org.apache.cassandra.tools.RepairRunner.error:Ljava/lang/Exception;
ifnull 8
7: aload 0
getfield org.apache.cassandra.tools.RepairRunner.error:Ljava/lang/Exception;
athrow
8: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.tools.RepairRunner.hasNotificationLost:Z
ifeq 10
9: aload 0
getfield org.apache.cassandra.tools.RepairRunner.out:Ljava/io/PrintStream;
ldc "There were some lost notification(s). You should check server log for repair status of keyspace %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.apache.cassandra.tools.RepairRunner.keyspace:Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
10: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/cassandra/tools/RepairRunner;
3 4 1 message Ljava/lang/String;
Exceptions:
throws java.lang.Exception
public boolean isInterestedIn(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
new java.lang.StringBuilder
dup
ldc "repair:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.cassandra.tools.RepairRunner.cmd:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/tools/RepairRunner;
0 1 1 tag Ljava/lang/String;
MethodParameters:
Name Flags
tag
public void handleNotificationLost(long, java.lang.String);
descriptor: (JLjava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 3 0: aload 0
iconst_1
putfield org.apache.cassandra.tools.RepairRunner.hasNotificationLost:Z
1: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/tools/RepairRunner;
0 2 1 timestamp J
0 2 3 message Ljava/lang/String;
MethodParameters:
Name Flags
timestamp
message
public void handleConnectionClosed(long, java.lang.String);
descriptor: (JLjava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 3 0: aload 0
lload 1
aload 3
invokevirtual org.apache.cassandra.tools.RepairRunner.handleConnectionFailed:(JLjava/lang/String;)V
1: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/tools/RepairRunner;
0 2 1 timestamp J
0 2 3 message Ljava/lang/String;
MethodParameters:
Name Flags
timestamp
message
public void handleConnectionFailed(long, java.lang.String);
descriptor: (JLjava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=10, locals=4, args_size=3
start local 0 start local 1 start local 3 0: aload 0
new java.io.IOException
dup
ldc "[%s] JMX connection closed. You should check server log for repair status of keyspace %s(Subsequent keyspaces are not going to be repaired)."
iconst_2
anewarray java.lang.Object
dup
iconst_0
1: aload 0
getfield org.apache.cassandra.tools.RepairRunner.format:Ljava/text/SimpleDateFormat;
lload 1
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokevirtual java.text.SimpleDateFormat.format:(Ljava/lang/Object;)Ljava/lang/String;
aastore
dup
iconst_1
aload 0
getfield org.apache.cassandra.tools.RepairRunner.keyspace:Ljava/lang/String;
aastore
2: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
putfield org.apache.cassandra.tools.RepairRunner.error:Ljava/lang/Exception;
3: aload 0
getfield org.apache.cassandra.tools.RepairRunner.condition:Ljava/util/concurrent/locks/Condition;
invokeinterface java.util.concurrent.locks.Condition.signalAll:()V
4: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/tools/RepairRunner;
0 5 1 timestamp J
0 5 3 message Ljava/lang/String;
MethodParameters:
Name Flags
timestamp
message
public void progress(java.lang.String, org.apache.cassandra.utils.progress.ProgressEvent);
descriptor: (Ljava/lang/String;Lorg/apache/cassandra/utils/progress/ProgressEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual org.apache.cassandra.utils.progress.ProgressEvent.getType:()Lorg/apache/cassandra/utils/progress/ProgressEventType;
astore 3
start local 3 1: ldc "[%s] %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.apache.cassandra.tools.RepairRunner.format:Ljava/text/SimpleDateFormat;
invokestatic java.lang.System.currentTimeMillis:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokevirtual java.text.SimpleDateFormat.format:(Ljava/lang/Object;)Ljava/lang/String;
aastore
dup
iconst_1
aload 2
invokevirtual org.apache.cassandra.utils.progress.ProgressEvent.getMessage:()Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 4
start local 4 2: aload 3
getstatic org.apache.cassandra.utils.progress.ProgressEventType.PROGRESS:Lorg/apache/cassandra/utils/progress/ProgressEventType;
if_acmpne 4
3: new java.lang.StringBuilder
dup
aload 4
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " (progress: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual org.apache.cassandra.utils.progress.ProgressEvent.getProgressPercentage:()D
d2i
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "%)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
4: StackMap locals: org.apache.cassandra.utils.progress.ProgressEventType java.lang.String
StackMap stack:
aload 0
getfield org.apache.cassandra.tools.RepairRunner.out:Ljava/io/PrintStream;
aload 4
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
5: aload 3
getstatic org.apache.cassandra.utils.progress.ProgressEventType.ERROR:Lorg/apache/cassandra/utils/progress/ProgressEventType;
if_acmpne 7
6: aload 0
new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "Repair job has failed with the error message: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
putfield org.apache.cassandra.tools.RepairRunner.error:Ljava/lang/Exception;
7: StackMap locals:
StackMap stack:
aload 3
getstatic org.apache.cassandra.utils.progress.ProgressEventType.COMPLETE:Lorg/apache/cassandra/utils/progress/ProgressEventType;
if_acmpne 9
8: aload 0
getfield org.apache.cassandra.tools.RepairRunner.condition:Ljava/util/concurrent/locks/Condition;
invokeinterface java.util.concurrent.locks.Condition.signalAll:()V
9: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/cassandra/tools/RepairRunner;
0 10 1 tag Ljava/lang/String;
0 10 2 event Lorg/apache/cassandra/utils/progress/ProgressEvent;
1 10 3 type Lorg/apache/cassandra/utils/progress/ProgressEventType;
2 10 4 message Ljava/lang/String;
MethodParameters:
Name Flags
tag
event
}
SourceFile: "RepairRunner.java"