public class io.dropwizard.servlets.tasks.GarbageCollectionTask extends io.dropwizard.servlets.tasks.Task
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.dropwizard.servlets.tasks.GarbageCollectionTask
super_class: io.dropwizard.servlets.tasks.Task
{
private final java.lang.Runtime runtime;
descriptor: Ljava/lang/Runtime;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
invokespecial io.dropwizard.servlets.tasks.GarbageCollectionTask.<init>:(Ljava/lang/Runtime;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/servlets/tasks/GarbageCollectionTask;
public void <init>(java.lang.Runtime);
descriptor: (Ljava/lang/Runtime;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "gc"
invokespecial io.dropwizard.servlets.tasks.Task.<init>:(Ljava/lang/String;)V
1: aload 0
aload 1
putfield io.dropwizard.servlets.tasks.GarbageCollectionTask.runtime:Ljava/lang/Runtime;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/dropwizard/servlets/tasks/GarbageCollectionTask;
0 3 1 runtime Ljava/lang/Runtime;
MethodParameters:
Name Flags
runtime
public void execute(com.google.common.collect.ImmutableMultimap<java.lang.String, java.lang.String>, java.io.PrintWriter);
descriptor: (Lcom/google/common/collect/ImmutableMultimap;Ljava/io/PrintWriter;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic io.dropwizard.servlets.tasks.GarbageCollectionTask.parseRuns:(Lcom/google/common/collect/ImmutableMultimap;)I
istore 3
start local 3 1: iconst_0
istore 4
start local 4 2: goto 7
3: StackMap locals: int int
StackMap stack:
aload 2
ldc "Running GC..."
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
4: aload 2
invokevirtual java.io.PrintWriter.flush:()V
5: aload 0
getfield io.dropwizard.servlets.tasks.GarbageCollectionTask.runtime:Ljava/lang/Runtime;
invokevirtual java.lang.Runtime.gc:()V
6: iinc 4 1
StackMap locals:
StackMap stack:
7: iload 4
iload 3
if_icmplt 3
end local 4 8: aload 2
ldc "Done!"
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
9: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/dropwizard/servlets/tasks/GarbageCollectionTask;
0 10 1 parameters Lcom/google/common/collect/ImmutableMultimap<Ljava/lang/String;Ljava/lang/String;>;
0 10 2 output Ljava/io/PrintWriter;
1 10 3 count I
2 8 4 i I
Signature: (Lcom/google/common/collect/ImmutableMultimap<Ljava/lang/String;Ljava/lang/String;>;Ljava/io/PrintWriter;)V
MethodParameters:
Name Flags
parameters
output
private static int parseRuns(com.google.common.collect.ImmutableMultimap<java.lang.String, java.lang.String>);
descriptor: (Lcom/google/common/collect/ImmutableMultimap;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
ldc "runs"
invokevirtual com.google.common.collect.ImmutableMultimap.get:(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableCollection;
invokevirtual com.google.common.collect.ImmutableCollection.asList:()Lcom/google/common/collect/ImmutableList;
astore 1
start local 1 1: aload 1
invokevirtual com.google.common.collect.ImmutableList.isEmpty:()Z
ifeq 3
2: iconst_1
ireturn
3: StackMap locals: com.google.common.collect.ImmutableList
StackMap stack:
aload 1
iconst_0
invokevirtual com.google.common.collect.ImmutableList.get:(I)Ljava/lang/Object;
checkcast java.lang.String
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
4: ireturn
5: StackMap locals:
StackMap stack: java.lang.NumberFormatException
pop
6: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 parameters Lcom/google/common/collect/ImmutableMultimap<Ljava/lang/String;Ljava/lang/String;>;
1 7 1 runs Lcom/google/common/collect/ImmutableList<Ljava/lang/String;>;
Exception table:
from to target type
3 4 5 Class java.lang.NumberFormatException
Signature: (Lcom/google/common/collect/ImmutableMultimap<Ljava/lang/String;Ljava/lang/String;>;)I
MethodParameters:
Name Flags
parameters
}
SourceFile: "GarbageCollectionTask.java"