org.apache.hadoop.tools.mapred
Class RetriableDirectoryCreateCommand

java.lang.Object
  extended by org.apache.hadoop.tools.util.RetriableCommand
      extended by 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.


Field Summary
 
Fields inherited from class org.apache.hadoop.tools.util.RetriableCommand
description
 
Constructor Summary
RetriableDirectoryCreateCommand(String description)
          Constructor, taking a description of the action.
 
Method Summary
protected  Object doExecute(Object... arguments)
          Implementation of RetriableCommand::doExecute().
 
Methods inherited from class org.apache.hadoop.tools.util.RetriableCommand
execute, setRetryPolicy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RetriableDirectoryCreateCommand

public RetriableDirectoryCreateCommand(String description)
Constructor, taking a description of the action.

Parameters:
description - Verbose description of the copy operation.
Method Detail

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.