public class JournalDiskInfo extends Object implements Serializable
Constructor and Description |
---|
JournalDiskInfo(String diskPath,
long totalAllocatedBytes,
long usedBytes,
long availableBytes,
String mountPath)
Create a new instance of
JournalDiskInfo representing the current utilization for a
particular block device. |
Modifier and Type | Method and Description |
---|---|
long |
getAvailableBytes() |
String |
getDiskPath() |
String |
getMountPath() |
double |
getPercentAvailable() |
long |
getTotalAllocatedBytes() |
long |
getUsedBytes() |
String |
toString() |
public JournalDiskInfo(String diskPath, long totalAllocatedBytes, long usedBytes, long availableBytes, String mountPath)
JournalDiskInfo
representing the current utilization for a
particular block device.diskPath
- the path to the raw devicetotalAllocatedBytes
- the total filesystemusedBytes
- the amount of bytes used by the filesystemavailableBytes
- the amount of bytes available on the filesystemmountPath
- the path where the device is mountedpublic String getDiskPath()
public long getUsedBytes()
public long getTotalAllocatedBytes()
public long getAvailableBytes()
public String getMountPath()
public double getPercentAvailable()
Copyright © 2023. All Rights Reserved.