Package alluxio.wire
Class JournalDiskInfo
- java.lang.Object
-
- alluxio.wire.JournalDiskInfo
-
- All Implemented Interfaces:
java.io.Serializable
public class JournalDiskInfo extends java.lang.Object implements java.io.Serializable
A class representing the state of a physical device.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JournalDiskInfo(java.lang.String diskPath, java.lang.String diskType, long totalAllocatedBytes, long usedBytes, long availableBytes, java.lang.String mountPath)
Create a new instance ofJournalDiskInfo
representing the current utilization for a particular block device.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getAvailableBytes()
java.lang.String
getDiskPath()
java.lang.String
getDiskPathWithSchema()
java.lang.String
getMountPath()
double
getPercentAvailable()
long
getTotalAllocatedBytes()
long
getUsedBytes()
java.lang.String
toString()
-
-
-
Constructor Detail
-
JournalDiskInfo
public JournalDiskInfo(java.lang.String diskPath, java.lang.String diskType, long totalAllocatedBytes, long usedBytes, long availableBytes, java.lang.String mountPath)
Create a new instance ofJournalDiskInfo
representing the current utilization for a particular block device.- Parameters:
diskPath
- the path to the raw devicediskType
- the type 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 mounted
-
-
Method Detail
-
getDiskPath
public java.lang.String getDiskPath()
- Returns:
- the raw device path
-
getDiskPathWithSchema
public java.lang.String getDiskPathWithSchema()
- Returns:
- the device path with schema
-
getUsedBytes
public long getUsedBytes()
- Returns:
- the bytes used by the device
-
getTotalAllocatedBytes
public long getTotalAllocatedBytes()
- Returns:
- the total bytes allocated for the filesystem on this device
-
getAvailableBytes
public long getAvailableBytes()
- Returns:
- the remaining available bytes on this disk
-
getMountPath
public java.lang.String getMountPath()
- Returns:
- the path where this disk is mounted
-
getPercentAvailable
public double getPercentAvailable()
- Returns:
- the percent of remaining space available on this disk
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-