Package alluxio.wire

Class 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 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 of JournalDiskInfo representing the current utilization for a particular block device.
        Parameters:
        diskPath - the path to the raw device
        diskType - the type to the raw device
        totalAllocatedBytes - the total filesystem
        usedBytes - the amount of bytes used by the filesystem
        availableBytes - the amount of bytes available on the filesystem
        mountPath - 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 class java.lang.Object