final class org.apache.cassandra.hints.HintsWriter$Session implements java.lang.AutoCloseable
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.apache.cassandra.hints.HintsWriter$Session
super_class: java.lang.Object
{
private final java.nio.ByteBuffer buffer;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long initialSize;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private long bytesWritten;
descriptor: J
flags: (0x0002) ACC_PRIVATE
final org.apache.cassandra.hints.HintsWriter this$0;
descriptor: Lorg/apache/cassandra/hints/HintsWriter;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(org.apache.cassandra.hints.HintsWriter, java.nio.ByteBuffer, long);
descriptor: (Lorg/apache/cassandra/hints/HintsWriter;Ljava/nio/ByteBuffer;J)V
flags: (0x0000)
Code:
stack=3, locals=5, args_size=4
start local 0 start local 2 start local 3 0: aload 0
aload 1
putfield org.apache.cassandra.hints.HintsWriter$Session.this$0:Lorg/apache/cassandra/hints/HintsWriter;
1: aload 0
invokespecial java.lang.Object.<init>:()V
2: aload 2
invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/Buffer;
pop
3: aload 0
lconst_0
putfield org.apache.cassandra.hints.HintsWriter$Session.bytesWritten:J
4: aload 0
aload 2
putfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
5: aload 0
lload 3
putfield org.apache.cassandra.hints.HintsWriter$Session.initialSize:J
6: return
end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/hints/HintsWriter$Session;
0 7 2 buffer Ljava/nio/ByteBuffer;
0 7 3 initialSize J
MethodParameters:
Name Flags
this$0 final
buffer
initialSize
long getBytesWritten();
descriptor: ()J
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.hints.HintsWriter$Session.bytesWritten:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/hints/HintsWriter$Session;
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
com.google.common.annotations.VisibleForTesting()
long position();
descriptor: ()J
flags: (0x0000)
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.hints.HintsWriter$Session.initialSize:J
aload 0
getfield org.apache.cassandra.hints.HintsWriter$Session.bytesWritten:J
ladd
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/hints/HintsWriter$Session;
void append(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0000)
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
dup
getfield org.apache.cassandra.hints.HintsWriter$Session.bytesWritten:J
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
i2l
ladd
putfield org.apache.cassandra.hints.HintsWriter$Session.bytesWritten:J
1: aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
aload 0
getfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
if_icmple 5
2: aload 0
getfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
pop
3: aload 0
getfield org.apache.cassandra.hints.HintsWriter$Session.this$0:Lorg/apache/cassandra/hints/HintsWriter;
aload 0
getfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
invokevirtual org.apache.cassandra.hints.HintsWriter.writeBuffer:(Ljava/nio/ByteBuffer;)V
4: aload 0
getfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/Buffer;
pop
5: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
aload 0
getfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
if_icmpgt 8
6: aload 0
getfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
aload 1
invokevirtual java.nio.ByteBuffer.put:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
pop
7: goto 9
8: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.hints.HintsWriter$Session.this$0:Lorg/apache/cassandra/hints/HintsWriter;
aload 1
invokevirtual org.apache.cassandra.hints.HintsWriter.writeBuffer:(Ljava/nio/ByteBuffer;)V
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/cassandra/hints/HintsWriter$Session;
0 10 1 hint Ljava/nio/ByteBuffer;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
hint
void append(org.apache.cassandra.hints.Hint);
descriptor: (Lorg/apache/cassandra/hints/Hint;)V
flags: (0x0000)
Code:
stack=5, locals=9, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.hints.Hint.serializer:Lorg/apache/cassandra/hints/Hint$Serializer;
aload 1
aload 0
getfield org.apache.cassandra.hints.HintsWriter$Session.this$0:Lorg/apache/cassandra/hints/HintsWriter;
getfield org.apache.cassandra.hints.HintsWriter.descriptor:Lorg/apache/cassandra/hints/HintsDescriptor;
invokevirtual org.apache.cassandra.hints.HintsDescriptor.messagingVersion:()I
invokevirtual org.apache.cassandra.hints.Hint$Serializer.serializedSize:(Lorg/apache/cassandra/hints/Hint;I)J
l2i
istore 2
start local 2 1: iload 2
bipush 12
iadd
istore 3
start local 3 2: iload 3
aload 0
getfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
if_icmple 4
3: aload 0
invokevirtual org.apache.cassandra.hints.HintsWriter$Session.flushBuffer:()V
4: StackMap locals: int int
StackMap stack:
iload 3
aload 0
getfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
if_icmpgt 6
5: aload 0
getfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
goto 7
6: StackMap locals:
StackMap stack:
iload 3
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
7: StackMap locals:
StackMap stack: java.nio.ByteBuffer
astore 4
start local 4 8: new java.util.zip.CRC32
dup
invokespecial java.util.zip.CRC32.<init>:()V
astore 5
start local 5 9: aconst_null
astore 6
aconst_null
astore 7
10: new org.apache.cassandra.io.util.DataOutputBufferFixed
dup
aload 4
invokespecial org.apache.cassandra.io.util.DataOutputBufferFixed.<init>:(Ljava/nio/ByteBuffer;)V
astore 8
start local 8 11: aload 8
iload 2
invokevirtual org.apache.cassandra.io.util.DataOutputBufferFixed.writeInt:(I)V
12: aload 5
iload 2
invokestatic org.apache.cassandra.utils.FBUtilities.updateChecksumInt:(Ljava/util/zip/Checksum;I)V
13: aload 8
aload 5
invokevirtual java.util.zip.CRC32.getValue:()J
l2i
invokevirtual org.apache.cassandra.io.util.DataOutputBufferFixed.writeInt:(I)V
14: getstatic org.apache.cassandra.hints.Hint.serializer:Lorg/apache/cassandra/hints/Hint$Serializer;
aload 1
aload 8
aload 0
getfield org.apache.cassandra.hints.HintsWriter$Session.this$0:Lorg/apache/cassandra/hints/HintsWriter;
getfield org.apache.cassandra.hints.HintsWriter.descriptor:Lorg/apache/cassandra/hints/HintsDescriptor;
invokevirtual org.apache.cassandra.hints.HintsDescriptor.messagingVersion:()I
invokevirtual org.apache.cassandra.hints.Hint$Serializer.serialize:(Lorg/apache/cassandra/hints/Hint;Lorg/apache/cassandra/io/util/DataOutputPlus;I)V
15: aload 5
aload 4
aload 4
invokevirtual java.nio.ByteBuffer.position:()I
iload 2
isub
iload 2
invokestatic org.apache.cassandra.utils.FBUtilities.updateChecksum:(Ljava/util/zip/CRC32;Ljava/nio/ByteBuffer;II)V
16: aload 8
aload 5
invokevirtual java.util.zip.CRC32.getValue:()J
l2i
invokevirtual org.apache.cassandra.io.util.DataOutputBufferFixed.writeInt:(I)V
17: aload 8
ifnull 23
aload 8
invokevirtual org.apache.cassandra.io.util.DataOutputBufferFixed.close:()V
goto 23
StackMap locals: org.apache.cassandra.hints.HintsWriter$Session org.apache.cassandra.hints.Hint int int java.nio.ByteBuffer java.util.zip.CRC32 java.lang.Throwable java.lang.Throwable org.apache.cassandra.io.util.DataOutputBufferFixed
StackMap stack: java.lang.Throwable
18: astore 6
aload 8
ifnull 19
aload 8
invokevirtual org.apache.cassandra.io.util.DataOutputBufferFixed.close:()V
end local 8 StackMap locals:
StackMap stack:
19: aload 6
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
20: astore 7
aload 6
ifnonnull 21
aload 7
astore 6
goto 22
StackMap locals:
StackMap stack:
21: aload 6
aload 7
if_acmpeq 22
aload 6
aload 7
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
22: aload 6
athrow
23: StackMap locals:
StackMap stack:
aload 4
aload 0
getfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
if_acmpne 25
24: aload 0
dup
getfield org.apache.cassandra.hints.HintsWriter$Session.bytesWritten:J
iload 3
i2l
ladd
putfield org.apache.cassandra.hints.HintsWriter$Session.bytesWritten:J
goto 26
25: StackMap locals:
StackMap stack:
aload 0
aload 4
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
checkcast java.nio.ByteBuffer
invokevirtual org.apache.cassandra.hints.HintsWriter$Session.append:(Ljava/nio/ByteBuffer;)V
26: StackMap locals:
StackMap stack:
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 27 0 this Lorg/apache/cassandra/hints/HintsWriter$Session;
0 27 1 hint Lorg/apache/cassandra/hints/Hint;
1 27 2 hintSize I
2 27 3 totalSize I
8 27 4 hintBuffer Ljava/nio/ByteBuffer;
9 27 5 crc Ljava/util/zip/CRC32;
11 19 8 out Lorg/apache/cassandra/io/util/DataOutputBufferFixed;
Exception table:
from to target type
11 17 18 any
10 20 20 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
hint
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.cassandra.hints.HintsWriter$Session.flushBuffer:()V
1: aload 0
invokevirtual org.apache.cassandra.hints.HintsWriter$Session.maybeFsync:()V
2: aload 0
invokevirtual org.apache.cassandra.hints.HintsWriter$Session.maybeSkipCache:()V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/hints/HintsWriter$Session;
Exceptions:
throws java.io.IOException
private void flushBuffer();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
pop
1: aload 0
getfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
ifle 3
2: aload 0
getfield org.apache.cassandra.hints.HintsWriter$Session.this$0:Lorg/apache/cassandra/hints/HintsWriter;
aload 0
getfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
invokevirtual org.apache.cassandra.hints.HintsWriter.writeBuffer:(Ljava/nio/ByteBuffer;)V
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/Buffer;
pop
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/hints/HintsWriter$Session;
Exceptions:
throws java.io.IOException
private void maybeFsync();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.cassandra.hints.HintsWriter$Session.position:()J
aload 0
getfield org.apache.cassandra.hints.HintsWriter$Session.this$0:Lorg/apache/cassandra/hints/HintsWriter;
getfield org.apache.cassandra.hints.HintsWriter.lastSyncPosition:J
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getTrickleFsyncIntervalInKb:()I
i2l
ldc 1024
lmul
ladd
lcmp
iflt 2
1: aload 0
getfield org.apache.cassandra.hints.HintsWriter$Session.this$0:Lorg/apache/cassandra/hints/HintsWriter;
invokevirtual org.apache.cassandra.hints.HintsWriter.fsync:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/hints/HintsWriter$Session;
private void maybeSkipCache();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=9, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.cassandra.hints.HintsWriter$Session.position:()J
lstore 1
start local 1 1: lload 1
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getTrickleFsyncIntervalInKb:()I
i2l
ldc 1024
lmul
lcmp
iflt 3
2: aload 0
getfield org.apache.cassandra.hints.HintsWriter$Session.this$0:Lorg/apache/cassandra/hints/HintsWriter;
getfield org.apache.cassandra.hints.HintsWriter.fd:I
lconst_0
lload 1
lload 1
ldc 4096
lrem
lsub
aload 0
getfield org.apache.cassandra.hints.HintsWriter$Session.this$0:Lorg/apache/cassandra/hints/HintsWriter;
getfield org.apache.cassandra.hints.HintsWriter.file:Ljava/io/File;
invokevirtual java.io.File.getPath:()Ljava/lang/String;
invokestatic org.apache.cassandra.utils.NativeLibrary.trySkipCache:(IJJLjava/lang/String;)V
3: StackMap locals: long
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/hints/HintsWriter$Session;
1 4 1 position J
}
SourceFile: "HintsWriter.java"
NestHost: org.apache.cassandra.hints.HintsWriter
InnerClasses:
final Serializer = org.apache.cassandra.hints.Hint$Serializer of org.apache.cassandra.hints.Hint
final Session = org.apache.cassandra.hints.HintsWriter$Session of org.apache.cassandra.hints.HintsWriter