|Modifier and Type||Method and Description|
Creates a new block.
Removes the file that the target block is stored.
Writes a committed block to this store.
blockId- the ID of the block to create.
public void writeBlock(Block block) throws BlockWriteException
block- the block to write.
BlockWriteException- if fail to write.
public boolean deleteBlock(String blockId) throws BlockFetchException
blockId- of the block.
BlockFetchException- for any error occurred while trying to remove a block. (This exception will be thrown to the scheduler through
Executorand have to be handled by the scheduler with fault tolerance mechanism.)
Copyright © 2019 The Apache Software Foundation. All rights reserved.