public class sun.jvmstat.perfdata.monitor.protocol.local.PerfDataFile
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.jvmstat.perfdata.monitor.protocol.local.PerfDataFile
super_class: java.lang.Object
{
public static final java.lang.String dirNamePrefix;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "hsperfdata_"
public static final java.lang.String userDirNamePattern;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "hsperfdata_\\S*"
public static final java.lang.String fileNamePattern;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "^[0-9]+$"
public static final java.lang.String tmpFileNamePattern;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "^hsperfdata_[0-9]+(_[1-2]+)?$"
private static final sun.jvmstat.PlatformSupport platSupport;
descriptor: Lsun/jvmstat/PlatformSupport;
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: invokestatic sun.jvmstat.PlatformSupport.getInstance:()Lsun/jvmstat/PlatformSupport;
putstatic sun.jvmstat.perfdata.monitor.protocol.local.PerfDataFile.platSupport:Lsun/jvmstat/PlatformSupport;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
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 Lsun/jvmstat/perfdata/monitor/protocol/local/PerfDataFile;
public static java.io.File getFile(int);
descriptor: (I)Ljava/io/File;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=17, args_size=1
start local 0 0: iload 0
ifne 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aconst_null
iload 0
invokestatic sun.jvmstat.perfdata.monitor.protocol.local.PerfDataFile.getTempDirectories:(Ljava/lang/String;I)Ljava/util/List;
astore 1
start local 1 3: aconst_null
astore 2
start local 2 4: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 34
StackMap locals: int java.util.List java.io.File top java.util.Iterator
StackMap stack:
5: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 6: new java.io.File
dup
aload 3
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 5
start local 5 7: aload 5
new sun.jvmstat.perfdata.monitor.protocol.local.PerfDataFile$1
dup
invokespecial sun.jvmstat.perfdata.monitor.protocol.local.PerfDataFile$1.<init>:()V
invokevirtual java.io.File.list:(Ljava/io/FilenameFilter;)[Ljava/lang/String;
astore 6
start local 6 8: lconst_0
lstore 7
start local 7 9: aload 6
dup
astore 12
arraylength
istore 11
iconst_0
istore 10
goto 33
StackMap locals: int java.util.List java.io.File java.lang.String java.util.Iterator java.io.File java.lang.String[] long top int int java.lang.String[]
StackMap stack:
10: aload 12
iload 10
aaload
astore 9
start local 9 11: new java.io.File
dup
new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 9
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 13
start local 13 12: aconst_null
astore 14
start local 14 13: aload 13
invokevirtual java.io.File.exists:()Z
ifeq 22
aload 13
invokevirtual java.io.File.isDirectory:()Z
ifeq 22
14: new java.lang.StringBuilder
dup
aload 13
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 0
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 15
start local 15 15: new java.io.File
dup
aload 15
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 14
16: aload 14
invokevirtual java.io.File.exists:()Z
ifne 26
17: new java.lang.StringBuilder
dup
aload 13
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
18: getstatic sun.jvmstat.perfdata.monitor.protocol.local.PerfDataFile.platSupport:Lsun/jvmstat/PlatformSupport;
iload 0
invokevirtual sun.jvmstat.PlatformSupport.getNamespaceVmId:(I)I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
19: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 15
20: new java.io.File
dup
aload 15
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 14
end local 15 21: goto 26
StackMap locals: int java.util.List java.io.File java.lang.String java.util.Iterator java.io.File java.lang.String[] long java.lang.String int int java.lang.String[] java.io.File java.io.File
StackMap stack:
22: aload 13
invokevirtual java.io.File.exists:()Z
ifeq 25
aload 13
invokevirtual java.io.File.isFile:()Z
ifeq 25
23: aload 13
astore 14
24: goto 26
25: StackMap locals:
StackMap stack:
aload 13
astore 14
26: StackMap locals:
StackMap stack:
aload 14
invokevirtual java.io.File.exists:()Z
ifeq 32
aload 14
invokevirtual java.io.File.isFile:()Z
ifeq 32
27: aload 14
invokevirtual java.io.File.canRead:()Z
ifeq 32
28: aload 14
invokevirtual java.io.File.lastModified:()J
lstore 15
start local 15 29: lload 15
lload 7
lcmp
iflt 32
30: lload 15
lstore 7
31: aload 14
astore 2
end local 15 end local 14 end local 13 end local 9 32: StackMap locals: int java.util.List java.io.File java.lang.String java.util.Iterator java.io.File java.lang.String[] long top int int java.lang.String[]
StackMap stack:
iinc 10 1
StackMap locals:
StackMap stack:
33: iload 10
iload 11
if_icmplt 10
end local 7 end local 6 end local 5 end local 3 34: StackMap locals: int java.util.List java.io.File top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
35: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 lvmid I
3 36 1 tmpDirs Ljava/util/List<Ljava/lang/String;>;
4 36 2 newest Ljava/io/File;
6 34 3 dir Ljava/lang/String;
7 34 5 tmpDir Ljava/io/File;
8 34 6 files [Ljava/lang/String;
9 34 7 newestTime J
11 32 9 file Ljava/lang/String;
12 32 13 f Ljava/io/File;
13 32 14 candidate Ljava/io/File;
15 21 15 name Ljava/lang/String;
29 32 15 modTime J
MethodParameters:
Name Flags
lvmid
public static java.io.File getFile(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Ljava/io/File;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=11, args_size=2
start local 0 start local 1 0: iload 1
ifne 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
iload 1
invokestatic sun.jvmstat.perfdata.monitor.protocol.local.PerfDataFile.getTempDirectories:(Ljava/lang/String;I)Ljava/util/List;
astore 2
start local 2 3: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 13
StackMap locals: java.lang.String int java.util.List top top top java.util.Iterator
StackMap stack:
4: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 5: new java.lang.StringBuilder
dup
aload 5
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 6: new java.io.File
dup
aload 3
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 4
start local 4 7: aload 4
invokevirtual java.io.File.exists:()Z
ifeq 9
aload 4
invokevirtual java.io.File.isFile:()Z
ifeq 9
aload 4
invokevirtual java.io.File.canRead:()Z
ifeq 9
8: aload 4
areturn
9: StackMap locals: java.lang.String int java.util.List java.lang.String java.io.File java.lang.String java.util.Iterator
StackMap stack:
new java.lang.StringBuilder
dup
aload 5
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic sun.jvmstat.perfdata.monitor.protocol.local.PerfDataFile.platSupport:Lsun/jvmstat/PlatformSupport;
iload 1
invokevirtual sun.jvmstat.PlatformSupport.getNamespaceVmId:(I)I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
10: new java.io.File
dup
aload 3
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 4
11: aload 4
invokevirtual java.io.File.exists:()Z
ifeq 13
aload 4
invokevirtual java.io.File.isFile:()Z
ifeq 13
aload 4
invokevirtual java.io.File.canRead:()Z
ifeq 13
12: aload 4
areturn
end local 5 end local 4 end local 3 13: StackMap locals: java.lang.String int java.util.List top top top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
14: lconst_0
lstore 5
start local 5 15: aconst_null
astore 7
start local 7 16: iconst_0
istore 8
start local 8 17: goto 31
18: StackMap locals: java.lang.String int java.util.List top top long java.io.File int
StackMap stack:
iload 8
ifne 21
19: new java.lang.StringBuilder
dup
invokestatic sun.jvmstat.perfdata.monitor.protocol.local.PerfDataFile.getTempDirectory:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokestatic java.lang.Integer.toString:(I)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 20: goto 24
end local 3 21: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
invokestatic sun.jvmstat.perfdata.monitor.protocol.local.PerfDataFile.getTempDirectory:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokestatic java.lang.Integer.toString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
22: iload 8
invokestatic java.lang.Integer.toString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
23: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 24: StackMap locals: java.lang.String int java.util.List java.lang.String top long java.io.File int
StackMap stack:
new java.io.File
dup
aload 3
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 4
start local 4 25: aload 4
invokevirtual java.io.File.exists:()Z
ifeq 30
aload 4
invokevirtual java.io.File.isFile:()Z
ifeq 30
aload 4
invokevirtual java.io.File.canRead:()Z
ifeq 30
26: aload 4
invokevirtual java.io.File.lastModified:()J
lstore 9
start local 9 27: lload 9
lload 5
lcmp
iflt 30
28: lload 9
lstore 5
29: aload 4
astore 7
end local 9 30: StackMap locals: java.lang.String int java.util.List java.lang.String java.io.File long java.io.File int
StackMap stack:
iinc 8 1
end local 4 end local 3 StackMap locals: java.lang.String int java.util.List top top long java.io.File int
StackMap stack:
31: iload 8
iconst_2
if_icmplt 18
end local 8 32: aload 7
areturn
end local 7 end local 5 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 user Ljava/lang/String;
0 33 1 lvmid I
3 33 2 tmpDirs Ljava/util/List<Ljava/lang/String;>;
6 13 3 basename Ljava/lang/String;
20 21 3 basename Ljava/lang/String;
24 31 3 basename Ljava/lang/String;
7 13 4 f Ljava/io/File;
25 31 4 f Ljava/io/File;
5 13 5 dir Ljava/lang/String;
15 33 5 newestTime J
16 33 7 newest Ljava/io/File;
17 32 8 i I
27 30 9 modTime J
MethodParameters:
Name Flags
user
lvmid
public static int getLocalVmId(java.io.File);
descriptor: (Ljava/io/File;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: getstatic sun.jvmstat.perfdata.monitor.protocol.local.PerfDataFile.platSupport:Lsun/jvmstat/PlatformSupport;
aload 0
invokevirtual sun.jvmstat.PlatformSupport.getLocalVmId:(Ljava/io/File;)I
1: ireturn
2: StackMap locals:
StackMap stack: java.lang.NumberFormatException
pop
3: aload 0
invokevirtual java.io.File.getName:()Ljava/lang/String;
astore 1
start local 1 4: aload 1
ldc "hsperfdata_"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 13
5: aload 1
bipush 95
invokevirtual java.lang.String.indexOf:(I)I
istore 2
start local 2 6: aload 1
bipush 95
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 3
start local 3 7: iload 2
iload 3
if_icmpne 10
8: aload 1
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
9: ireturn
10: StackMap locals: java.lang.String int int
StackMap stack:
aload 1
iload 2
iconst_1
iadd
iload 3
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
11: ireturn
12: StackMap locals:
StackMap stack: java.lang.NumberFormatException
pop
end local 3 end local 2 13: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "file name does not match pattern"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 file Ljava/io/File;
4 14 1 name Ljava/lang/String;
6 13 2 first I
7 13 3 last I
Exception table:
from to target type
0 1 2 Class java.lang.NumberFormatException
7 9 12 Class java.lang.NumberFormatException
10 11 12 Class java.lang.NumberFormatException
MethodParameters:
Name Flags
file
public static java.lang.String getTempDirectory();
descriptor: ()Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic sun.jvmstat.PlatformSupport.getTemporaryDirectory:()Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static java.lang.String getTempDirectory(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokestatic sun.jvmstat.perfdata.monitor.protocol.local.PerfDataFile.getTempDirectory:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "hsperfdata_"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 user Ljava/lang/String;
MethodParameters:
Name Flags
user
public static java.util.List<java.lang.String> getTempDirectories(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: getstatic sun.jvmstat.perfdata.monitor.protocol.local.PerfDataFile.platSupport:Lsun/jvmstat/PlatformSupport;
iload 1
invokevirtual sun.jvmstat.PlatformSupport.getTemporaryDirectories:(I)Ljava/util/List;
astore 2
start local 2 1: aload 0
ifnonnull 3
2: aload 2
areturn
3: StackMap locals: java.util.List
StackMap stack:
aload 2
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
4: aload 0
invokedynamic apply(Ljava/lang/String;)Ljava/util/function/Function;
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:
(Ljava/lang/Object;)Ljava/lang/Object;
sun/jvmstat/perfdata/monitor/protocol/local/PerfDataFile.lambda$0(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; (6)
(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
5: invokestatic java.util.stream.Collectors.toList:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.List
6: astore 3
start local 3 7: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 userName Ljava/lang/String;
0 8 1 vmid I
1 8 2 list Ljava/util/List<Ljava/lang/String;>;
7 8 3 nameList Ljava/util/List<Ljava/lang/String;>;
Signature: (Ljava/lang/String;I)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
userName
vmid
private static java.lang.String lambda$0(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
start local 1 0: new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "hsperfdata_"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 name Ljava/lang/String;
}
SourceFile: "PerfDataFile.java"
NestMembers:
sun.jvmstat.perfdata.monitor.protocol.local.PerfDataFile$1
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
sun.jvmstat.perfdata.monitor.protocol.local.PerfDataFile$1