public class com.codahale.metrics.jvm.FileDescriptorRatioGauge extends com.codahale.metrics.RatioGauge
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.codahale.metrics.jvm.FileDescriptorRatioGauge
super_class: com.codahale.metrics.RatioGauge
{
private final java.lang.management.OperatingSystemMXBean os;
descriptor: Ljava/lang/management/OperatingSystemMXBean;
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 // com.codahale.metrics.jvm.FileDescriptorRatioGauge this
0: .line 19
aload 0 /* this */
invokestatic java.lang.management.ManagementFactory.getOperatingSystemMXBean:()Ljava/lang/management/OperatingSystemMXBean;
invokespecial com.codahale.metrics.jvm.FileDescriptorRatioGauge.<init>:(Ljava/lang/management/OperatingSystemMXBean;)V
1: .line 20
return
end local 0 // com.codahale.metrics.jvm.FileDescriptorRatioGauge this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/codahale/metrics/jvm/FileDescriptorRatioGauge;
public void <init>(java.lang.management.OperatingSystemMXBean);
descriptor: (Ljava/lang/management/OperatingSystemMXBean;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 // com.codahale.metrics.jvm.FileDescriptorRatioGauge this
start local 1 // java.lang.management.OperatingSystemMXBean os
0: .line 27
aload 0 /* this */
invokespecial com.codahale.metrics.RatioGauge.<init>:()V
1: .line 28
aload 0 /* this */
aload 1 /* os */
putfield com.codahale.metrics.jvm.FileDescriptorRatioGauge.os:Ljava/lang/management/OperatingSystemMXBean;
2: .line 29
return
end local 1 // java.lang.management.OperatingSystemMXBean os
end local 0 // com.codahale.metrics.jvm.FileDescriptorRatioGauge this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/codahale/metrics/jvm/FileDescriptorRatioGauge;
0 3 1 os Ljava/lang/management/OperatingSystemMXBean;
MethodParameters:
Name Flags
os
protected com.codahale.metrics.RatioGauge$Ratio getRatio();
descriptor: ()Lcom/codahale/metrics/RatioGauge$Ratio;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=2, args_size=1
start local 0 // com.codahale.metrics.jvm.FileDescriptorRatioGauge this
0: .line 33
aload 0 /* this */
getfield com.codahale.metrics.jvm.FileDescriptorRatioGauge.os:Ljava/lang/management/OperatingSystemMXBean;
instanceof com.sun.management.UnixOperatingSystemMXBean
ifeq 3
1: .line 34
aload 0 /* this */
getfield com.codahale.metrics.jvm.FileDescriptorRatioGauge.os:Ljava/lang/management/OperatingSystemMXBean;
checkcast com.sun.management.UnixOperatingSystemMXBean
astore 1 /* unixOs */
start local 1 // com.sun.management.UnixOperatingSystemMXBean unixOs
2: .line 35
aload 1 /* unixOs */
invokeinterface com.sun.management.UnixOperatingSystemMXBean.getOpenFileDescriptorCount:()J
l2d
aload 1 /* unixOs */
invokeinterface com.sun.management.UnixOperatingSystemMXBean.getMaxFileDescriptorCount:()J
l2d
invokestatic com.codahale.metrics.RatioGauge$Ratio.of:(DD)Lcom/codahale/metrics/RatioGauge$Ratio;
areturn
end local 1 // com.sun.management.UnixOperatingSystemMXBean unixOs
3: .line 37
StackMap locals:
StackMap stack:
ldc NaN
ldc NaN
invokestatic com.codahale.metrics.RatioGauge$Ratio.of:(DD)Lcom/codahale/metrics/RatioGauge$Ratio;
areturn
end local 0 // com.codahale.metrics.jvm.FileDescriptorRatioGauge this
LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/codahale/metrics/jvm/FileDescriptorRatioGauge;
2 3 1 unixOs Lcom/sun/management/UnixOperatingSystemMXBean;
}
SourceFile: "FileDescriptorRatioGauge.java"
InnerClasses:
public Ratio = com.codahale.metrics.RatioGauge$Ratio of com.codahale.metrics.RatioGauge