Click or drag to resize

INameServerClientProtocolAppendBlock Method

Appends a new block to a file.

Namespace: Ookii.Jumbo.Dfs
Assembly: Ookii.Jumbo.Dfs (in Ookii.Jumbo.Dfs.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntax
BlockAssignment AppendBlock(
	string path,
	bool useLocalReplica
)

Parameters

path  String
The full path of the file to which to append a block.
useLocalReplica  Boolean
to put the first replica on the node that's appending the block if it's part of the DFS cluster; otherwise, .

Return Value

BlockAssignment
Information about the new block.
Exceptions
ExceptionCondition
ArgumentNullExceptionpath is an empty string.
ArgumentExceptionpath is not an absolute path, contains an empty component, contains a file name, or refers to an existing file or directory.
DirectoryNotFoundExceptionPart of path does not exist.
See Also