org.apache.hadoop.tools.mapred
Class RetriableFileCopyCommand
java.lang.Object
org.apache.hadoop.tools.util.RetriableCommand
org.apache.hadoop.tools.mapred.RetriableFileCopyCommand
public class RetriableFileCopyCommand
- extends RetriableCommand
This class extends RetriableCommand to implement the copy of files,
with retries on failure.
Method Summary |
protected Object |
doExecute(Object... arguments)
Implementation of RetriableCommand::doExecute(). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RetriableFileCopyCommand
public RetriableFileCopyCommand(String description)
- Constructor, taking a description of the action.
- Parameters:
description
- Verbose description of the copy operation.
doExecute
protected Object doExecute(Object... arguments)
throws Exception
- Implementation of RetriableCommand::doExecute().
This is the actual copy-implementation.
- Specified by:
doExecute
in class RetriableCommand
- Parameters:
arguments
- Argument-list to the command.
- Returns:
- Number of bytes copied.
- Throws:
Exception:
- CopyReadException, if there are read-failures. All other
failures are IOExceptions.
Exception
- Throws Exception on complete failure.
Copyright © 2014 InMobi. All rights reserved.