public class org.springframework.boot.actuate.system.DiskSpaceHealthIndicator extends org.springframework.boot.actuate.health.AbstractHealthIndicator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.boot.actuate.system.DiskSpaceHealthIndicator
super_class: org.springframework.boot.actuate.health.AbstractHealthIndicator
{
private static final org.apache.commons.logging.Log logger;
descriptor: Lorg/apache/commons/logging/Log;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.io.File path;
descriptor: Ljava/io/File;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.springframework.util.unit.DataSize threshold;
descriptor: Lorg/springframework/util/unit/DataSize;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/springframework/boot/actuate/system/DiskSpaceHealthIndicator;
invokestatic org.apache.commons.logging.LogFactory.getLog:(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;
putstatic org.springframework.boot.actuate.system.DiskSpaceHealthIndicator.logger:Lorg/apache/commons/logging/Log;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.io.File, org.springframework.util.unit.DataSize);
descriptor: (Ljava/io/File;Lorg/springframework/util/unit/DataSize;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ldc "DiskSpace health check failed"
invokespecial org.springframework.boot.actuate.health.AbstractHealthIndicator.<init>:(Ljava/lang/String;)V
1: aload 0
aload 1
putfield org.springframework.boot.actuate.system.DiskSpaceHealthIndicator.path:Ljava/io/File;
2: aload 0
aload 2
putfield org.springframework.boot.actuate.system.DiskSpaceHealthIndicator.threshold:Lorg/springframework/util/unit/DataSize;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/boot/actuate/system/DiskSpaceHealthIndicator;
0 4 1 path Ljava/io/File;
0 4 2 threshold Lorg/springframework/util/unit/DataSize;
MethodParameters:
Name Flags
path
threshold
protected void doHealthCheck(org.springframework.boot.actuate.health.Health$Builder);
descriptor: (Lorg/springframework/boot/actuate/health/Health$Builder;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.boot.actuate.system.DiskSpaceHealthIndicator.path:Ljava/io/File;
invokevirtual java.io.File.getUsableSpace:()J
lstore 2
start local 2 1: lload 2
aload 0
getfield org.springframework.boot.actuate.system.DiskSpaceHealthIndicator.threshold:Lorg/springframework/util/unit/DataSize;
invokevirtual org.springframework.util.unit.DataSize.toBytes:()J
lcmp
iflt 4
2: aload 1
invokevirtual org.springframework.boot.actuate.health.Health$Builder.up:()Lorg/springframework/boot/actuate/health/Health$Builder;
pop
3: goto 8
4: StackMap locals: long
StackMap stack:
getstatic org.springframework.boot.actuate.system.DiskSpaceHealthIndicator.logger:Lorg/apache/commons/logging/Log;
ldc "Free disk space below threshold. Available: %d bytes (threshold: %s)"
5: lload 2
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aload 0
getfield org.springframework.boot.actuate.system.DiskSpaceHealthIndicator.threshold:Lorg/springframework/util/unit/DataSize;
6: invokestatic org.springframework.core.log.LogMessage.format:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Lorg/springframework/core/log/LogMessage;
invokeinterface org.apache.commons.logging.Log.warn:(Ljava/lang/Object;)V
7: aload 1
invokevirtual org.springframework.boot.actuate.health.Health$Builder.down:()Lorg/springframework/boot/actuate/health/Health$Builder;
pop
8: StackMap locals:
StackMap stack:
aload 1
ldc "total"
aload 0
getfield org.springframework.boot.actuate.system.DiskSpaceHealthIndicator.path:Ljava/io/File;
invokevirtual java.io.File.getTotalSpace:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokevirtual org.springframework.boot.actuate.health.Health$Builder.withDetail:(Ljava/lang/String;Ljava/lang/Object;)Lorg/springframework/boot/actuate/health/Health$Builder;
ldc "free"
lload 2
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokevirtual org.springframework.boot.actuate.health.Health$Builder.withDetail:(Ljava/lang/String;Ljava/lang/Object;)Lorg/springframework/boot/actuate/health/Health$Builder;
9: ldc "threshold"
aload 0
getfield org.springframework.boot.actuate.system.DiskSpaceHealthIndicator.threshold:Lorg/springframework/util/unit/DataSize;
invokevirtual org.springframework.util.unit.DataSize.toBytes:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokevirtual org.springframework.boot.actuate.health.Health$Builder.withDetail:(Ljava/lang/String;Ljava/lang/Object;)Lorg/springframework/boot/actuate/health/Health$Builder;
ldc "exists"
aload 0
getfield org.springframework.boot.actuate.system.DiskSpaceHealthIndicator.path:Ljava/io/File;
invokevirtual java.io.File.exists:()Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokevirtual org.springframework.boot.actuate.health.Health$Builder.withDetail:(Ljava/lang/String;Ljava/lang/Object;)Lorg/springframework/boot/actuate/health/Health$Builder;
pop
10: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/springframework/boot/actuate/system/DiskSpaceHealthIndicator;
0 11 1 builder Lorg/springframework/boot/actuate/health/Health$Builder;
1 11 2 diskFreeInBytes J
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
builder
}
SourceFile: "DiskSpaceHealthIndicator.java"
InnerClasses:
public Builder = org.springframework.boot.actuate.health.Health$Builder of org.springframework.boot.actuate.health.Health