org.apache.hadoop.tools.mapred
Class RetriableDirectoryCreateCommand
java.lang.Object
org.apache.hadoop.tools.util.RetriableCommand
org.apache.hadoop.tools.mapred.RetriableDirectoryCreateCommand
public class RetriableDirectoryCreateCommand
- extends RetriableCommand
This class extends Retriable command to implement the creation of directories
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 |
RetriableDirectoryCreateCommand
public RetriableDirectoryCreateCommand(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 implements the actual mkdirs() functionality.
- Specified by:
doExecute
in class RetriableCommand
- Parameters:
arguments
- Argument-list to the command.
- Returns:
- Boolean. True, if the directory could be created successfully.
- Throws:
Exception
- IOException, on failure to create the directory.
Copyright © 2014 InMobi. All rights reserved.