public class RetriableFileCopyCommand extends RetriableCommand
| Modifier and Type | Class and Description |
|---|---|
static class |
RetriableFileCopyCommand.CopyReadException
Special subclass of IOException.
|
description| Constructor and Description |
|---|
RetriableFileCopyCommand(boolean skipCrc,
String description,
org.apache.hadoop.tools.mapred.CopyMapper.FileAction action)
Create a RetriableFileCopyCommand.
|
RetriableFileCopyCommand(boolean skipCrc,
String description,
org.apache.hadoop.tools.mapred.CopyMapper.FileAction action,
boolean directWrite)
Create a RetriableFileCopyCommand.
|
RetriableFileCopyCommand(String description,
org.apache.hadoop.tools.mapred.CopyMapper.FileAction action)
Constructor, taking a description of the action.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
doExecute(Object... arguments)
Implementation of RetriableCommand::doExecute().
|
execute, setRetryPolicypublic RetriableFileCopyCommand(String description, org.apache.hadoop.tools.mapred.CopyMapper.FileAction action)
description - Verbose description of the copy operation.public RetriableFileCopyCommand(boolean skipCrc,
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,
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 Object doExecute(Object... arguments) throws Exception
doExecute in class RetriableCommandarguments - Argument-list to the command.ExceptionCopyright © 2008–2020 Apache Software Foundation. All rights reserved.