class org.apache.cassandra.db.compaction.CompactionLogger$CompactionLogSerializer implements org.apache.cassandra.db.compaction.CompactionLogger$Writer
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.apache.cassandra.db.compaction.CompactionLogger$CompactionLogSerializer
super_class: java.lang.Object
{
private static final java.lang.String logDirectory;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.util.concurrent.ExecutorService loggerService;
descriptor: Ljava/util/concurrent/ExecutorService;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Set<java.lang.Object> rolled;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/Object;>;
private java.io.OutputStreamWriter stream;
descriptor: Ljava/io/OutputStreamWriter;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc "cassandra.logdir"
ldc "."
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
putstatic org.apache.cassandra.db.compaction.CompactionLogger$CompactionLogSerializer.logDirectory:Ljava/lang/String;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_1
invokestatic java.util.concurrent.Executors.newFixedThreadPool:(I)Ljava/util/concurrent/ExecutorService;
putfield org.apache.cassandra.db.compaction.CompactionLogger$CompactionLogSerializer.loggerService:Ljava/util/concurrent/ExecutorService;
2: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield org.apache.cassandra.db.compaction.CompactionLogger$CompactionLogSerializer.rolled:Ljava/util/Set;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/db/compaction/CompactionLogger$CompactionLogSerializer;
private static java.io.OutputStreamWriter createStream();
descriptor: ()Ljava/io/OutputStreamWriter;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=9, locals=3, args_size=0
0: iconst_0
istore 0
start local 0 1: getstatic org.apache.cassandra.db.compaction.CompactionLogger$CompactionLogSerializer.logDirectory:Ljava/lang/String;
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "compaction.log"
aastore
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 1
start local 1 2: aload 1
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 8
3: aload 1
astore 2
start local 2 4: goto 6
5: StackMap locals: int java.nio.file.Path java.nio.file.Path
StackMap stack:
getstatic org.apache.cassandra.db.compaction.CompactionLogger$CompactionLogSerializer.logDirectory:Ljava/lang/String;
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "compaction-%d.log"
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 0
iinc 0 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aastore
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 2
6: StackMap locals:
StackMap stack:
aload 2
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifne 5
7: aload 1
aload 2
iconst_0
anewarray java.nio.file.CopyOption
invokestatic java.nio.file.Files.move:(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)Ljava/nio/file/Path;
pop
end local 2 8: StackMap locals:
StackMap stack:
new java.io.OutputStreamWriter
dup
aload 1
iconst_2
anewarray java.nio.file.OpenOption
dup
iconst_0
getstatic java.nio.file.StandardOpenOption.CREATE_NEW:Ljava/nio/file/StandardOpenOption;
aastore
dup
iconst_1
getstatic java.nio.file.StandardOpenOption.WRITE:Ljava/nio/file/StandardOpenOption;
aastore
invokestatic java.nio.file.Files.newOutputStream:(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;
invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 9 0 count I
2 9 1 compactionLog Ljava/nio/file/Path;
4 8 2 tryPath Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException
private void writeLocal(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=10, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.compaction.CompactionLogger$CompactionLogSerializer.stream:Ljava/io/OutputStreamWriter;
ifnonnull 2
1: aload 0
invokestatic org.apache.cassandra.db.compaction.CompactionLogger$CompactionLogSerializer.createStream:()Ljava/io/OutputStreamWriter;
putfield org.apache.cassandra.db.compaction.CompactionLogger$CompactionLogSerializer.stream:Ljava/io/OutputStreamWriter;
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.db.compaction.CompactionLogger$CompactionLogSerializer.stream:Ljava/io/OutputStreamWriter;
aload 1
invokevirtual java.io.OutputStreamWriter.write:(Ljava/lang/String;)V
3: aload 0
getfield org.apache.cassandra.db.compaction.CompactionLogger$CompactionLogSerializer.stream:Ljava/io/OutputStreamWriter;
invokevirtual java.io.OutputStreamWriter.flush:()V
4: goto 9
5: StackMap locals:
StackMap stack: java.io.IOException
astore 2
start local 2 6: getstatic org.apache.cassandra.db.compaction.CompactionLogger.logger:Lorg/slf4j/Logger;
getstatic org.apache.cassandra.utils.NoSpamLogger$Level.ERROR:Lorg/apache/cassandra/utils/NoSpamLogger$Level;
lconst_1
getstatic java.util.concurrent.TimeUnit.MINUTES:Ljava/util/concurrent/TimeUnit;
7: ldc "Could not write to the log file: {}"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
8: invokestatic org.apache.cassandra.utils.NoSpamLogger.log:(Lorg/slf4j/Logger;Lorg/apache/cassandra/utils/NoSpamLogger$Level;JLjava/util/concurrent/TimeUnit;Ljava/lang/String;[Ljava/lang/Object;)Z
pop
end local 2 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/db/compaction/CompactionLogger$CompactionLogSerializer;
0 10 1 toWrite Ljava/lang/String;
6 9 2 ioe Ljava/io/IOException;
Exception table:
from to target type
0 4 5 Class java.io.IOException
MethodParameters:
Name Flags
toWrite
public void writeStart(org.codehaus.jackson.JsonNode, java.lang.Object);
descriptor: (Lorg/codehaus/jackson/JsonNode;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new java.lang.StringBuilder
dup
aload 1
invokevirtual org.codehaus.jackson.JsonNode.toString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
invokestatic java.lang.System.lineSeparator:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 1: aload 0
getfield org.apache.cassandra.db.compaction.CompactionLogger$CompactionLogSerializer.loggerService:Ljava/util/concurrent/ExecutorService;
aload 0
aload 2
aload 3
invokedynamic run(Lorg/apache/cassandra/db/compaction/CompactionLogger$CompactionLogSerializer;Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Runnable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
org/apache/cassandra/db/compaction/CompactionLogger$CompactionLogSerializer.lambda$0(Ljava/lang/Object;Ljava/lang/String;)V (7)
()V
invokeinterface java.util.concurrent.ExecutorService.execute:(Ljava/lang/Runnable;)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/db/compaction/CompactionLogger$CompactionLogSerializer;
0 3 1 statement Lorg/codehaus/jackson/JsonNode;
0 3 2 tag Ljava/lang/Object;
1 3 3 toWrite Ljava/lang/String;
MethodParameters:
Name Flags
statement
tag
public void write(org.codehaus.jackson.JsonNode, org.apache.cassandra.db.compaction.CompactionLogger$StrategySummary, java.lang.Object);
descriptor: (Lorg/codehaus/jackson/JsonNode;Lorg/apache/cassandra/db/compaction/CompactionLogger$StrategySummary;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new java.lang.StringBuilder
dup
aload 1
invokevirtual org.codehaus.jackson.JsonNode.toString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
invokestatic java.lang.System.lineSeparator:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
start local 4 1: aload 0
getfield org.apache.cassandra.db.compaction.CompactionLogger$CompactionLogSerializer.loggerService:Ljava/util/concurrent/ExecutorService;
aload 0
aload 3
aload 2
aload 4
invokedynamic run(Lorg/apache/cassandra/db/compaction/CompactionLogger$CompactionLogSerializer;Ljava/lang/Object;Lorg/apache/cassandra/db/compaction/CompactionLogger$StrategySummary;Ljava/lang/String;)Ljava/lang/Runnable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
org/apache/cassandra/db/compaction/CompactionLogger$CompactionLogSerializer.lambda$1(Ljava/lang/Object;Lorg/apache/cassandra/db/compaction/CompactionLogger$StrategySummary;Ljava/lang/String;)V (7)
()V
invokeinterface java.util.concurrent.ExecutorService.execute:(Ljava/lang/Runnable;)V
2: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/db/compaction/CompactionLogger$CompactionLogSerializer;
0 3 1 statement Lorg/codehaus/jackson/JsonNode;
0 3 2 summary Lorg/apache/cassandra/db/compaction/CompactionLogger$StrategySummary;
0 3 3 tag Ljava/lang/Object;
1 3 4 toWrite Ljava/lang/String;
MethodParameters:
Name Flags
statement
summary
tag
private void lambda$0(java.lang.Object, java.lang.String);
descriptor: (Ljava/lang/Object;Ljava/lang/String;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 0 0: aload 0
getfield org.apache.cassandra.db.compaction.CompactionLogger$CompactionLogSerializer.rolled:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
1: aload 0
aload 2
invokevirtual org.apache.cassandra.db.compaction.CompactionLogger$CompactionLogSerializer.writeLocal:(Ljava/lang/String;)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/db/compaction/CompactionLogger$CompactionLogSerializer;
private void lambda$1(java.lang.Object, org.apache.cassandra.db.compaction.CompactionLogger$StrategySummary, java.lang.String);
descriptor: (Ljava/lang/Object;Lorg/apache/cassandra/db/compaction/CompactionLogger$StrategySummary;Ljava/lang/String;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=4
start local 0 0: aload 0
getfield org.apache.cassandra.db.compaction.CompactionLogger$CompactionLogSerializer.rolled:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifne 3
1: aload 0
new java.lang.StringBuilder
dup
aload 2
invokeinterface org.apache.cassandra.db.compaction.CompactionLogger$StrategySummary.getSummary:()Lorg/codehaus/jackson/JsonNode;
invokevirtual org.codehaus.jackson.JsonNode.toString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
invokestatic java.lang.System.lineSeparator:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.apache.cassandra.db.compaction.CompactionLogger$CompactionLogSerializer.writeLocal:(Ljava/lang/String;)V
2: aload 0
getfield org.apache.cassandra.db.compaction.CompactionLogger$CompactionLogSerializer.rolled:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
3: StackMap locals:
StackMap stack:
aload 0
aload 3
invokevirtual org.apache.cassandra.db.compaction.CompactionLogger$CompactionLogSerializer.writeLocal:(Ljava/lang/String;)V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/db/compaction/CompactionLogger$CompactionLogSerializer;
}
SourceFile: "CompactionLogger.java"
NestHost: org.apache.cassandra.db.compaction.CompactionLogger
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
private CompactionLogSerializer = org.apache.cassandra.db.compaction.CompactionLogger$CompactionLogSerializer of org.apache.cassandra.db.compaction.CompactionLogger
public abstract StrategySummary = org.apache.cassandra.db.compaction.CompactionLogger$StrategySummary of org.apache.cassandra.db.compaction.CompactionLogger
public abstract Writer = org.apache.cassandra.db.compaction.CompactionLogger$Writer of org.apache.cassandra.db.compaction.CompactionLogger
public final Level = org.apache.cassandra.utils.NoSpamLogger$Level of org.apache.cassandra.utils.NoSpamLogger