Class UIFileBlockInfo


  • @ThreadSafe
    public final class UIFileBlockInfo
    extends java.lang.Object
    Contains information for displaying a file block in the UI.
    • Constructor Detail

      • UIFileBlockInfo

        public UIFileBlockInfo​(long blockId,
                               long blockLength,
                               long blockLastAccessTimeMs,
                               java.lang.String tierAlias,
                               AlluxioConfiguration alluxioConfiguration)
        Creates a new instance of UIFileBlockInfo.
        Parameters:
        blockId - the block id
        blockLength - the block length
        blockLastAccessTimeMs - the block last access time in milliseconds
        tierAlias - the tier alias of the block
        alluxioConfiguration - the alluxio configuration
    • Method Detail

      • isInTier

        public boolean isInTier​(java.lang.String tierAlias)
        Is in tier boolean.
        Parameters:
        tierAlias - the alias for the tier
        Returns:
        true if the block is in the given tier alias in some worker, false otherwise
      • getBlockLength

        public long getBlockLength()
        Gets block length.
        Returns:
        the block length
      • getID

        public long getID()
        Gets id.
        Returns:
        the block id
      • getLastAccessTimeMs

        public long getLastAccessTimeMs()
        Gets last access time ms.
        Returns:
        the block last access time in milliseconds
      • getLocations

        public java.util.List<java.lang.String> getLocations()
        Gets locations.
        Returns:
        the block locations
      • getIsInHighestTier

        public boolean getIsInHighestTier()
        Gets whether the block is in the highest tier alias.
        Returns:
        true if it's in the highest tier alias