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(java.util.Map<java.lang.String, java.util.List<java.lang.String>>, java.io.PrintWriter);
descriptor: (Ljava/util/Map;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:(Ljava/util/Map;)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 Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;
0 10 2 output Ljava/io/PrintWriter;
1 10 3 count I
2 8 4 i I
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;Ljava/io/PrintWriter;)V
MethodParameters:
Name Flags
parameters
output
private static int parseRuns(java.util.Map<java.lang.String, java.util.List<java.lang.String>>);
descriptor: (Ljava/util/Map;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
ldc "runs"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
invokeinterface java.util.List.isEmpty:()Z
ifeq 3
2: StackMap locals: java.util.List
StackMap stack:
iconst_1
ireturn
3: StackMap locals:
StackMap stack:
aload 1
iconst_0
invokeinterface java.util.List.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 Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;
1 7 1 runs Ljava/util/List<Ljava/lang/String;>;
Exception table:
from to target type
3 4 5 Class java.lang.NumberFormatException
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;)I
MethodParameters:
Name Flags
parameters
}
SourceFile: "GarbageCollectionTask.java"