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: 2.0.0
Syntax
BlockAssignment AppendBlock(
	string path,
	bool useLocalReplica
)

Parameters

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

Return Value

Type: 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