Package alluxio.util.webui
Class UIFileBlockInfo
- java.lang.Object
-
- alluxio.util.webui.UIFileBlockInfo
-
@ThreadSafe public final class UIFileBlockInfo extends java.lang.Object
Contains information for displaying a file block in the UI.
-
-
Constructor Summary
Constructors Constructor Description UIFileBlockInfo(long blockId, long blockLength, long blockLastAccessTimeMs, java.lang.String tierAlias, AlluxioConfiguration alluxioConfiguration)
Creates a new instance ofUIFileBlockInfo
.UIFileBlockInfo(FileBlockInfo fileBlockInfo, AlluxioConfiguration alluxioConfiguration)
Creates a new instance ofUIFileBlockInfo
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getBlockLength()
Gets block length.long
getID()
Gets id.boolean
getIsInHighestTier()
Gets whether the block is in the highest tier alias.long
getLastAccessTimeMs()
Gets last access time ms.java.util.List<java.lang.String>
getLocations()
Gets locations.boolean
isInTier(java.lang.String tierAlias)
Is in tier boolean.
-
-
-
Constructor Detail
-
UIFileBlockInfo
public UIFileBlockInfo(FileBlockInfo fileBlockInfo, AlluxioConfiguration alluxioConfiguration)
Creates a new instance ofUIFileBlockInfo
.- Parameters:
fileBlockInfo
- underlyingFileBlockInfo
alluxioConfiguration
- the alluxio configuration
-
UIFileBlockInfo
public UIFileBlockInfo(long blockId, long blockLength, long blockLastAccessTimeMs, java.lang.String tierAlias, AlluxioConfiguration alluxioConfiguration)
Creates a new instance ofUIFileBlockInfo
.- Parameters:
blockId
- the block idblockLength
- the block lengthblockLastAccessTimeMs
- the block last access time in millisecondstierAlias
- the tier alias of the blockalluxioConfiguration
- 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
-
-