public class RetriableFileCopyCommand extends RetriableCommand
| Modifier and Type | Class | Description |
|---|---|---|
static class |
RetriableFileCopyCommand.CopyReadException |
Special subclass of IOException.
|
description| Constructor | Description |
|---|---|
RetriableFileCopyCommand(boolean skipCrc,
java.lang.String description,
org.apache.hadoop.tools.mapred.CopyMapper.FileAction action) |
Create a RetriableFileCopyCommand.
|
RetriableFileCopyCommand(boolean skipCrc,
java.lang.String description,
org.apache.hadoop.tools.mapred.CopyMapper.FileAction action,
boolean directWrite) |
Create a RetriableFileCopyCommand.
|
RetriableFileCopyCommand(java.lang.String description,
org.apache.hadoop.tools.mapred.CopyMapper.FileAction action) |
Constructor, taking a description of the action.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected java.lang.Object |
doExecute(java.lang.Object... arguments) |
Implementation of RetriableCommand::doExecute().
|
execute, setRetryPolicypublic RetriableFileCopyCommand(java.lang.String description,
org.apache.hadoop.tools.mapred.CopyMapper.FileAction action)
description - Verbose description of the copy operation.public RetriableFileCopyCommand(boolean skipCrc,
java.lang.String description,
org.apache.hadoop.tools.mapred.CopyMapper.FileAction action)
skipCrc - Whether to skip the crc check.description - A verbose description of the copy operation.action - We should overwrite the target file or append new data to it.public RetriableFileCopyCommand(boolean skipCrc,
java.lang.String description,
org.apache.hadoop.tools.mapred.CopyMapper.FileAction action,
boolean directWrite)
skipCrc - Whether to skip the crc check.description - A verbose description of the copy operation.action - We should overwrite the target file or append new data to it.directWrite - Whether to write directly to the target path, avoiding a
temporary file rename.protected java.lang.Object doExecute(java.lang.Object... arguments)
throws java.lang.Exception
doExecute in class RetriableCommandarguments - Argument-list to the command.java.lang.ExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.