|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.hadoop.mapreduce.ToolRunner
public class ToolRunner
Wrapper around ToolRunner
allowing for an easier configuration and execution
of Tool
instances inside Spring.
Optionally returns the execution result (as an int per Tool.run(String[])
).
Constructor Summary | |
---|---|
ToolRunner()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
Integer |
getObject()
|
Class<?> |
getObjectType()
|
boolean |
isSingleton()
|
void |
setArguments(String[] arguments)
Sets the arguments. |
void |
setConfiguration(Configuration configuration)
Sets the configuration. |
void |
setProperties(Properties properties)
Sets the properties. |
void |
setRunAtStartup(boolean runAtStartup)
Sets the run at startup. |
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 |
---|
public ToolRunner()
Method Detail |
---|
public Integer getObject() throws Exception
getObject
in interface FactoryBean<Integer>
Exception
public Class<?> getObjectType()
getObjectType
in interface FactoryBean<Integer>
public boolean isSingleton()
isSingleton
in interface FactoryBean<Integer>
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public void setTool(Tool tool)
tool
- The tool to set.public void setToolClass(Class<? extends Tool> toolClass)
toolClass
- the new tool classpublic void setArguments(String[] arguments)
arguments
- The arguments to set.public void setRunAtStartup(boolean runAtStartup)
runAtStartup
- The runAtStartup to set.public void setConfiguration(Configuration configuration)
configuration
- The configuration to set.public void setProperties(Properties properties)
properties
- The properties to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |