/** * Opens a {@link BlockWriter} for an existing temporary block. This method is only called from a * data server. * * <p>The temporary block must already exist with {@link #createBlockRemote(long, long, String, * long)}. * * @param sessionId The id of the client * @param blockId The id of the block to be opened for writing * @return the block writer for the local block file * @throws BlockDoesNotExistException if the block cannot be found * @throws IOException if block cannot be created */ public BlockWriter getTempBlockWriterRemote(long sessionId, long blockId) throws BlockDoesNotExistException, IOException { return mBlockStore.getBlockWriter(sessionId, blockId); }