@ThreadSafe public final class BlockStoreClient extends Object
BlockStoreClient
constructors.Modifier and Type | Method and Description |
---|---|
static BlockStoreClient |
create(FileSystemContext context)
Creates an Alluxio block store with default local hostname.
|
long |
getCapacityBytes()
Gets the total capacity of Alluxio's BlockStore.
|
BlockInfo |
getInfo(long blockId)
Gets the block info of a block, if it exists.
|
long |
getUsedBytes()
Gets the used bytes of Alluxio's BlockStore.
|
public static BlockStoreClient create(FileSystemContext context)
context
- the file system contextBlockStoreClient
createdpublic BlockInfo getInfo(long blockId) throws IOException
blockId
- the blockId to obtain information aboutBlockInfo
containing the metadata of the blockIOException
public long getCapacityBytes() throws IOException
IOException
public long getUsedBytes() throws IOException
IOException
Copyright © 2023. All Rights Reserved.