org.springframework.data.hadoop.mapreduce
Class ToolTasklet

java.lang.Object
  extended by org.springframework.data.hadoop.mapreduce.ToolTasklet
All Implemented Interfaces:
Tasklet

public class ToolTasklet
extends Object
implements Tasklet

Tasklet for executing Hadoop Tools.

Author:
Costin Leau

Constructor Summary
ToolTasklet()
           
 
Method Summary
 RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext)
           
 void setArguments(String[] arguments)
          Sets the arguments.
 void setConfiguration(Configuration configuration)
          Sets the configuration.
 void setProperties(Properties properties)
          Sets the properties.
 void setTool(Tool tool)
          Sets the tool.
 void setToolClass(Class<? extends Tool> toolClass)
          Sets the tool class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolTasklet

public ToolTasklet()
Method Detail

execute

public RepeatStatus execute(StepContribution contribution,
                            ChunkContext chunkContext)
                     throws Exception
Specified by:
execute in interface Tasklet
Throws:
Exception

setTool

public void setTool(Tool tool)
Sets the tool.

Parameters:
tool - The tool to set.

setToolClass

public void setToolClass(Class<? extends Tool> toolClass)
Sets the tool class.

Parameters:
toolClass - the new tool class

setArguments

public void setArguments(String[] arguments)
Sets the arguments.

Parameters:
arguments - The arguments to set.

setConfiguration

public void setConfiguration(Configuration configuration)
Sets the configuration.

Parameters:
configuration - The configuration to set.

setProperties

public void setProperties(Properties properties)
Sets the properties.

Parameters:
properties - The properties to set.