public class org.apache.cassandra.service.ReadCallback implements org.apache.cassandra.net.IAsyncCallbackWithFailure<org.apache.cassandra.db.ReadResponse>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.service.ReadCallback
super_class: java.lang.Object
{
protected static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
public final org.apache.cassandra.service.ResponseResolver resolver;
descriptor: Lorg/apache/cassandra/service/ResponseResolver;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
private final org.apache.cassandra.utils.concurrent.SimpleCondition condition;
descriptor: Lorg/apache/cassandra/utils/concurrent/SimpleCondition;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long queryStartNanoTime;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
final int blockfor;
descriptor: I
flags: (0x0010) ACC_FINAL
final java.util.List<java.net.InetAddress> endpoints;
descriptor: Ljava/util/List;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/List<Ljava/net/InetAddress;>;
private final org.apache.cassandra.db.ReadCommand command;
descriptor: Lorg/apache/cassandra/db/ReadCommand;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.apache.cassandra.db.ConsistencyLevel consistencyLevel;
descriptor: Lorg/apache/cassandra/db/ConsistencyLevel;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<org.apache.cassandra.service.ReadCallback> recievedUpdater;
descriptor: Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater<Lorg/apache/cassandra/service/ReadCallback;>;
private volatile int received;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<org.apache.cassandra.service.ReadCallback> failuresUpdater;
descriptor: Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater<Lorg/apache/cassandra/service/ReadCallback;>;
private volatile int failures;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private final java.util.Map<java.net.InetAddress, org.apache.cassandra.exceptions.RequestFailureReason> failureReasonByEndpoint;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/net/InetAddress;Lorg/apache/cassandra/exceptions/RequestFailureReason;>;
private final org.apache.cassandra.db.Keyspace keyspace;
descriptor: Lorg/apache/cassandra/db/Keyspace;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
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=2, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/service/ReadCallback;
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.service.ReadCallback.$assertionsDisabled:Z
3: ldc Lorg/apache/cassandra/service/ReadCallback;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.service.ReadCallback.logger:Lorg/slf4j/Logger;
4: ldc Lorg/apache/cassandra/service/ReadCallback;
ldc "received"
invokestatic java.util.concurrent.atomic.AtomicIntegerFieldUpdater.newUpdater:(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
5: putstatic org.apache.cassandra.service.ReadCallback.recievedUpdater:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
6: ldc Lorg/apache/cassandra/service/ReadCallback;
ldc "failures"
invokestatic java.util.concurrent.atomic.AtomicIntegerFieldUpdater.newUpdater:(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
7: putstatic org.apache.cassandra.service.ReadCallback.failuresUpdater:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
8: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.apache.cassandra.service.ResponseResolver, org.apache.cassandra.db.ConsistencyLevel, org.apache.cassandra.db.ReadCommand, java.util.List<java.net.InetAddress>, );
descriptor: (Lorg/apache/cassandra/service/ResponseResolver;Lorg/apache/cassandra/db/ConsistencyLevel;Lorg/apache/cassandra/db/ReadCommand;Ljava/util/List;J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
aload 1
1: aload 2
2: aload 2
aload 3
invokevirtual org.apache.cassandra.db.ReadCommand.metadata:()Lorg/apache/cassandra/config/CFMetaData;
getfield org.apache.cassandra.config.CFMetaData.ksName:Ljava/lang/String;
invokestatic org.apache.cassandra.db.Keyspace.open:(Ljava/lang/String;)Lorg/apache/cassandra/db/Keyspace;
invokevirtual org.apache.cassandra.db.ConsistencyLevel.blockFor:(Lorg/apache/cassandra/db/Keyspace;)I
3: aload 3
4: aload 3
invokevirtual org.apache.cassandra.db.ReadCommand.metadata:()Lorg/apache/cassandra/config/CFMetaData;
getfield org.apache.cassandra.config.CFMetaData.ksName:Ljava/lang/String;
invokestatic org.apache.cassandra.db.Keyspace.open:(Ljava/lang/String;)Lorg/apache/cassandra/db/Keyspace;
5: aload 4
6: lload 5
invokespecial org.apache.cassandra.service.ReadCallback.<init>:(Lorg/apache/cassandra/service/ResponseResolver;Lorg/apache/cassandra/db/ConsistencyLevel;ILorg/apache/cassandra/db/ReadCommand;Lorg/apache/cassandra/db/Keyspace;Ljava/util/List;J)V
7: return
end local 5 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/service/ReadCallback;
0 8 1 resolver Lorg/apache/cassandra/service/ResponseResolver;
0 8 2 consistencyLevel Lorg/apache/cassandra/db/ConsistencyLevel;
0 8 3 command Lorg/apache/cassandra/db/ReadCommand;
0 8 4 filteredEndpoints Ljava/util/List<Ljava/net/InetAddress;>;
0 8 5 queryStartNanoTime J
Signature: (Lorg/apache/cassandra/service/ResponseResolver;Lorg/apache/cassandra/db/ConsistencyLevel;Lorg/apache/cassandra/db/ReadCommand;Ljava/util/List<Ljava/net/InetAddress;>;J)V
MethodParameters:
Name Flags
resolver
consistencyLevel
command
filteredEndpoints
queryStartNanoTime
public void <init>(org.apache.cassandra.service.ResponseResolver, org.apache.cassandra.db.ConsistencyLevel, int, org.apache.cassandra.db.ReadCommand, org.apache.cassandra.db.Keyspace, java.util.List<java.net.InetAddress>, );
descriptor: (Lorg/apache/cassandra/service/ResponseResolver;Lorg/apache/cassandra/db/ConsistencyLevel;ILorg/apache/cassandra/db/ReadCommand;Lorg/apache/cassandra/db/Keyspace;Ljava/util/List;J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=9, args_size=8
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new org.apache.cassandra.utils.concurrent.SimpleCondition
dup
invokespecial org.apache.cassandra.utils.concurrent.SimpleCondition.<init>:()V
putfield org.apache.cassandra.service.ReadCallback.condition:Lorg/apache/cassandra/utils/concurrent/SimpleCondition;
2: aload 0
iconst_0
putfield org.apache.cassandra.service.ReadCallback.received:I
3: aload 0
iconst_0
putfield org.apache.cassandra.service.ReadCallback.failures:I
4: aload 0
aload 4
putfield org.apache.cassandra.service.ReadCallback.command:Lorg/apache/cassandra/db/ReadCommand;
5: aload 0
aload 5
putfield org.apache.cassandra.service.ReadCallback.keyspace:Lorg/apache/cassandra/db/Keyspace;
6: aload 0
iload 3
putfield org.apache.cassandra.service.ReadCallback.blockfor:I
7: aload 0
aload 2
putfield org.apache.cassandra.service.ReadCallback.consistencyLevel:Lorg/apache/cassandra/db/ConsistencyLevel;
8: aload 0
aload 1
putfield org.apache.cassandra.service.ReadCallback.resolver:Lorg/apache/cassandra/service/ResponseResolver;
9: aload 0
lload 7
putfield org.apache.cassandra.service.ReadCallback.queryStartNanoTime:J
10: aload 0
aload 6
putfield org.apache.cassandra.service.ReadCallback.endpoints:Ljava/util/List;
11: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield org.apache.cassandra.service.ReadCallback.failureReasonByEndpoint:Ljava/util/Map;
12: getstatic org.apache.cassandra.service.ReadCallback.$assertionsDisabled:Z
ifne 13
aload 4
instanceof org.apache.cassandra.db.PartitionRangeReadCommand
ifeq 13
iload 3
aload 6
invokeinterface java.util.List.size:()I
if_icmpge 13
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
13: StackMap locals: org.apache.cassandra.service.ReadCallback org.apache.cassandra.service.ResponseResolver org.apache.cassandra.db.ConsistencyLevel int org.apache.cassandra.db.ReadCommand org.apache.cassandra.db.Keyspace java.util.List long
StackMap stack:
getstatic org.apache.cassandra.service.ReadCallback.logger:Lorg/slf4j/Logger;
invokeinterface org.slf4j.Logger.isTraceEnabled:()Z
ifeq 15
14: getstatic org.apache.cassandra.service.ReadCallback.logger:Lorg/slf4j/Logger;
ldc "Blockfor is {}; setting up requests to {}"
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 0
getfield org.apache.cassandra.service.ReadCallback.endpoints:Ljava/util/List;
ldc ","
invokestatic org.apache.commons.lang3.StringUtils.join:(Ljava/lang/Iterable;Ljava/lang/String;)Ljava/lang/String;
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
15: StackMap locals:
StackMap stack:
return
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/apache/cassandra/service/ReadCallback;
0 16 1 resolver Lorg/apache/cassandra/service/ResponseResolver;
0 16 2 consistencyLevel Lorg/apache/cassandra/db/ConsistencyLevel;
0 16 3 blockfor I
0 16 4 command Lorg/apache/cassandra/db/ReadCommand;
0 16 5 keyspace Lorg/apache/cassandra/db/Keyspace;
0 16 6 endpoints Ljava/util/List<Ljava/net/InetAddress;>;
0 16 7 queryStartNanoTime J
Signature: (Lorg/apache/cassandra/service/ResponseResolver;Lorg/apache/cassandra/db/ConsistencyLevel;ILorg/apache/cassandra/db/ReadCommand;Lorg/apache/cassandra/db/Keyspace;Ljava/util/List<Ljava/net/InetAddress;>;J)V
MethodParameters:
Name Flags
resolver
consistencyLevel
blockfor
command
keyspace
endpoints
queryStartNanoTime
public boolean await(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=3
start local 0 start local 1 start local 3 0: aload 3
lload 1
invokevirtual java.util.concurrent.TimeUnit.toNanos:(J)J
invokestatic java.lang.System.nanoTime:()J
aload 0
getfield org.apache.cassandra.service.ReadCallback.queryStartNanoTime:J
lsub
lsub
lstore 4
start local 4 1: aload 0
getfield org.apache.cassandra.service.ReadCallback.condition:Lorg/apache/cassandra/utils/concurrent/SimpleCondition;
lload 4
getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual org.apache.cassandra.utils.concurrent.SimpleCondition.await:(JLjava/util/concurrent/TimeUnit;)Z
2: ireturn
3: StackMap locals: org.apache.cassandra.service.ReadCallback long java.util.concurrent.TimeUnit long
StackMap stack: java.lang.InterruptedException
astore 6
start local 6 4: new java.lang.AssertionError
dup
aload 6
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 6 end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/service/ReadCallback;
0 5 1 timePastStart J
0 5 3 unit Ljava/util/concurrent/TimeUnit;
1 5 4 time J
4 5 6 ex Ljava/lang/InterruptedException;
Exception table:
from to target type
1 2 3 Class java.lang.InterruptedException
MethodParameters:
Name Flags
timePastStart
unit
public void awaitResults();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=1
start local 0 0: aload 0
aload 0
getfield org.apache.cassandra.service.ReadCallback.command:Lorg/apache/cassandra/db/ReadCommand;
invokevirtual org.apache.cassandra.db.ReadCommand.getTimeout:()J
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual org.apache.cassandra.service.ReadCallback.await:(JLjava/util/concurrent/TimeUnit;)Z
istore 1
start local 1 1: aload 0
getfield org.apache.cassandra.service.ReadCallback.blockfor:I
aload 0
getfield org.apache.cassandra.service.ReadCallback.failures:I
iadd
aload 0
getfield org.apache.cassandra.service.ReadCallback.endpoints:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmple 2
iconst_1
goto 3
StackMap locals: int
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: istore 2
start local 2 4: iload 1
ifeq 6
iload 2
ifne 6
5: return
6: StackMap locals: int
StackMap stack:
invokestatic org.apache.cassandra.tracing.Tracing.isTracing:()Z
ifeq 15
7: aload 0
getfield org.apache.cassandra.service.ReadCallback.received:I
ifle 9
aload 0
getfield org.apache.cassandra.service.ReadCallback.resolver:Lorg/apache/cassandra/service/ResponseResolver;
invokevirtual org.apache.cassandra.service.ResponseResolver.isDataPresent:()Z
ifeq 8
ldc " (including data)"
goto 10
StackMap locals:
StackMap stack:
8: ldc " (only digests)"
goto 10
StackMap locals:
StackMap stack:
9: ldc ""
StackMap locals:
StackMap stack: java.lang.String
10: astore 3
start local 3 11: ldc "{}; received {} of {} responses{}"
iconst_4
anewarray java.lang.Object
dup
iconst_0
iload 2
ifeq 12
ldc "Failed"
goto 13
StackMap locals: org.apache.cassandra.service.ReadCallback int int java.lang.String
StackMap stack: java.lang.String java.lang.Object[] java.lang.Object[] int
12: ldc "Timed out"
StackMap locals: org.apache.cassandra.service.ReadCallback int int java.lang.String
StackMap stack: java.lang.String java.lang.Object[] java.lang.Object[] int java.lang.String
13: aastore
dup
iconst_1
aload 0
getfield org.apache.cassandra.service.ReadCallback.received:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
aload 0
getfield org.apache.cassandra.service.ReadCallback.blockfor:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_3
aload 3
aastore
invokestatic org.apache.cassandra.tracing.Tracing.trace:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 3 14: goto 23
15: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.service.ReadCallback.logger:Lorg/slf4j/Logger;
invokeinterface org.slf4j.Logger.isDebugEnabled:()Z
ifeq 23
16: aload 0
getfield org.apache.cassandra.service.ReadCallback.received:I
ifle 18
aload 0
getfield org.apache.cassandra.service.ReadCallback.resolver:Lorg/apache/cassandra/service/ResponseResolver;
invokevirtual org.apache.cassandra.service.ResponseResolver.isDataPresent:()Z
ifeq 17
ldc " (including data)"
goto 19
StackMap locals:
StackMap stack:
17: ldc " (only digests)"
goto 19
StackMap locals:
StackMap stack:
18: ldc ""
StackMap locals:
StackMap stack: java.lang.String
19: astore 3
start local 3 20: getstatic org.apache.cassandra.service.ReadCallback.logger:Lorg/slf4j/Logger;
ldc "{}; received {} of {} responses{}"
iconst_4
anewarray java.lang.Object
dup
iconst_0
iload 2
ifeq 21
ldc "Failed"
goto 22
StackMap locals: org.apache.cassandra.service.ReadCallback int int java.lang.String
StackMap stack: org.slf4j.Logger java.lang.String java.lang.Object[] java.lang.Object[] int
21: ldc "Timed out"
StackMap locals: org.apache.cassandra.service.ReadCallback int int java.lang.String
StackMap stack: org.slf4j.Logger java.lang.String java.lang.Object[] java.lang.Object[] int java.lang.String
22: aastore
dup
iconst_1
aload 0
getfield org.apache.cassandra.service.ReadCallback.received:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
aload 0
getfield org.apache.cassandra.service.ReadCallback.blockfor:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_3
aload 3
aastore
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 3 23: StackMap locals:
StackMap stack:
iload 2
ifeq 25
24: new org.apache.cassandra.exceptions.ReadFailureException
dup
aload 0
getfield org.apache.cassandra.service.ReadCallback.consistencyLevel:Lorg/apache/cassandra/db/ConsistencyLevel;
aload 0
getfield org.apache.cassandra.service.ReadCallback.received:I
aload 0
getfield org.apache.cassandra.service.ReadCallback.blockfor:I
aload 0
getfield org.apache.cassandra.service.ReadCallback.resolver:Lorg/apache/cassandra/service/ResponseResolver;
invokevirtual org.apache.cassandra.service.ResponseResolver.isDataPresent:()Z
aload 0
getfield org.apache.cassandra.service.ReadCallback.failureReasonByEndpoint:Ljava/util/Map;
invokespecial org.apache.cassandra.exceptions.ReadFailureException.<init>:(Lorg/apache/cassandra/db/ConsistencyLevel;IIZLjava/util/Map;)V
goto 26
25: StackMap locals:
StackMap stack:
new org.apache.cassandra.exceptions.ReadTimeoutException
dup
aload 0
getfield org.apache.cassandra.service.ReadCallback.consistencyLevel:Lorg/apache/cassandra/db/ConsistencyLevel;
aload 0
getfield org.apache.cassandra.service.ReadCallback.received:I
aload 0
getfield org.apache.cassandra.service.ReadCallback.blockfor:I
aload 0
getfield org.apache.cassandra.service.ReadCallback.resolver:Lorg/apache/cassandra/service/ResponseResolver;
invokevirtual org.apache.cassandra.service.ResponseResolver.isDataPresent:()Z
invokespecial org.apache.cassandra.exceptions.ReadTimeoutException.<init>:(Lorg/apache/cassandra/db/ConsistencyLevel;IIZ)V
26: StackMap locals:
StackMap stack: org.apache.cassandra.exceptions.RequestExecutionException
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lorg/apache/cassandra/service/ReadCallback;
1 27 1 signaled Z
4 27 2 failed Z
11 14 3 gotData Ljava/lang/String;
20 23 3 gotData Ljava/lang/String;
Exceptions:
throws org.apache.cassandra.exceptions.ReadFailureException, org.apache.cassandra.exceptions.ReadTimeoutException
public org.apache.cassandra.db.partitions.PartitionIterator get();
descriptor: ()Lorg/apache/cassandra/db/partitions/PartitionIterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.cassandra.service.ReadCallback.awaitResults:()V
1: aload 0
getfield org.apache.cassandra.service.ReadCallback.blockfor:I
iconst_1
if_icmpne 2
aload 0
getfield org.apache.cassandra.service.ReadCallback.resolver:Lorg/apache/cassandra/service/ResponseResolver;
invokevirtual org.apache.cassandra.service.ResponseResolver.getData:()Lorg/apache/cassandra/db/partitions/PartitionIterator;
goto 3
StackMap locals:
StackMap stack:
2: aload 0
getfield org.apache.cassandra.service.ReadCallback.resolver:Lorg/apache/cassandra/service/ResponseResolver;
invokevirtual org.apache.cassandra.service.ResponseResolver.resolve:()Lorg/apache/cassandra/db/partitions/PartitionIterator;
StackMap locals:
StackMap stack: org.apache.cassandra.db.partitions.PartitionIterator
3: astore 1
start local 1 4: getstatic org.apache.cassandra.service.ReadCallback.logger:Lorg/slf4j/Logger;
invokeinterface org.slf4j.Logger.isTraceEnabled:()Z
ifeq 6
5: getstatic org.apache.cassandra.service.ReadCallback.logger:Lorg/slf4j/Logger;
ldc "Read: {} ms."
getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
invokestatic java.lang.System.nanoTime:()J
aload 0
getfield org.apache.cassandra.service.ReadCallback.queryStartNanoTime:J
lsub
invokevirtual java.util.concurrent.TimeUnit.toMillis:(J)J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
6: StackMap locals: org.apache.cassandra.db.partitions.PartitionIterator
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/service/ReadCallback;
4 7 1 result Lorg/apache/cassandra/db/partitions/PartitionIterator;
Exceptions:
throws org.apache.cassandra.exceptions.ReadFailureException, org.apache.cassandra.exceptions.ReadTimeoutException, org.apache.cassandra.service.DigestMismatchException
public int blockFor();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.service.ReadCallback.blockfor:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/service/ReadCallback;
public void response(org.apache.cassandra.net.MessageIn<org.apache.cassandra.db.ReadResponse>);
descriptor: (Lorg/apache/cassandra/net/MessageIn;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.service.ReadCallback.resolver:Lorg/apache/cassandra/service/ResponseResolver;
aload 1
invokevirtual org.apache.cassandra.service.ResponseResolver.preprocess:(Lorg/apache/cassandra/net/MessageIn;)V
1: aload 0
aload 1
getfield org.apache.cassandra.net.MessageIn.from:Ljava/net/InetAddress;
invokevirtual org.apache.cassandra.service.ReadCallback.waitingFor:(Ljava/net/InetAddress;)Z
ifeq 3
2: getstatic org.apache.cassandra.service.ReadCallback.recievedUpdater:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
aload 0
invokevirtual java.util.concurrent.atomic.AtomicIntegerFieldUpdater.incrementAndGet:(Ljava/lang/Object;)I
goto 4
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.service.ReadCallback.received:I
4: StackMap locals:
StackMap stack: int
istore 2
start local 2 5: iload 2
aload 0
getfield org.apache.cassandra.service.ReadCallback.blockfor:I
if_icmplt 12
aload 0
getfield org.apache.cassandra.service.ReadCallback.resolver:Lorg/apache/cassandra/service/ResponseResolver;
invokevirtual org.apache.cassandra.service.ResponseResolver.isDataPresent:()Z
ifeq 12
6: aload 0
getfield org.apache.cassandra.service.ReadCallback.condition:Lorg/apache/cassandra/utils/concurrent/SimpleCondition;
invokevirtual org.apache.cassandra.utils.concurrent.SimpleCondition.signalAll:()V
7: aload 0
getfield org.apache.cassandra.service.ReadCallback.blockfor:I
aload 0
getfield org.apache.cassandra.service.ReadCallback.endpoints:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmpge 12
iload 2
aload 0
getfield org.apache.cassandra.service.ReadCallback.endpoints:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmpne 12
8: getstatic org.apache.cassandra.tracing.Tracing.instance:Lorg/apache/cassandra/tracing/Tracing;
invokevirtual org.apache.cassandra.tracing.Tracing.get:()Lorg/apache/cassandra/tracing/TraceState;
astore 3
start local 3 9: aload 3
ifnull 11
10: aload 3
ldc "Initiating read-repair"
invokevirtual org.apache.cassandra.tracing.TraceState.trace:(Ljava/lang/String;)V
11: StackMap locals: int org.apache.cassandra.tracing.TraceState
StackMap stack:
getstatic org.apache.cassandra.concurrent.Stage.READ_REPAIR:Lorg/apache/cassandra/concurrent/Stage;
invokestatic org.apache.cassandra.concurrent.StageManager.getStage:(Lorg/apache/cassandra/concurrent/Stage;)Lorg/apache/cassandra/concurrent/LocalAwareExecutorService;
new org.apache.cassandra.service.ReadCallback$AsyncRepairRunner
dup
aload 0
aload 3
aload 0
getfield org.apache.cassandra.service.ReadCallback.queryStartNanoTime:J
invokespecial org.apache.cassandra.service.ReadCallback$AsyncRepairRunner.<init>:(Lorg/apache/cassandra/service/ReadCallback;Lorg/apache/cassandra/tracing/TraceState;J)V
invokeinterface org.apache.cassandra.concurrent.LocalAwareExecutorService.execute:(Ljava/lang/Runnable;)V
end local 3 12: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/apache/cassandra/service/ReadCallback;
0 13 1 message Lorg/apache/cassandra/net/MessageIn<Lorg/apache/cassandra/db/ReadResponse;>;
5 13 2 n I
9 12 3 traceState Lorg/apache/cassandra/tracing/TraceState;
Signature: (Lorg/apache/cassandra/net/MessageIn<Lorg/apache/cassandra/db/ReadResponse;>;)V
MethodParameters:
Name Flags
message
private boolean waitingFor(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.service.ReadCallback.consistencyLevel:Lorg/apache/cassandra/db/ConsistencyLevel;
invokevirtual org.apache.cassandra.db.ConsistencyLevel.isDatacenterLocal:()Z
ifeq 2
1: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getLocalDataCenter:()Ljava/lang/String;
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getEndpointSnitch:()Lorg/apache/cassandra/locator/IEndpointSnitch;
aload 1
invokeinterface org.apache.cassandra.locator.IEndpointSnitch.getDatacenter:(Ljava/net/InetAddress;)Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
goto 3
2: StackMap locals:
StackMap stack:
iconst_1
3: StackMap locals:
StackMap stack: int
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/service/ReadCallback;
0 4 1 from Ljava/net/InetAddress;
MethodParameters:
Name Flags
from
public int getReceivedCount();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.service.ReadCallback.received:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/service/ReadCallback;
public void response(org.apache.cassandra.db.ReadResponse);
descriptor: (Lorg/apache/cassandra/db/ReadResponse;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: invokestatic org.apache.cassandra.utils.FBUtilities.getBroadcastAddress:()Ljava/net/InetAddress;
1: aload 1
2: invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
3: getstatic org.apache.cassandra.net.MessagingService$Verb.INTERNAL_RESPONSE:Lorg/apache/cassandra/net/MessagingService$Verb;
4: getstatic org.apache.cassandra.net.MessagingService.current_version:I
5: invokestatic org.apache.cassandra.net.MessageIn.create:(Ljava/net/InetAddress;Ljava/lang/Object;Ljava/util/Map;Lorg/apache/cassandra/net/MessagingService$Verb;I)Lorg/apache/cassandra/net/MessageIn;
astore 2
start local 2 6: aload 0
aload 2
invokevirtual org.apache.cassandra.service.ReadCallback.response:(Lorg/apache/cassandra/net/MessageIn;)V
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/service/ReadCallback;
0 8 1 result Lorg/apache/cassandra/db/ReadResponse;
6 8 2 message Lorg/apache/cassandra/net/MessageIn<Lorg/apache/cassandra/db/ReadResponse;>;
MethodParameters:
Name Flags
result
public void assureSufficientLiveNodes();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.service.ReadCallback.consistencyLevel:Lorg/apache/cassandra/db/ConsistencyLevel;
aload 0
getfield org.apache.cassandra.service.ReadCallback.keyspace:Lorg/apache/cassandra/db/Keyspace;
aload 0
getfield org.apache.cassandra.service.ReadCallback.endpoints:Ljava/util/List;
invokevirtual org.apache.cassandra.db.ConsistencyLevel.assureSufficientLiveNodes:(Lorg/apache/cassandra/db/Keyspace;Ljava/lang/Iterable;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/service/ReadCallback;
Exceptions:
throws org.apache.cassandra.exceptions.UnavailableException
public boolean isLatencyForSnitch();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/service/ReadCallback;
public void onFailure(java.net.InetAddress, org.apache.cassandra.exceptions.RequestFailureReason);
descriptor: (Ljava/net/InetAddress;Lorg/apache/cassandra/exceptions/RequestFailureReason;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual org.apache.cassandra.service.ReadCallback.waitingFor:(Ljava/net/InetAddress;)Z
ifeq 2
1: getstatic org.apache.cassandra.service.ReadCallback.failuresUpdater:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
aload 0
invokevirtual java.util.concurrent.atomic.AtomicIntegerFieldUpdater.incrementAndGet:(Ljava/lang/Object;)I
goto 3
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.service.ReadCallback.failures:I
3: StackMap locals:
StackMap stack: int
istore 3
start local 3 4: aload 0
getfield org.apache.cassandra.service.ReadCallback.failureReasonByEndpoint:Ljava/util/Map;
aload 1
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: aload 0
getfield org.apache.cassandra.service.ReadCallback.blockfor:I
iload 3
iadd
aload 0
getfield org.apache.cassandra.service.ReadCallback.endpoints:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmple 7
6: aload 0
getfield org.apache.cassandra.service.ReadCallback.condition:Lorg/apache/cassandra/utils/concurrent/SimpleCondition;
invokevirtual org.apache.cassandra.utils.concurrent.SimpleCondition.signalAll:()V
7: StackMap locals: int
StackMap stack:
return
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/service/ReadCallback;
0 8 1 from Ljava/net/InetAddress;
0 8 2 failureReason Lorg/apache/cassandra/exceptions/RequestFailureReason;
4 8 3 n I
MethodParameters:
Name Flags
from
failureReason
}
Signature: Ljava/lang/Object;Lorg/apache/cassandra/net/IAsyncCallbackWithFailure<Lorg/apache/cassandra/db/ReadResponse;>;
SourceFile: "ReadCallback.java"
NestMembers:
org.apache.cassandra.service.ReadCallback$AsyncRepairRunner
InnerClasses:
public Verb = org.apache.cassandra.net.MessagingService$Verb of org.apache.cassandra.net.MessagingService
private AsyncRepairRunner = org.apache.cassandra.service.ReadCallback$AsyncRepairRunner of org.apache.cassandra.service.ReadCallback