Spring for Apache Hadoop

org.springframework.data.hadoop.batch.scripting
Class ScriptTasklet

java.lang.Object
  extended by org.springframework.data.hadoop.batch.scripting.ScriptTasklet
All Implemented Interfaces:
org.springframework.batch.core.step.tasklet.Tasklet

public class ScriptTasklet
extends java.lang.Object
implements org.springframework.batch.core.step.tasklet.Tasklet

Scripting tasklet. Currently protected since the class isn't really extensible.

Author:
Costin Leau

Constructor Summary
ScriptTasklet()
           
 
Method Summary
 org.springframework.batch.repeat.RepeatStatus execute(org.springframework.batch.core.StepContribution contribution, org.springframework.batch.core.scope.context.ChunkContext chunkContext)
           
 void setScriptCallback(java.util.concurrent.Callable<java.lang.Object> scriptCallback)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptTasklet

public ScriptTasklet()
Method Detail

execute

public org.springframework.batch.repeat.RepeatStatus execute(org.springframework.batch.core.StepContribution contribution,
                                                             org.springframework.batch.core.scope.context.ChunkContext chunkContext)
                                                      throws java.lang.Exception
Specified by:
execute in interface org.springframework.batch.core.step.tasklet.Tasklet
Throws:
java.lang.Exception

setScriptCallback

public void setScriptCallback(java.util.concurrent.Callable<java.lang.Object> scriptCallback)
Parameters:
scriptCallback - Callback to the underlying script.

Spring for Apache Hadoop