public class org.apache.cassandra.db.TruncateVerbHandler implements org.apache.cassandra.net.IVerbHandler<org.apache.cassandra.db.Truncation>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.db.TruncateVerbHandler
super_class: java.lang.Object
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/db/TruncateVerbHandler;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.db.TruncateVerbHandler.logger:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: 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/db/TruncateVerbHandler;
public void doVerb(org.apache.cassandra.net.MessageIn<org.apache.cassandra.db.Truncation>, );
descriptor: (Lorg/apache/cassandra/net/MessageIn;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getfield org.apache.cassandra.net.MessageIn.payload:Ljava/lang/Object;
checkcast org.apache.cassandra.db.Truncation
astore 3
start local 3 1: ldc "Applying truncation of {}.{}"
aload 3
getfield org.apache.cassandra.db.Truncation.keyspace:Ljava/lang/String;
aload 3
getfield org.apache.cassandra.db.Truncation.columnFamily:Ljava/lang/String;
invokestatic org.apache.cassandra.tracing.Tracing.trace:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
2: aload 3
getfield org.apache.cassandra.db.Truncation.keyspace:Ljava/lang/String;
invokestatic org.apache.cassandra.db.Keyspace.open:(Ljava/lang/String;)Lorg/apache/cassandra/db/Keyspace;
aload 3
getfield org.apache.cassandra.db.Truncation.columnFamily:Ljava/lang/String;
invokevirtual org.apache.cassandra.db.Keyspace.getColumnFamilyStore:(Ljava/lang/String;)Lorg/apache/cassandra/db/ColumnFamilyStore;
astore 4
start local 4 3: aload 4
invokevirtual org.apache.cassandra.db.ColumnFamilyStore.truncateBlocking:()V
end local 4 4: goto 10
5: StackMap locals: org.apache.cassandra.db.TruncateVerbHandler org.apache.cassandra.net.MessageIn int org.apache.cassandra.db.Truncation
StackMap stack: java.lang.Exception
astore 4
start local 4 6: getstatic org.apache.cassandra.db.TruncateVerbHandler.logger:Lorg/slf4j/Logger;
ldc "Error in truncation"
aload 4
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Throwable;)V
7: aload 3
aload 1
invokestatic org.apache.cassandra.db.TruncateVerbHandler.respondError:(Lorg/apache/cassandra/db/Truncation;Lorg/apache/cassandra/net/MessageIn;)V
8: aload 4
invokestatic org.apache.cassandra.io.FSError.findNested:(Ljava/lang/Throwable;)Lorg/apache/cassandra/io/FSError;
ifnull 10
9: aload 4
invokestatic org.apache.cassandra.io.FSError.findNested:(Ljava/lang/Throwable;)Lorg/apache/cassandra/io/FSError;
athrow
end local 4 10: StackMap locals:
StackMap stack:
ldc "Enqueuing response to truncate operation to {}"
aload 1
getfield org.apache.cassandra.net.MessageIn.from:Ljava/net/InetAddress;
invokestatic org.apache.cassandra.tracing.Tracing.trace:(Ljava/lang/String;Ljava/lang/Object;)V
11: new org.apache.cassandra.db.TruncateResponse
dup
aload 3
getfield org.apache.cassandra.db.Truncation.keyspace:Ljava/lang/String;
aload 3
getfield org.apache.cassandra.db.Truncation.columnFamily:Ljava/lang/String;
iconst_1
invokespecial org.apache.cassandra.db.TruncateResponse.<init>:(Ljava/lang/String;Ljava/lang/String;Z)V
astore 4
start local 4 12: getstatic org.apache.cassandra.db.TruncateVerbHandler.logger:Lorg/slf4j/Logger;
ldc "{} applied. Enqueuing response to {}@{} "
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 3
aastore
dup
iconst_1
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
aload 1
getfield org.apache.cassandra.net.MessageIn.from:Ljava/net/InetAddress;
aastore
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;[Ljava/lang/Object;)V
13: invokestatic org.apache.cassandra.net.MessagingService.instance:()Lorg/apache/cassandra/net/MessagingService;
aload 4
invokevirtual org.apache.cassandra.db.TruncateResponse.createMessage:()Lorg/apache/cassandra/net/MessageOut;
iload 2
aload 1
getfield org.apache.cassandra.net.MessageIn.from:Ljava/net/InetAddress;
invokevirtual org.apache.cassandra.net.MessagingService.sendReply:(Lorg/apache/cassandra/net/MessageOut;ILjava/net/InetAddress;)V
14: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/apache/cassandra/db/TruncateVerbHandler;
0 15 1 message Lorg/apache/cassandra/net/MessageIn<Lorg/apache/cassandra/db/Truncation;>;
0 15 2 id I
1 15 3 t Lorg/apache/cassandra/db/Truncation;
3 4 4 cfs Lorg/apache/cassandra/db/ColumnFamilyStore;
6 10 4 e Ljava/lang/Exception;
12 15 4 response Lorg/apache/cassandra/db/TruncateResponse;
Exception table:
from to target type
2 4 5 Class java.lang.Exception
Signature: (Lorg/apache/cassandra/net/MessageIn<Lorg/apache/cassandra/db/Truncation;>;I)V
MethodParameters:
Name Flags
message
id
private static void respondError(org.apache.cassandra.db.Truncation, org.apache.cassandra.net.MessageIn);
descriptor: (Lorg/apache/cassandra/db/Truncation;Lorg/apache/cassandra/net/MessageIn;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: new org.apache.cassandra.db.TruncateResponse
dup
aload 0
getfield org.apache.cassandra.db.Truncation.keyspace:Ljava/lang/String;
aload 0
getfield org.apache.cassandra.db.Truncation.columnFamily:Ljava/lang/String;
iconst_0
invokespecial org.apache.cassandra.db.TruncateResponse.<init>:(Ljava/lang/String;Ljava/lang/String;Z)V
astore 2
start local 2 1: invokestatic org.apache.cassandra.net.MessagingService.instance:()Lorg/apache/cassandra/net/MessagingService;
aload 2
invokevirtual org.apache.cassandra.db.TruncateResponse.createMessage:()Lorg/apache/cassandra/net/MessageOut;
aload 1
getfield org.apache.cassandra.net.MessageIn.from:Ljava/net/InetAddress;
invokevirtual org.apache.cassandra.net.MessagingService.sendOneWay:(Lorg/apache/cassandra/net/MessageOut;Ljava/net/InetAddress;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 t Lorg/apache/cassandra/db/Truncation;
0 3 1 truncateRequestMessage Lorg/apache/cassandra/net/MessageIn;
1 3 2 response Lorg/apache/cassandra/db/TruncateResponse;
MethodParameters:
Name Flags
t
truncateRequestMessage
}
Signature: Ljava/lang/Object;Lorg/apache/cassandra/net/IVerbHandler<Lorg/apache/cassandra/db/Truncation;>;
SourceFile: "TruncateVerbHandler.java"